SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start

level: Chapter 3 - Control structures

Questions and Answers List

level questions: Chapter 3 - Control structures

QuestionAnswer
What are the examples of null statements?; {}
Conditional statementsTwo-way-branching - if else Nested-branching - if else within if else Multiway-branching - switch case
Enhanced switch statementg
Repitition statementsWhile loop (Head controlled) For Loop (Head controlled) Do Loop (Foot controlled)
Types of jump statementBreak - exits the immediately surrounding loop or switch statement. continue (only in loops) - exits the current pass of the immediately surrounding loop and continues at the loop head. assert (for checking assertions) - Systematic testing of assertions helps to detect programming errors
RiddleWHAT IS THE LARGEST n FOR WHICH A CORRECT RESULT CAN BE EXPECTED?