1 |
Which of the following is a decision making statement ? |
- A. if
- B. getch()
- C. getche()
- D. break
|
2 |
Selection statements within selection statements are called: |
- A. if else
- B. condition
- C. while
- D. nested selection structures
|
3 |
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
|
4 |
Which of the following is not a type of control statements in C language ? |
|
5 |
If statement is used within another if statement is called: |
- A. nested if
- B. simple if
- C. many if
- D. multiple if
|
6 |
|
- A. a++;
- B. a--;
- C. both (a) and (b)
- D. none
|
7 |
How many types of control statements |
|
8 |
Which of the following is the default control structure in C language ? |
|
9 |
If we want to assocate more than one statements to an if statement, then they need to be enclosed inside a. |
|
10 |
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
|