1 |
break keyword is used in |
- A. If statement
- B. If-use
- C. Else-if
- D. None of the above
|
2 |
If x=10 and y=5,, what will the output of the following expression?<div>x>y? x*y: x+y</div> |
|
3 |
_______ is created when the same name is used for two different attributes |
- A. Synonyms
- B. Homonyms
- C. Redundant information
- D. Mutually exclusive data
|
4 |
Which of the following are valid case statements in a switch? |
- A. Case 1:
- B. Case x<4:
- C. Case 'ab':
- D. Case 1.5:
|
5 |
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
|
6 |
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
|
7 |
You can use a decision statement to: |
- A. Run a series of statements if a test fails
- B. Test series of conditions
- C. Test whether a condition is true or false
- D. All of these
|
8 |
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
|
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 |
Relational operators allow you to _____________ numbers. |
- A. Compare
- B. Add
- C. Multiply
- D. Divide
|