PPL: Loops


MCQs on Loops

Q1. Depending on the place of control statement in loop, it can be classified as what?
(C)Both (A) and (B)
Q2. Which of the following options show the example of entry controlled loop?
(A)For loop  
(B)While loop 
(C)Both (A) and (B)
Q3. While loop is example of which loop?
(A)Entry-controlled loop 
(B)Exit-controlled loop 
(C)Process-controlled loop  
Q4. For loop is example of what?
(A)Exit-controlled loop  
(B)Entry-controlled loop 
(C)Processing controlled loop  
Q5. Do-while loop is which kind of loop?
(C)Entrance-controlled loop  
(D)Both (A) and (B)
Q6. Under which of the following condition, while loop is to be used?
(A)When the number of iteration cannot be pre-determined
(B)When loop terminating condition is to be tested before entering the loop
(C)None of these
Q7. What is done, when break statement comes in loop?
(A)To terminate loop instantly
(B)Through program control executes the next statement following the loop
(C)Repetition of loop
MCQs Answers
Q1. (C)
Q2. (C)
Q3. (A)
Q4. (B)
Q5. (B)
Q6. (C)
Q7. (B)