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
ICS Part 2 Computer Science Chapter 12 Online Test MCQs With Answers
Question # 1
Which of the following is a loop statement?
Choose an answer
If
If-else
Switch
None
Previous
Skip
Next
Question # 2
If n=3, what will be the value of n after executing the following code?
do
n*=2
while (n<48);
Choose an answer
24
32
48
96
Previous
Skip
Next
Question # 3
The keyword 'break' cannot be used within:
Choose an answer
Do-while
If-else
For
While
Previous
Skip
Next
Question # 4
A loop within another loop is called
Choose an answer
Inner loop
Nested loop
Counter loop
None
Previous
Skip
Next
Question # 5
________ contains icon button that are shortcuts to the commands in the menu
Choose an answer
Menu bar
Tool bars
Scroll bar
Status bar
Previous
Skip
Next
Question # 6
______ 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 # 7
A counter can be defined as:
Choose an answer
The final value of a loop
A variable that counts loop iterations
The initial value of a loop
The step value of a loop
Previous
Skip
Next
Question # 8
This means to increase a value by one:
Choose an answer
Modulus
Increment
Decrement
Inc
Previous
Skip
Next
Question # 9
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 # 10
Which of the following loop is called counter loop?
Choose an answer
For
While
Do-while
All
Previous
Skip
Next
Question # 11
Which of the following statement can be used in C
Choose an answer
While
For
Do while
All
Previous
Skip
Next
Question # 12
A loop with in a loop is called:
Choose an answer
Nested loop
Complex loop
Infinite loop
Dual loop
Previous
Skip
Next
Question # 13
How many types of loop structure are available in C language?
Choose an answer
While
Do-while
For
All
Previous
Skip
Next
Question # 14
A loop whose execute never ends is called
Choose an answer
Nested loop
Forever loop
Infinite loop
Counter loop
Previous
Skip
Next
Question # 15
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 # 16
While loop is also called:
Choose an answer
Conditional loop
Wend loop
Counter loop
Continuous loop
Previous
Skip
Next
Back