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
A for statement contains three expressions: Initialization, test and:
Choose an answer
Assignment
Validation
Increment / decrement
All
Previous
Skip
Next
Question # 2
The body of while loop with multiple statements ends with:
Choose an answer
Right bracket ]
Right brace }
Comma ,
Semi colon ;
Previous
Skip
Next
Question # 3
The loop structure that executes at least ones is
Choose an answer
While
Do-while
For
All
Previous
Skip
Next
Question # 4
________ 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 # 5
Semicolon is placed at the end of condition in:
Choose an answer
While loop
Do-while loop
For loop
All
Previous
Skip
Next
Question # 6
______ are used to enter data into databases
Choose an answer
Queries
Reports
Tables
Forms
Previous
Skip
Next
Question # 7
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 # 8
The loop structure in which condition comes after the body of the loop is
Choose an answer
While
Do-while
For
All
Previous
Skip
Next
Question # 9
Which of the following is a loop statement?
Choose an answer
If
If-else
Switch
None
Previous
Skip
Next
Question # 10
Each record consists of a
Choose an answer
Rows
Columns
Both a and b
None of these
Previous
Skip
Next
Question # 11
______ 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 # 12
The keyword 'break' cannot be used within:
Choose an answer
Do-while
If-else
For
While
Previous
Skip
Next
Question # 13
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 # 14
Which of the following statement can be used in C
Choose an answer
While
For
Do while
All
Previous
Skip
Next
Question # 15
What is the final value of x after executing the following code:
For (int x=0; x<10; X++)
Choose an answer
10
9
0
1
Previous
Skip
Next
Back