Loop Control Structure

1. The repetition of a set – of – statements depending upon a condition test is known as –

  • Selections
  • Iteration
  •  Sequence
  •  None of these
View Answer
  Iteration

2. A sequence of statements contained within a  pair of braces and is called a :

  • Brick
  •  Branch
  • Blob
  • Block
View Answer
  Block

3. Which fram following is a jump statement?

  • continue statement
  • Switch statement to the monitor
  • Break statement
  • All of these
View Answer
  All of these

4. Which test can not be handle by switch statement –

  •  Character test
  • Floating-point test
  •  Integer tested
  • None of these
View Answer
  Floating-point test  

5. The exit ( ) function breaks out of :

  • The program appears in
  •  The block it appears in
  • The loop appears in
  • The function appears in
View Answer
  The program it appears in

6. Who gives the instruction to the computer to for performing any kind of action?

  •  Iteration
  • Selection al
  •  Sequence
  • Statement Continue
View Answer
  Statement Continue

7. Destination is specified by a label within statement is called :

  •  For each loop
  •  For loop
  • Go to statement
  • While loop V
View Answer
 A labelGo to statement   

8. A loop containing another loop in its loop । body is called –

  • Nested loop
  •  Combine loop for
  • Loop ladder
  •  All of these
View Answer
  Nested loop 

9. The braces are not necessary when the Joop body contains a :

  • Double Statement
  • Single Statement
  •  Botha and b
  •  Triple Statement
View Answer
  Single Statement

10. The break statement causes an exit :

  •  From the innermost loop or switch
  •  From all loops and switch
  • Only from the innermost switch
  •  Only from the innermost loop
View Answer
  Only from the innermost switch

11. Which operation can be used as an alternative to the if statement?

  • &&
  •  ;
  • ?:
  •  ,
View Answer
  ?: 

12. Label in go to statement is same like –

  • Initilization in for loop
  •  case in switch statement
  • continuation condition in for loop
  •  All of the above
View Answer
 case in switch statement   

13. The execution of statement (s ) depending upon condition test is known as-

  • Selection
  •  Iteration
  •  Sequence
  •  None of these
View Answer
  Selection 

14. Break statement is used in-

  •  For each loop
  •   Switch statement
  •   For loop
  • None of them
View Answer
   Switch statement
15. For loop is a –
  •  Exist controlled loop
  • Entry controlled loop
  • Count controlled loop
  •  All of these
View Answer
  Count controlled loop 

16. The go to statement causes control to go to :

  • A function
  •  A variable
  •  A label
  •  On operator
View Answer
 A label  

17.  If a loop does not contain any statement in its loop – body, it is said to be an :

  • Empty loop
  •  Entry loop
  •  Infinite loop
  •  None of these
View Answer
Empty loop 
19. Do while is a –
  •  Exist controlled loop
  •  Entry controlled loop
  •  Count controlled loop
  •   None of these
View Answer
 Exist controlled loop
20. At least how many time do while loop execute-
  • Four-time
  •   Three-time
  •  Two time
  • One time
View Answer
One time 
21. Statement that causes the control program to jump Over other statements, is called-
  • Go to statement
  •   Spaghetti statement
  •  Jump statement
  • None of them
View Answer
 Jump statement  
22. While is a :
  •  Exist controlled loop
  •  Entry controlled loop
  • Count controlled loop
  •   None of these
View Answer
One Entry controlled loop  
23. An item declared in a conditional statement  Selection cannot be access-
  • Middle of that statement
  • Outside of that statement
  • Inside that statement
  •  None of these
View Answer
Outside of that statement 
24. The program area inside which a variable can None of them be accessed, is called :
  • Floating scope
  •  Character’s scope
  • Integer’s scope by
  •  Variable’s scope
View Answer
Variable’s scope 
25. Who changes the value of loop variables?
  • Update Expression
  • Test expression
  • Value Expression
  • Change Expression
View Answer
Update Expression  

26. The keyword ” break cannot be simply used its loop – body, it is said to be an: within :

  •  Whilc
  • For
  •  Infinite loop
  • None of these
View Answer
 Infinite loop
27. Which keyword is used to come out of an executed loop only for that iteration?
  • Continue
  • Return
  • Break
  •  None of the mentioned
View Answer
Continue 
28. Which keyword can be used for coming out of recursion?
  • Return
  • Break
  •  Botha and b
  •  Exit
View Answer
Return 
29. How many choices are possible when using a loop of a single if-else statement?
  • 4
  • 3
  • 2
  •  1
View Answer
2
30. In an if – else statement ( statement – 1 ) and ( statement – 2 ) both are executed at same time –
  • No
  • exected with condition
  •   Yes
  •  None of these
View Answer
No 

Leave a Comment