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 10th Class English Medium Chapter 3 Online Test MCQs With Answers
Question # 1
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 # 2
_______ statement excutes the set of statements under if statements if the condition is true and execute the set of statemetns under else other wise,
Choose an answer
if - else
condition
while
compound
Previous
Skip
Next
Question # 3
In which statement we specify a condition, and associate a code to it:
Choose an answer
selection
if
go to
loop
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
Which of the following is not a type of control statements in C language.
Choose an answer
Sequential Control Statements
Selection control statements
Repetitio contorl statements
Error Control Statements
Previous
Skip
Next
Question # 6
If we want to assocate more than one statements to an if statement, then they need to be enclosed inside a.
Choose an answer
()
{ }
*
:
Previous
Skip
Next
Question # 7
Which statement is used to execute one set of instructions if a particular condition is true and another set of instructions if the condition is false ?
Choose an answer
if
if else
else
loop
Previous
Skip
Next
Question # 8
An if statement inside another if statement is called _______ structure:
Choose an answer
nested
boxed
repeated
decomposed
Previous
Skip
Next
Question # 9
Which of the following is not a type of control statements in C language ?
Choose an answer
Previous
Skip
Next
Question # 10
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 # 11
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 # 12
How many types of control statements
Choose an answer
1
2
3
4
Previous
Skip
Next
Back