1 |
A set of multiple instructions enclosed in braces is called a _______: |
box
block
list
job
|
2 |
An if statement inside another if statement is called _______ structure: |
nested
boxed
repeated
decomposed
|
3 |
A condition can be any ____________ expression: |
arithmetic
relational
logical
arithmetic, relational or logical
|
4 |
Which of the following is the condition to check a is a factor of c ? |
a % c == 0
c % a == 0
a*c == 0
a+c == 0
|
5 |
|
a++;
a--;
both (a) and (b)
none
|
6 |
In If statement, what happens if condition is false ? |
program crashes
index out of bound error
further code executes
compiler asks to change condition
|
7 |
__________ statements describe the sequence in which statements of the program should be executed: |
loop
conditional
control
all
|
8 |
Conditional logic helps in, _________: |
decision
iterations
traversing
all
|
9 |
How many types of logical operators ? |
3
1
4
2
|
10 |
Which is a combination of backslash (\) and a code character to control printing of data on the screen ? |
escape sequence
format specified
character
printing
|
11 |
Which of the following tells about which operations should be performed first ? |
precedence
rule
sequence
random
|
12 |
Which operator requires three operands respectively to perform the operation ? |
unary
binary
ternary
all of these
|