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
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
Question # 2
This means to increase a value by one:
Choose an answer
Modulus
Increment
Decrement
Inc
Previous
Skip
Next
Question # 3
A loop whose execute never ends is called
Choose an answer
Nested loop
Forever loop
Infinite loop
Counter loop
Previous
Skip
Next
Question # 4
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 # 5
Where should be the loop control variable initialized?
Choose an answer
Before the loop starts
In the first statement of the loop body
In the last statement of the loop body
Anywhere in the loop body
Previous
Skip
Next
Question # 6
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 # 7
A _____ contains an object that stores VBA code
Choose an answer
Macro
Module
Forms
Reports
Previous
Skip
Next
Question # 8
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 # 9
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 # 10
A loop with in a loop is called:
Choose an answer
Nested loop
Complex loop
Infinite loop
Dual loop
Previous
Skip
Next
Question # 11
What is the value of "a" after the execution of the following code?
int a 25;
for(int c=0; c<4;c++)
a=a-1;
a=1+3;
Choose an answer
23
24
25
20
Previous
Skip
Next
Question # 12
Which of the following loop is called counter loop?
Choose an answer
For
While
Do-while
All
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
The loop structure that executes at least ones is
Choose an answer
While
Do-while
For
All
Previous
Skip
Next
Question # 15
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 # 16
The keyword used to come out of the body of loop is
Choose an answer
Exit
Continue
Break
Ebd
Previous
Skip
Next
Question # 17
The keyword used to transfer control from the body of loop to the start of loop is
Choose an answer
Exit
Continue
Break
End
Previous
Skip
Next
Question # 18
Semicolon is placed at the end of condition in:
Choose an answer
While loop
Do-while loop
For loop
All
Previous
Skip
Next
Question # 19
This statement causes a loop to terminate early?
Choose an answer
Break
Terminate
Exit
A and B
Previous
Skip
Next
Question # 20
Redundancy means
Choose an answer
Duplication
No-duplication
Standards
Microsoft office integration
Previous
Skip
Next
Back