1 |
The operators to compare operands and decide if the relation is true or false are: |
- A. Arithmetic operators
- B. Logical operators
- C. Syntax operators
- D. Relational operators
|
2 |
Switch statement is an alternative of: |
- A. if
- B. if-else
- C. Nested if
- D. Nested if-else
|
3 |
Key is used in |
- A. If statement
- B. Else if statement
- C. Switch statement
- D. All of the above
|
4 |
A case can be defined as: |
- A. An individual condition to test
- B. A set of condition of test
- C. A statement that includes as if statement
- D. A block of selection
|
5 |
An expression that uses a relational operator is known as: |
- A. Operational
- B. Sequential
- C. Serial
- D. Relational
|
6 |
break keyword is used in |
- A. If statement
- B. If-use
- C. Else-if
- D. None of the above
|
7 |
When a relational expression is false, it has the value __________ |
|
8 |
If x=10 and y=5,, what will the output of the following expression?<div>x>y? x*y: x+y</div> |
|
9 |
Which of the following is NOT part of an if statement? |
- A. A condition that evaluates as a Boolean
- B. A condition that evaluates as true or false
- C. A true block
- D. All of are part of an IF statement
|
10 |
Which is not possible |
- A. Nesting if statement
- B. Loop in the body of statement
- C. If statement in the body of loop
- D. None of above
|