Discussion
Translating a for loop with an initialisation, a test and an increment produces code in the order
Answer: B
Correct answer: initialisation, label, test, body, increment, jump back
The initialisation runs once and so precedes the label. The test guards entry to the body, and the increment runs after the body but before the test is repeated - which is why the jump goes back to the label rather than to the initialisation, and why a continue statement must jump to the increment rather than to the test.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development