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
Another term for a computer making a decision is:
Choose an answer
Sequential
Selection
Repetition
Iteration
Previous
Skip
Next
Question # 2
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 # 3
Key is used in
Choose an answer
If statement
Else if statement
Switch statement
All of the above
Previous
Skip
Next
Question # 4
Which programming structure makes a comparison?
Choose an answer
Relation
Decision
Sequence
Repitition
Previous
Skip
Next
Question # 5
Insert command is used to insert:
Choose an answer
A new table
A new record
A view
Dependencies
Previous
Skip
Next
Question # 6
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 # 7
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 # 8
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 # 9
An expression that uses a relational operator is known as:
Choose an answer
Operational
Sequential
Serial
Relational
Previous
Skip
Next
Question # 10
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 # 11
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 # 12
Which of the following statements is the simplest form of a decision structure?
Choose an answer
Select..case
If statement
Try..Catch..Finally
Nested if
Previous
Skip
Next
Question # 13
break keyword is used in
Choose an answer
If statement
If-use
Else-if
None of the above
Previous
Skip
Next
Question # 14
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 # 15
Conditional operator is an alternative of:
Choose an answer
if
if-else
Nested if
All
Previous
Skip
Next
Question # 16
In if statement , true is represented by:
Choose an answer
0
1
2
3
Previous
Skip
Next
Back