Search your topic here

PPL: Loops

LOOPS


MCQs on Loops

Q1. Depending on the place of control statement in loop, it can be classified as what?
(A)Entry-controlled  
(B)Exit-controlled  
(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?
(A)Entry-controlled  
(B)Exit-controlled  
(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)

LEAVE A REPLY










Related topics

Please use contact page in this website if you find anything incorrect or you want to share more information about the topic discussed above.