1 |
An if statement inside the true block of another if statement is called: |
- A. A nested if statement
- B. A branched if statement
- C. A conditional operator
- D. A relational operator
|
2 |
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
|
3 |
Database integrity refers to the |
- A. Correctness of data
- B. Consistency of data
- C. Both a and b
- D. None of these
|
4 |
To be in 2NF every non key attribute must depend on |
- A. Key
- B. All parts of the key
- C. Composite key
- D. Both a and b
|
5 |
The three programming structures are: |
- A. Sequence, decision, and repition
- B. Process, decision, and alternation
- C. Sequence, definition, and process
- D. Relation, comparison, and process
|
6 |
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
|
7 |
______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
|
8 |
Switch statement must use the keyword |
- A. Case
- B. Default
- C. Break
- D. All of the above
|
9 |
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
|
10 |
An expression that uses a relational operator is known as: |
- A. Operational
- B. Sequential
- C. Serial
- D. Relational
|