12th class (Fsc) computer unit 12 MCQs
chapter 12 MCQs 12th Class computer
Loop Constructs:
1. How many types of loop structures are present?
a. 3
b. 1
c. 4
d. 2
2. One execution of a loop is known as a(n):
a. Duration
b. Test
c. Integer
d. Iteration
3. A loop that never ends is called:
a. Nested loop
b. Infinite loop
c. Continuous loop
d. Running loop
4. One iteration of loop is known as:
a. Cycle
b. Iteration
c. Repetition
d. Duration
5. How many kinds of control structures are there to organize program instructions?
a. 4
b. 3
c. 5
d. 2
6. One execution of loop is called:
a. Iteration
b. Series
c. Life cycle
d. Duration
7. Which loop structure is not available in C?
a. For
b. While
c. Do-until
d. Do-while
8. This is a control structure that causes a statement or group of statements to repeat:
a. Sequential
b. Decision statement
c. Loop
d. None
9. In while loop, the loop control variable is always initialized:
a. After loop ends
b. Outside the program
c. Outside the body of loop
d. Inside the loop body
10. While loop is also called:
a. Counter loop
b. Conditional loop
c. Wend loop
d. None
11. Which statement causes a loop to terminate early?
a. Break
b. End
c. Exit
d. Terminate
12. Which statement uses a loop to terminate early?
a. exit
b. break
c. stop
d. terminate
13. A compound statement refers to a group of statements enclosed in:
a. [ ]
b. ( )
c. ” “
d. { }
14. A counter can be defined as:
a. The initial value of a loop
b. The final value of a loop
c. The step value of a loop
d. A variable counts loop iteration
15. Where should be the loop control variable initialized?
a. In the last statement of the loop body
b. Before the loop starts
c. Anywhere in the loop body
d. In the first statement of the loop body
16. In which loop the condition comes before the body of the loop?
a. While loop
b. Do-while loop
c. For loop
d. Both B & C
17. This means to increase value by one:
a. Decrement
b. Modulus
c. Increment
d. None
18. The body of while loop with multiple statement ends with:
a. Comma
b. Right bracket ]
c. Semi colon ;
d. Right brace }
19. The body of for loop with single statement ends with:
a. Comma ,
b. Right bracket ]
c. Semi colon ;
d. Right brace }
20. ……… loop structure always executes at least once?
a. While
b. Nested
c. Do While
d. FOR
21. In which loop the condition comes after the body of the loop?
a. Do-while ()
b. For ()
c. Nested for ()
d. While ()
22. Which of the following loop is available in C language?
a. Sequence
b. While-wend
c. Do-while
d. For-next
23. Semicolon is placed at the end of condition in:
a. While loop
b. Switch
c. Do-while loop
d. For loop
24. The Do-while loop structure always ends with:
a. Colon
b. Comma
c. Brace
d. Semi colon
25. ……… iterates at least once if condition is false.
a. For loop
b. While loop
c. Do-while loop
d. All of these