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
10th Class Computer Science Unit 3 Input and Output Handling English Medium KPK Boards Online Mcqs MCQs With Answers
Question # 1
How many types of selection structure ?
Choose an answer
1
3
2
4
Previous
Skip
Next
Question # 2
A condition can be any ____________ expression:
Choose an answer
arithmetic
relational
logical
arithmetic, relational or logical
Previous
Skip
Next
Question # 3
If we want to associate more than one statements to an if statement, then they need to be enclosed inside a:
Choose an answer
()
*
:
{ }
Previous
Skip
Next
Question # 4
In If statement, what happens if condition is false ?
Choose an answer
program crashes
index out of bound error
further code executes
compiler asks to change condition
Previous
Skip
Next
Question # 5
Whihc of the following is a decision statement is called.
Choose an answer
Nested if
Simple if
Many if
Multiple if
Previous
Skip
Next
Question # 6
In which control all the statments are executed in the given dequence.
Choose an answer
Error Control Statements
Selection ctonrol statemetns
Repetition cotrol statements
Sequential Control Statements
Previous
Skip
Next
Question # 7
Selection statements within selection statements are called.
Choose an answer
if -else
condition
while
nested selection structures
Previous
Skip
Next
Question # 8
How many types of control statements are available in C language ?
Choose an answer
3
1
2
4
Previous
Skip
Next
Question # 9
Choose an answer
a++;
a--;
both (a) and (b)
none
Previous
Skip
Next
Question # 10
A set of multiple instructions enclosed in braces is called a _______:
Choose an answer
box
block
list
job
Previous
Skip
Next
Question # 11
Which of the following is not a type of control statements in C language ?
Choose an answer
Previous
Skip
Next
Question # 12
Conditional logic helps in, _________:
Choose an answer
decision
iterations
traversing
all
Previous
Skip
Next
Question # 13
A set of multiple instructions enclosed in braces is called a block or:
Choose an answer
if
compound
while
if else
Previous
Skip
Next
Question # 14
Which of the following is the condition to check a is a factor of c ?
Choose an answer
a % c == 0
c % a == 0
a*c == 0
a+c == 0
Previous
Skip
Next
Question # 15
How many types of control statements
Choose an answer
1
2
3
4
Previous
Skip
Next
Question # 16
Which of the following is the default control structure in C language ?
Choose an answer
Previous
Skip
Next
Back