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 must use the keyword
Choose an answer
Case
Default
Break
All of the above
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
When a relational expression is false, it has the value __________
Choose an answer
0
1
<0
S
Previous
Skip
Next
Question # 4
Database integrity refers to the
Choose an answer
Correctness of data
Consistency of data
Both a and b
None of these
Previous
Skip
Next
Question # 5
You can use a decision statement to:
Choose an answer
Run a series of statements if a test fails
Test series of conditions
Test whether a condition is true or false
All of these
Previous
Skip
Next
Question # 6
From the followings which is different
Choose an answer
If
Else-if
Function
Switch
Previous
Skip
Next
Question # 7
Which of the following is equivalent to (p>=q)?
Choose an answer
p<q
!(p<q)
p<q
1p<q
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
break keyword is used in
Choose an answer
If statement
If-use
Else-if
None of the above
Previous
Skip
Next
Question # 10
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 # 11
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 # 12
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 # 13
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 # 14
Key is used in
Choose an answer
If statement
Else if statement
Switch statement
All of the above
Previous
Skip
Next
Question # 15
Which of the following are valid case statements in a switch?
Choose an answer
Case 1:
Case x<4:
Case 'ab':
Case 1.5:
Previous
Skip
Next
Back