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
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
_______ is created when the same name is used for two different attributes
Choose an answer
Synonyms
Homonyms
Redundant information
Mutually exclusive data
Previous
Skip
Next
Question # 3
In if statement , true is represented by:
Choose an answer
0
1
2
3
Previous
Skip
Next
Question # 4
From the following statement which is the control statement
Choose an answer
If
Else if
Switch
All of the above
Previous
Skip
Next
Question # 5
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 # 6
When a relational expression is false, it has the value __________
Choose an answer
0
1
<0
S
Previous
Skip
Next
Question # 7
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 # 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 we make any modification in a relation it is called
Choose an answer
Insertion anomaly
Deletion anomaly
Modification anomaly
Both a and b
Previous
Skip
Next
Question # 10
How many times is the test expression of a switch statement evaluated?
Choose an answer
0
1
2
Once for each case
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
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 # 13
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 # 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
Insert command is used to insert:
Choose an answer
A new table
A new record
A view
Dependencies
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
Back