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
Conditional operator takes _____________ operands.
Choose an answer
3
2
1
5
Previous
Skip
Next
Question # 2
Switch statement must use the keyword
Choose an answer
Case
Default
Break
All of the above
Previous
Skip
Next
Question # 3
In if statement, false is represented by :
Choose an answer
0
1
2
3
Previous
Skip
Next
Question # 4
Which programming structure executes program statements in order?
Choose an answer
Relation
Decision
Sequence
Repition
Previous
Skip
Next
Question # 5
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 # 6
From the following which is called control statement
Choose an answer
If
If-else
Else-if
All of the above
Previous
Skip
Next
Question # 7
__________ 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 # 8
______is a functional dependency in a relation between two or more non-key attributes
Choose an answer
Transitive dependency
Partial dependency
Repeating groups
None of these
Previous
Skip
Next
Question # 9
The operators to compare operands and decide if the relation is true or false are:
Choose an answer
Arithmetic operators
Logical operators
Syntax operators
Relational operators
Previous
Skip
Next
Question # 10
Which of the following is used for making two way decision:
Choose an answer
if-else
If
Nested if
Switch
Previous
Skip
Next
Question # 11
Which programming structure makes a comparison?
Choose an answer
Relation
Decision
Sequence
Repitition
Previous
Skip
Next
Question # 12
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
Question # 13
Another term for a computer making a decision is:
Choose an answer
Sequential
Selection
Repetition
Iteration
Previous
Skip
Next
Question # 14
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 # 15
In 3NF a non-key attribute must not depend on a
Choose an answer
Non-key attribute
Key attribute
Composite key
Sort key
Previous
Skip
Next
Question # 16
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 # 17
Another term for a conditional operator is:
Choose an answer
Ternary
Binary
Byte
Iteration
Previous
Skip
Next
Question # 18
Switch statement is an alternative of:
Choose an answer
if
if-else
Nested if
Nested if-else
Previous
Skip
Next
Back