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 11 Online Test MCQs With Answers
Question # 1
Switch statement is an alternative of:
Choose an answer
if
if-else
Nested if
Nested if-else
Previous
Skip
Next
Question # 2
Conditional operator is an alternative of:
Choose an answer
if
if-else
Nested if
All
Previous
Skip
Next
Question # 3
Which of the following is NOT part of an if statement?
Choose an answer
A condition that evaluates as a Boolean
A condition that evaluates as true or false
A true block
All of are part of an IF statement
Previous
Skip
Next
Question # 4
Which of the following is equivalent to (p>=q)?
Choose an answer
p<q
!(p<q)
p<q
1p<q
Previous
Skip
Next
Question # 5
Which is an example of multiple branches form single expression?
Choose an answer
If statement
Switch statement
While loop
All
Previous
Skip
Next
Question # 6
__________ refers to group of statements enclosed in opening and closing braces.
Choose an answer
Control structure
Compound statement
Sequence structure
Instruction
Previous
Skip
Next
Question # 7
When a relational expression is false, it has the value __________
Choose an answer
0
1
<0
S
Previous
Skip
Next
Question # 8
The case block ends with:
Choose an answer
End select
End case
Break;
Case else
Previous
Skip
Next
Question # 9
If x=10 and y=5,, what will the output of the following expression?
x>y? x*y: x+y
Choose an answer
5
10
15
50
Previous
Skip
Next
Question # 10
Another term for a conditional operator is:
Choose an answer
Ternary
Binary
Byte
Iteration
Previous
Skip
Next
Question # 11
Which programming structure executes program statements in order?
Choose an answer
Relation
Decision
Sequence
Repition
Previous
Skip
Next
Question # 12
An if statement inside the true block of another if statement is called:
Choose an answer
A nested if statement
A branched if statement
A conditional operator
A relational operator
Previous
Skip
Next
Question # 13
_______ is created when the same name is used for two different attributes
Choose an answer
Synonyms
Homonyms
Redundant information
Mutually exclusive data
Previous
Skip
Next
Question # 14
How many times is the test expression of a switch statement evaluated?
Choose an answer
0
1
2
Once for each case
Previous
Skip
Next
Question # 15
From the following which is called control statement
Choose an answer
If
If-else
Else-if
All of the above
Previous
Skip
Next
Question # 16
Another term for a computer making a decision is:
Choose an answer
Sequential
Selection
Repetition
Iteration
Previous
Skip
Next
Question # 17
Which of the following is used for making two way decision:
Choose an answer
if-else
If
Nested if
Switch
Previous
Skip
Next
Question # 18
The conditional portion of the If statement can contain:
Choose an answer
Any valid constant
Any expression that can be evaluated to a Boolean value
Any valid variable
Any valid constant or vairable
Previous
Skip
Next
Back