1 |
A ____ could be any vilid expresion including arithmetic expression relational expression,s logical expressions. |
- A. If
- B. condition
- C. while
- D. compound
|
2 |
Which of the following is the condition to check a is a factor of c ? |
- A. a % c == 0
- B. c % a == 0
- C. a*c == 0
- D. a+c == 0
|
3 |
In If statement, what happens if condition is false ? |
- A. program crashes
- B. index out of bound error
- C. further code executes
- D. compiler asks to change condition
|
4 |
Conditional logic helps in, _________: |
- A. decision
- B. iterations
- C. traversing
- D. all
|
5 |
How many types of selection structure ? |
|
6 |
A set of multiple instructions enclosed in braces is called a block or. |
- A. if
- B. if -else
- C. while
- D. compound
|
7 |
A condition can be any ____________ expression: |
- A. arithmetic
- B. relational
- C. logical
- D. arithmetic, relational or logical
|
8 |
If statement is used within another if statement is called: |
- A. nested if
- B. simple if
- C. many if
- D. multiple if
|
9 |
The statements which help us to decide whihc statements should be executed next, on the basis of conditions, are called. |
- A. Error Control Statements
- B. Selection statements
- C. Sequential Control Statements
- D. Repetition Control Statements
|
10 |
In which control all the statments are executed in the given dequence. |
- A. Error Control Statements
- B. Selection ctonrol statemetns
- C. Repetition cotrol statements
- D. Sequential Control Statements
|