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
Computer Science Ics Part 2 Chapter 11 Online Test MCQs With Answers
Question # 1
A case can be defined as:
Choose an answer
An individual condition to test
A set of condition of test
A statement that includes as if statement
A block of selection
Previous
Skip
Next
Question # 2
Which of the following is used for making two way decision:
Choose an answer
if-else
If
Nested if
Switch
Previous
Skip
Next
Question # 3
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 # 4
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 # 5
break keyword is used in
Choose an answer
If statement
If-use
Else-if
None of the above
Previous
Skip
Next
Question # 6
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
Question # 7
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 # 8
Relational operators allow you to _____________ numbers.
Choose an answer
Compare
Add
Multiply
Divide
Previous
Skip
Next
Question # 9
Which of the following is equivalent to (p>=q)?
Choose an answer
p<q
!(p<q)
p<q
1p<q
Previous
Skip
Next
Question # 10
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 # 11
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 # 12
Which operator in C is called a ternary operator?
Choose an answer
if
++
?
( )
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
Another term for a conditional operator is:
Choose an answer
Ternary
Binary
Byte
Iteration
Previous
Skip
Next
Question # 15
An expression that uses a relational operator is known as:
Choose an answer
Operational
Sequential
Serial
Relational
Previous
Skip
Next
Question # 16
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
Back