1 |
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
|
2 |
_______ is created when the same name is used for two different attributes |
- A. Synonyms
- B. Homonyms
- C. Redundant information
- D. Mutually exclusive data
|
3 |
The first line in switch block contains: |
- A. The value of the first criterion
- B. The expression to be evaluated
- C. The statement to be executed if none of the criteria are true
- D. The statement to be executed if the criterion are true
|
4 |
An expression that uses a relational operator is known as: |
- A. Operational
- B. Sequential
- C. Serial
- D. Relational
|
5 |
Relational operators allow you to _____________ numbers. |
- A. Compare
- B. Add
- C. Multiply
- D. Divide
|
6 |
Another term for a computer making a decision is: |
- A. Sequential
- B. Selection
- C. Repetition
- D. Iteration
|
7 |
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
|
8 |
______is a functional dependency in a relation between two or more non-key attributes |
- A. Transitive dependency
- B. Partial dependency
- C. Repeating groups
- D. None of these
|
9 |
____________ is used to specify two different choices with "if" statement. |
- A. Switch
- B. Else
- C. If
- D. If-else
|
10 |
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
|