ICS Part 2 Computer Science Chapter 12 Online Test With Answers

ICS Part 2 Computer Science Chapter 12 Online Test

Sr. # Questions Answers Choice
1 If we want a user to enter exactly 20 values, which loop would be the best to use? While Do-while For Infinite
2 This means to increase a value by one: Modulus Increment Decrement Inc
3 This statement may be used to stop a loop's current iteration and begin once: Continue Break Terminate Next
4 In a for statement, this expression is executed only once: Test Validation Initialization All
5 A for statement contains three expressions: Initialization, test and: Assignment Validation Increment / decrement All
6 A special value that marks the end of a list of input data is called: Terminal value Sentinel Value Loop control value Input value
7 Which statement is used to move the control to the start of loop body? Continue Break Switch Goto
8 The loop which never ends is called: Infinite loop Running loop Continuous loop Nested loop
9 A loop with in a loop is called: Nested loop Complex loop Infinite loop Dual loop
10 This statement causes a loop to terminate early? Break Terminate Exit A and B
11 This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop? While Do-while For Nested
12 Which of the following loop is called counter loop? For While Do-while All
13 In which loop the condition comes after the body of the loop? While loop Do-while loop For loop B and C
14 In which loop the condition comes before the body of the loop? While loop Do-while loop For loop B and C
15 Which loop structure always executes at least once? Do-while For While All
Download This Set

Is this page helpful?