ECAT Computer Science MCQ's Test For Full Book With Answers

ECAT Computer Science MCQ's Test For Full Book

Sr. # Questions Answers Choice
1 The body of while loop with multiple statements ends with: Right bracket 1 Right brace } Comma , Semi-colon ;
2 When is for loop more appropriate than while loop? 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
3 When is for loop more appropriate than while loop? 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
4 Which of the following is a loop statement? If If else Switch None
5 Semicolon is placed at the end of condition in: While loop Do-while loop For loop All
6 While loop is also called: Conditional loop Wend loop Counter loop Continuous loop
7 While loop is also called: Conditional loop Wend loop Counter loop Continuous loop
8 If you want a user to enter exactly 20 values, which loop would be the best to use? While Do-while For Infinite
9 This means to increase a value by one: Modulus Increment Decrement Inc
10 This statement maybe used to stop a loop's current iteration and begin next one: Continue Break Terminate Next
11 In a for statement, this expression is executed only once: Test Validation Initialization All
12 A for statement contains three expressions: Initialization, test and: Assignment Validation Increment, decrement Recalling
13 A special value that is marks the end of a list of loop body? Terminal value Sentinel value Loop control value Input value
14 Which statement is used to move the control to the start of loop body? Go to Switch Continue Break
15 Which statement is used to move the control to the start of loop body? Continue Break Switch Go to
16 A loop within a loop is called? Nested loop Complex loop Infinite loop Dual loop
17 Which statement causes a loop to terminate early? Break Terminate Exit A and B
18 The loop is a good choice when you how many times you want the loop to iterate in advance of entering the loop: While Do while For Nested
19 Which of the following loop is called as counter loop? For While Do while All
20 In which loop condition comes before the body of the loop? While loop Do-while loop For loop B and C
21 Which loop, condition comes before the body of loop? While loop Do-while loop For loop B and C
22 Which loop structure always executes at least once? Do-while For While All
23 Where should be the loop control variable initialized? Anywhere in the loop body In the last statement of the loop body Before the loop starts In the first statement of the loop body
24 Where should be the loop control variable initialized? Before the loop starts Anywhere in the loop body In the first statement of the loop body In the last statement of the loop body
25 A counter can be defined as: The final value of a loop A variable that counts loop iterations The initial value of a lopp The step value of a loop
26 Which of the following loop is available in C language? All For Do while While
27 Which of the following loop is available in C language? All While Do while For
28 How many types of loop stricture are available in C? 4 3 2 6
29 One execution of a loop is known as a: Cycle Duration Iteration Test
30 This is a control structured that causes a statement or group of statements to repeat: Decision statement Loop Sequential Logical
Download This Set

Is this page helpful?