1 |
Which of the following statements is the simplest form of a decision structure? |
- A. Select..case
- B. If statement
- C. Try..Catch..Finally
- D. Nested if
|
2 |
If x=10 and y=5,, what will the output of the following expression?<div>x>y? x*y: x+y</div> |
|
3 |
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
|
4 |
When a relational expression is false, it has the value __________ |
|
5 |
Another term for a computer making a decision is: |
- A. Sequential
- B. Selection
- C. Repetition
- D. Iteration
|
6 |
Switch statement is an alternative of: |
- A. if
- B. if-else
- C. Nested if
- D. Nested if-else
|
7 |
__________ refers to group of statements enclosed in opening and closing braces. |
- A. Control structure
- B. Compound statement
- C. Sequence structure
- D. Instruction
|
8 |
From the following statement which is the control statement |
- A. If
- B. Else if
- C. Switch
- D. All of the above
|
9 |
A key in a relation |
- A. May not functionally determine any attribute in the row
- B. Functionally determine only one attribute in the row
- C. Functionally determine at least one attribute in the row
- D. Functionally determine all the attribute in the row
|
10 |
The conditional portion of the If statement can contain: |
- A. Any valid constant
- B. Any expression that can be evaluated to a Boolean value
- C. Any valid variable
- D. Any valid constant or vairable
|