12th Class Class Computer Mcqs Chapter No 11 | 2nd Year Computer Mcqs Chapter Wise Pdf
Chapter No 11
Decision Constructors
1. Which of the following is not a decision making statement
- switch
- for
- If-else
- if
2. Which of the following operator is used as decision making statement
- ++
- —
- &&
- conditional operator
3. How many basic control structures are there choose which one is correct?
- 1 (
- 2
- 3
- 4
4. Which one is a control structure choose which one is correct?
- Selection
- Sequence
- Repetition
- All
5. control structures executes program statements one after another choose which one is correct:
- Selection
- Sequence
- Repetition
- None
6. The selection statement is also known as choose which one is correct:
- Decision making statement
- Compound statement
- Repetition Statement
- Both (a) and (b)
7. Another name of conditional operator is
- Unary Operator
- Binary operator
- Ternary Operator
- Bitwise operator
8. Which of the following keywords is not used in switch statement choose which one is correct?
- default
- if
- case
- switch
9. Which of the following is an optional part in switch statement choose which one is correct?
- default
- break
- Switch
- case
10. structures is a selection structure choose which one is correct:
- if
- if-else
- switch
- All of these
11. selection structures is the simplest form of decision making structure choose which one is correct:
- if-else
- if
- switch
- nest if-else
12. is not decision-making statement choose which one is correct:
- if
- break
- Nested if
- switch
13. Which of the following operators is used as decision-making statement choose which one is correct?
- increment operator
- size of operator
- && operator
- conditional operator
14. is used for making two-way decision choose which one is correct:
- if-else
- if
- Nested if
- switch
15. is not used for making two-way decision choose which one is correct:
- if
- conditional operator
- if-else
- All
16. The conditional operator is an alternative of choose which one is correct:
- if
- simple if-else
- nested if
- None
17. The conditional operator takes _________ expression.
- one
- Two
- three
- None
18. Which operator in C language is called ternary operator choose which one is correct?
- if
- ++
- choose which one is correct? choose which one is correct:
- ( )
19. What will be the output of (7 > 8) choose which one is correct? printf(“ABC”) choose which one is correct:printf(“XYZ”);
- ABC
- XYZ
- ABCXYZ
- All
20. The last statement of each case in switch statement must be a choose which one is correct:
- default statement
- if-else statement
- break statement
- is statement
21. __________structures are used to control the flow of execution in a program
- Data
- Program
- Input
- Control
22. Which one is not a control structure
- Selection
- Input / Output
- Sequence
- Repetition
23. A group of statements enclosed in opening and closing braces is called
- Group Statement
- Program Statement
- Compound Statement
- All of Above
24. A ___________structure chooses which statement or a block of statements is to execute
- Selection
- Input / Output
- Sequence
- Repetition
25. Which one is not a selection structure
- if – else
- switch
- if
- iff-else
26. The case block ends with choose which one is correct:
- end select
- end case
- break
- case else
27. The value that cannot be used in expression of switch statement
- int
- float
- char
- long
28. If the value of switch expression is float compiler will
- Generate error
- Give wrong result
- Smooth execution
- None of Above
29. is suitable when multiple choices are given and one choice is to be selected choose which one is correct:
- if-else
- if
- break statement
- switch
30. In switch statement, each case label may be an integer or choose which one is correct:
- String
- Real
- Character
- All
31. When two case labels are used without having any other statement in between them they work as _______ operator
- AND
- NOT
- OR
- None of Above
32. Which statement in switch case structure cause rest of the statements to be skipped choose which one is correct?
- Case
- default
- break
- All of Above
33. In if-else-if statement only_____ block(s) of statements is executed
- One
- Two
- Three
- None of Above
34. Which expression can be used in if condition choose which one is correct?
- Relational
- Logical
- Arithmetic
- All of Above