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
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 # 2
An expression that uses a relational operator is known as:
Choose an answer
Operational
Sequential
Serial
Relational
Previous
Skip
Next
Question # 3
What does a compound condition use to join two condition?
Choose an answer
Relational operator
Logical operator
Relational Results
Logical results
Previous
Skip
Next
Question # 4
The first line in switch block contains:
Choose an answer
The value of the first criterion
The expression to be evaluated
The statement to be executed if none of the criteria are true
The statement to be executed if the criterion are true
Previous
Skip
Next
Question # 5
Which operator in C is called a ternary operator?
Choose an answer
if
++
?
( )
Previous
Skip
Next
Question # 6
____________ is used to specify two different choices with "if" statement.
Choose an answer
Switch
Else
If
If-else
Previous
Skip
Next
Question # 7
A key in a relation
Choose an answer
May not functionally determine any attribute in the row
Functionally determine only one attribute in the row
Functionally determine at least one attribute in the row
Functionally determine all the attribute in the row
Previous
Skip
Next
Question # 8
Which of the following is used for making two way decision:
Choose an answer
if-else
If
Nested if
Switch
Previous
Skip
Next
Question # 9
When a relational expression is false, it has the value __________
Choose an answer
0
1
<0
S
Previous
Skip
Next
Question # 10
Which is not possible
Choose an answer
Nesting if statement
Loop in the body of statement
If statement in the body of loop
None of above
Previous
Skip
Next
Question # 11
The three programming structures are:
Choose an answer
Sequence, decision, and repition
Process, decision, and alternation
Sequence, definition, and process
Relation, comparison, and process
Previous
Skip
Next
Question # 12
Conditional operator is an alternative of:
Choose an answer
if
if-else
Nested if
All
Previous
Skip
Next
Question # 13
Which programming structure makes a comparison?
Choose an answer
Relation
Decision
Sequence
Repitition
Previous
Skip
Next
Question # 14
Switch statement must use the keyword
Choose an answer
Case
Default
Break
All of the above
Previous
Skip
Next
Question # 15
To be in 2NF every non key attribute must depend on
Choose an answer
Key
All parts of the key
Composite key
Both a and b
Previous
Skip
Next
Back