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
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 # 2
This statement maybe used to stop a loop's current iteration and begin next one:
Choose an answer
Continue
Break
Terminate
Next
Previous
Skip
Next
Question # 3
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 # 4
While loop is also called:
Choose an answer
Conditional loop
Wend loop
Counter loop
Continuous loop
Previous
Skip
Next
Question # 5
Which statement causes a loop to terminate early?
Choose an answer
Break
Terminate
Exit
A and b
Previous
Skip
Next
Question # 6
Which of the following loop is called as counter loop?
Choose an answer
For
While
Do while
All
Previous
Skip
Next
Question # 7
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 # 8
The body of for loop with single statement ends with:
Choose an answer
Right Bracket ]
Right brace }
Comma ,
Semi-colon ;
Previous
Skip
Next
Question # 9
When is for loop more appropriate than while loop?
Choose an answer
The terminating condition occurs unexpectedly
The body of loop will be executed at leas once
The program will be executed at least once
The number of times the loop will be executed is known before the loop executes
Previous
Skip
Next
Question # 10
In a for statement, this expression is executed only once:
Choose an answer
Test
Validation
Initialization
All
Previous
Skip
Next
Question # 11
A for statement contains three expressions: Initialization, test and:
Choose an answer
Assignment
Validation
Increment, decrement
Recalling
Previous
Skip
Next
Question # 12
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 # 13
This means to increase a value by one:
Choose an answer
Modulus
Increment
Decrement
Inc
Previous
Skip
Next
Question # 14
Which loop structure always executes at least once?
Choose an answer
Do-while
For
While
All
Previous
Skip
Next
Question # 15
In which loop condition comes before the body of the loop?
Choose an answer
While loop
Do-while loop
For loop
B and C
Previous
Skip
Next
Back