1 |
What mechanism is used to execute a set of operations repeatedly? |
Goto statement
Switch statement
Loops
Functions
|
2 |
Which of the following symbol is represented as unary operator? |
+
!
/
~
|
3 |
A decision-making operator is called |
Arithmetic operator
Assignment operator
Conditional operator
Logical operator
|
4 |
Expression 1? Expression 2: Expression 3; If the expression! is true then which of the following is correct? |
The value returned will be expression!
The value returned will be expression 2
The value returned will be expression 3
No value return
|
5 |
Which of the following is a conditional operator |
? and :
: and ;
? and :
! and ?
|
6 |
Conditional operators are |
Unary operator
Binary operator
Ternary operator
None
|
7 |
If we write an entire if-else construct within either the body of the if statement or the body of an else statement this is called |
Dangling else
Multiple statement with if-else
Nested 1-else
Switch statments
|
8 |
If we dropped the pair of braces then what would happen? |
Only one statement to be executed in the if block
Only one statement to be executed in the else block
Only one statement to be executed in the if block and only one statement to be executed in the else block
|
9 |
If block is called |
The group of if and else statement
The group of statements after the if up to and not including the else
The group of statements after the else up to and not including the if
All the above
|
10 |
Which of the following is not a relational operator? |
==
=
!=
<=
|