ECAT Computer Science MCQS Set 12

Google Ads1

ECAT Computer Science MCQS Page 5


If n=3, what will be the value of n after executing the following code?
do
n*=2
while (n<48);
48
24
32
96

While loop is also called:
Conditional loop
Wend loop
Counter loop
Continuous loop

Which of the following loop is available in C language?
All
While
Do-while
For

What is the final value of x after executing the following code:
For (int x=0; x<10; X++)
9
10
0
1

In which loop the condition comes after the body of the loop?
Do-while loop
While loop
For loop
B and C

The loop structure in which condition comes after the body of the loop is
Do-while
While
For
All

A loop within another loop is called
Nested loop
Inner loop
Counter loop
None

When is while loop more appropriate then for loop?
The terminating condition occurs unexpectedly
The body of loop will be executed at least once
The program will be executed at least once
The number times the loop will be executed is known before the loop executes

A ________ is used to perform the same sequence of steps or automating tasks repeatedly
Macro
Module
Forms
Reports

How many types of loop structure are available in C language?
All
While
Do-while
For

A special value that marks the end of a list of input data is called:
Sentinel Value
Terminal value
Loop control value
Input value

This statement causes a loop to terminate early?
Break
Terminate
Exit
A and B

Continue Reading Go to Next Page

Google Ads

Be the first to comment

Leave a Reply

Your email address will not be published.


*