質問                    | 
                
                    答え                    | 
            
        
        
      what is a control statement    学び始める
 | 
 | 
      Statements that provide capabilities such as selecting among alternative control flow paths or causing the repeated execution of certain collection of statements   
 | 
 | 
 | 
      what are selection statments    学び始める
 | 
 | 
      [1] Selection statements: choose between two or more execution paths in a program. [2] Two-way selection statements: select one of two execution paths [3] Multiple-selection statements: select one of many execution paths,   
 | 
 | 
 | 
      give an example of Two-way selection statements    学び始める
 | 
 | 
    
 | 
 | 
 | 
      give an example of Multiple-selection statements:    学び始める
 | 
 | 
    
 | 
 | 
 | 
      what are Iterative Statements    学び始める
 | 
 | 
      [1] Mechanism for the repeated execution of a statement or a compound statement. [2] It is implemented either by various loops (iteration) or recursion   
 | 
 | 
 | 
      whata re the 2 forms of Logically-Controlled Loops    学び始める
 | 
 | 
    
 | 
 | 
 | 
| 
     学び始める
 | 
 | 
      Pre-test: Loop condition is tested before execution of loop body. In most languages: while loop. Pascal: while ... do.   
 | 
 | 
 | 
| 
     学び始める
 | 
 | 
      Post-test: loop body is executed before condition is tested. Loop body is executed at least one time. Normally: do ... while. In Pascal: repeat ... until.   
 | 
 | 
 | 
      what is Unconditional Branching    学び始める
 | 
 | 
      statements that change control follow without any condition   
 | 
 | 
 | 
      give some examples of unconditional branching statmens    学び始める
 | 
 | 
      break, continue, and return.   
 | 
 | 
 | 
| 
     学び始める
 | 
 | 
      break provides unconditional exits from loops.   
 | 
 | 
 | 
| 
     学び始める
 | 
 | 
      continue skips the remainder of the current iteration, but does not exit the loop.   
 | 
 | 
 | 
| 
     学び始める
 | 
 | 
      return terminates function/method calls.   
 | 
 | 
 | 
      what does an Unlabelled break break do    学び始める
 | 
 | 
      An unlabelled break statement terminates switch, for, while, or do-while statement. It terminates the innermost of such statements when they are nested.   
 | 
 | 
 | 
      What does a labled break do?    学び始める
 | 
 | 
      A labeled break terminates an labelled statement and control flow is transferred to the statement immediately following the labelled (terminated) control statement.   
 | 
 | 
 |