1 |
In whihc statement we -specify a condition, and assoclate a code to it. |
- A. go to
- B. selection
- C. If
- D. loop
|
2 |
|
- A. a++;
- B. a--;
- C. both (a) and (b)
- D. none
|
3 |
A ____ could be any vilid expresion including arithmetic expression relational expression,s logical expressions. |
- A. If
- B. condition
- C. while
- D. compound
|
4 |
A set of multiple instructions enclosed in braces is called a _______: |
- A. box
- B. block
- C. list
- D. job
|
5 |
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
|
6 |
Conditional logic helps in, _________: |
- A. decision
- B. iterations
- C. traversing
- D. all
|
7 |
If statement is used within another if statement is called: |
- A. nested if
- B. simple if
- C. many if
- D. multiple if
|
8 |
If we want to associate more than one statements to an if statement, then they need to be enclosed inside a: |
|
9 |
How many types of control statements are available in C language ? |
|
10 |
Which statement is used to execute one set of instructions if a particular condition is true and another set of instructions if the condition is false ? |
- A. if
- B. if else
- C. else
- D. loop
|