More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
ECAT Computer Science Chapter 11 Loops Online Test MCQs With Answers
Question # 1
Which of the following is a loop statement?
Choose an answer
If
If else
Switch
None
Previous
Skip
Next
Question # 2
How many types of loop structure are available In C?
Choose an answer
4
3
2
6
Previous
Skip
Next
Question # 3
Which loop,structure always executes at least once?
Choose an answer
Do-while
For
While
All
Previous
Skip
Next
Question # 4
One execution of a loop Is known as a (n)
Choose an answer
Cycle
Duration
Iteration
Test
Previous
Skip
Next
Question # 5
Where should be the loop control variable initialized?
Choose an answer
Before the loop starts
In the first statement of the loop body
In the last statement of the loop body
Anywhere in the loop body Which loop
Previous
Skip
Next
Question # 6
The body of for loop with single statement ends with:
Choose an answer
Right Bracket ]
Right brace }
Comma ,
Semi-colon ;
Previous
Skip
Next
Question # 7
The body of while loop with multiple statements ends with:
Choose an answer
Right bracket 1
Right brace }
Comma ,
Semi-colon ;
Previous
Skip
Next
Question # 8
A loop within a loop is called?
Choose an answer
Nested loop
Complex loop
Infinite loop
Dual loop
Previous
Skip
Next
Question # 9
Which statement causes a loop to terminate early?
Choose an answer
Break
Terminate
Exit
A and b
Previous
Skip
Next
Question # 10
Where should be the loop control variable initialized?
Choose an answer
Before the loop starts
In the first statement of the loop body
In the last statement of the loop body
Anywhere in the loop body
Previous
Skip
Next
Question # 11
Which loop, condition comes before the body of loop?
Choose an answer
While loop
Do-while loop
For loop
B and C
Previous
Skip
Next
Question # 12
Which of the following loop is called counter loop?
Choose an answer
For
While
Do-while
All
Previous
Skip
Next
Question # 13
A counter can be defined as:
Choose an answer
The final value of a loop
A variable that counts loop iterations
The initial value of a lopp
The step value of a loop
Previous
Skip
Next
Question # 14
Which of the following loop is available in C language?
Choose an answer
While
Do while
For
All
Previous
Skip
Next
Question # 15
The loop is a good choice when you how many times you want the loop to iterate in advance of entering the loop:
Choose an answer
While
Do while
For
Nested
Previous
Skip
Next
Question # 16
Which statement is used to move the control to the start of loop body?
Choose an answer
Continue
Break
Switch
Go to
Previous
Skip
Next
Back