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 loop structure always executes at least once?
Choose an answer
Do-while
For
While
All
Previous
Skip
Next
Question # 2
A for statement contains three expressions: Initialization, test and:
Choose an answer
Assignment
Validation
Increment, decrement
Recalling
Previous
Skip
Next
Question # 3
A loop within a loop is called?
Choose an answer
Nested loop
Complex loop
Infinite loop
Dual loop
Previous
Skip
Next
Question # 4
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 # 5
How many types of loop stricture are available in C?
Choose an answer
4
3
2
6
Previous
Skip
Next
Question # 6
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 # 7
When is for loop more appropriate than while loop?
Choose an answer
The termination condition is known in advance
The number of iteration is not known in advance
The loop should be executed only once
The loop should be executed at least once
Previous
Skip
Next
Question # 8
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
Question # 9
A loop within a loop Is called
Choose an answer
Nested loop
Complex loop
Infinite loop
Dual loop
Previous
Skip
Next
Question # 10
In which loop the condition comes before the body of the loop?
Choose an answer
While loop
Do-while loop
For loop
B and c
Previous
Skip
Next
Question # 11
Which of the following loop is called counter loop?
Choose an answer
For
While
Do-while
All
Previous
Skip
Next
Question # 12
What is the final value of x after executing the following code:
for (int x=0; x<10;x++)
Choose an answer
10
9
0
1
Previous
Skip
Next
Question # 13
One execution of a loop is known as a:
Choose an answer
Cycle
Duration
Iteration
Test
Previous
Skip
Next
Question # 14
A special value that is marks the end of a list of loop body?
Choose an answer
Terminal value
Sentinel value
Loop control value
Input value
Previous
Skip
Next
Question # 15
Which of the following loop is available in C language?
Choose an answer
While
Do while
For
All
Previous
Skip
Next
Back