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
Computer Science Ics Part 2 Chapter 12 Online Test MCQs With Answers
Question # 1
When does the code block following while (x<100) execute?
Choose an answer
When x is less then one hundred
When x is greater then one hundred
When x is equal to one hundred
None
Previous
Skip
Next
Question # 2
When is while loop more appropriate then for loop?
Choose an answer
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
Previous
Skip
Next
Question # 3
Which loop structure always executes at least once?
Choose an answer
Do-while
For
While
All
Previous
Skip
Next
Question # 4
This statement may be used to stop a loop's current iteration and begin once:
Choose an answer
Continue
Break
Terminate
Next
Previous
Skip
Next
Question # 5
This statement causes a loop to terminate early?
Choose an answer
Break
Terminate
Exit
A and B
Previous
Skip
Next
Question # 6
A ________ is used to perform the same sequence of steps or automating tasks repeatedly
Choose an answer
Macro
Module
Forms
Reports
Previous
Skip
Next
Question # 7
The loop structure that executes at least ones is
Choose an answer
While
Do-while
For
All
Previous
Skip
Next
Question # 8
______ are used to enter data into databases
Choose an answer
Queries
Reports
Tables
Forms
Previous
Skip
Next
Question # 9
A for statement contains three expressions: Initialization, test and:
Choose an answer
Assignment
Validation
Increment / decrement
All
Previous
Skip
Next
Question # 10
______ are used to move around the window if its contents do not fit on screen
Choose an answer
menu bar
Tool bar
Scroll bar
Status bar
Previous
Skip
Next
Question # 11
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 # 12
When is for loop more appropriate then while loop?
Choose an answer
The termination condition is known in advance
The number of iterations is not known in advance
The loop should be executed only once
The loop should be executed at least once
Previous
Skip
Next
Question # 13
This loop is a good choice when you know 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 # 14
If we want a user to enter exactly 20 values, which loop would be the best to use?
Choose an answer
While
Do-while
For
Infinite
Previous
Skip
Next
Question # 15
While loop is also called:
Choose an answer
Conditional loop
Wend loop
Counter loop
Continuous loop
Previous
Skip
Next
Question # 16
This is a control structure that causes a statement or group of statement to repeat:
Choose an answer
Decision statement
Duration
Iteration
Test
Previous
Skip
Next
Back