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 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 # 2
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 # 3
Redundancy means
Choose an answer
Duplication
No-duplication
Standards
Microsoft office integration
Previous
Skip
Next
Question # 4
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 # 5
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 # 6
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 # 7
The keyword used to come out of the body of loop is
Choose an answer
Exit
Continue
Break
Ebd
Previous
Skip
Next
Question # 8
The keyword 'break' cannot be used within:
Choose an answer
Do-while
If-else
For
While
Previous
Skip
Next
Question # 9
The body of for loop with single statement ends with:
Choose an answer
Right bracket ]
Right brace }
Comma ,
Semi colon ;
Previous
Skip
Next
Question # 10
A loop whose execute never ends is called
Choose an answer
Nested loop
Forever loop
Infinite loop
Counter loop
Previous
Skip
Next
Question # 11
______ are used to enter data into databases
Choose an answer
Queries
Reports
Tables
Forms
Previous
Skip
Next
Question # 12
The loop which never ends is called:
Choose an answer
Infinite loop
Running loop
Continuous loop
Nested loop
Previous
Skip
Next
Question # 13
While loop is also called:
Choose an answer
Conditional loop
Wend loop
Counter loop
Continuous loop
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
A _____ contains an object that stores VBA code
Choose an answer
Macro
Module
Forms
Reports
Previous
Skip
Next
Back