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 loop is available In C language?
Choose an answer
While
Do-while
For
All
Previous
Skip
Next
Question # 2
A loop within a loop Is called
Choose an answer
Nested loop
Complex loop
Infinite loop
Dual loop
Previous
Skip
Next
Question # 3
Which of the following loop is called counter loop?
Choose an answer
For
While
Do-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
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 # 6
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 # 7
The loop which never ends is called
Choose an answer
Infinite loop
Running loop
Continuous loop
Nested loop
Previous
Skip
Next
Question # 8
In a for statement, this expression is executed only once:
Choose an answer
Test
Validation
Initialization
All
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
While loop is also called:
Choose an answer
Conditional loop
Wend loop
Counter loop
Continuous loop
Previous
Skip
Next
Question # 11
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 # 12
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 # 13
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 # 14
This is a control structure that causes a statement or arouo of statements to repeat
Choose an answer
Decision statement
Loop
Sequential
Logical
Previous
Skip
Next
Question # 15
This loop Is a good choice when you know how mane 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
The body of for loop with single statement ends with:
Choose an answer
Right Bracket ]
Right brace }
Comma ,
Semi-colon ;
Previous
Skip
Next
Question # 17
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 # 18
Which loop,structure always executes at least once?
Choose an answer
Do-while
For
While
All
Previous
Skip
Next
Question # 19
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 loop
The step value of a loop
Previous
Skip
Next
Back