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
Redundancy means
Choose an answer
Duplication
No-duplication
Standards
Microsoft office integration
Previous
Skip
Next
Question # 2
Which of the following is a loop statement?
Choose an answer
If
If-else
Switch
None
Previous
Skip
Next
Question # 3
The body of while loop with multiple statements ends with:
Choose an answer
Right bracket ]
Right brace }
Comma ,
Semi colon ;
Previous
Skip
Next
Question # 4
This statement causes a loop to terminate early?
Choose an answer
Break
Terminate
Exit
A and B
Previous
Skip
Next
Question # 5
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 # 6
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 # 7
A special value that marks the end of a list of input data is called:
Choose an answer
Terminal value
Sentinel Value
Loop control value
Input value
Previous
Skip
Next
Question # 8
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 # 9
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 # 10
What is the value of "a" after execution the following code segment:
int a=2;
int b=0;
while(b<5)
{ a=a*2;
b=b+1;
}
a=a+1;
Choose an answer
64
65
66
67
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
This is a control structure that causes a statement or group of statement to repeat:
Choose an answer
Decision statement
Duration
Iteration
Test
Previous
Skip
Next
Question # 14
Semicolon is placed at the end of condition in:
Choose an answer
While loop
Do-while loop
For loop
All
Previous
Skip
Next
Question # 15
The keyword 'break' cannot be used within:
Choose an answer
Do-while
If-else
For
While
Previous
Skip
Next
Back