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
How many types of loop structure are available in C language?
Choose an answer
While
Do-while
For
All
Previous
Skip
Next
Question # 2
A _____ contains an object that stores VBA code
Choose an answer
Macro
Module
Forms
Reports
Previous
Skip
Next
Question # 3
One execution of a loop is known as a(n):
Choose an answer
Cycle
Duration
Iteration
Test
Previous
Skip
Next
Question # 4
The keyword 'break' cannot be used within:
Choose an answer
Do-while
If-else
For
While
Previous
Skip
Next
Question # 5
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 # 6
While loop is also called:
Choose an answer
Conditional loop
Wend loop
Counter loop
Continuous loop
Previous
Skip
Next
Question # 7
Each record consists of a
Choose an answer
Rows
Columns
Both a and b
None of these
Previous
Skip
Next
Question # 8
Semicolon is placed at the end of condition in:
Choose an answer
While loop
Do-while loop
For loop
All
Previous
Skip
Next
Question # 9
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 # 10
Which statement is used to move the control to the start of loop body?
Choose an answer
Continue
Break
Switch
Goto
Previous
Skip
Next
Question # 11
This statement causes a loop to terminate early?
Choose an answer
Break
Terminate
Exit
A and B
Previous
Skip
Next
Question # 12
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 # 13
The body of for loop with single statement ends with:
Choose an answer
Right bracket ]
Right brace }
Comma ,
Semi colon ;
Previous
Skip
Next
Question # 14
Repetition structure is used to execute a statement or set of statement
Choose an answer
Once
More than one time
Skip statement
All
Previous
Skip
Next
Question # 15
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 # 16
Which of the following is a loop statement?
Choose an answer
If
If-else
Switch
None
Previous
Skip
Next
Back