12th Class Class Computer Mcqs Chapter No 11 | 2nd Year Computer Mcqs Chapter Wise Pdf

Print/Downlaod pdf

Chapter No 11

Decision Constructors

1. Which of the following is not a decision making statement 

  1. switch
  2. for
  3. If-else
  4.  if

2. Which of the following operator is used as decision making statement

  1. ++
  2.  —
  3. &&
  4. conditional operator 

3. How many basic control structures are there choose which one is correct?

  1. 1 (
  2. 3

4. Which one is a control structure choose which one is correct? 

  1. Selection
  2. Sequence
  3. Repetition
  4. All

5.          control structures executes program statements one after another choose which one is correct: 

  1. Selection
  2. Sequence
  3. Repetition
  4. None 

6. The selection statement is also known as choose which one is correct:

  1. Decision making statement
  2. Compound statement 
  3. Repetition Statement
  4. Both (a) and (b)

7. Another name of conditional operator is 

  1. Unary Operator
  2. Binary operator 
  3. Ternary Operator
  4. Bitwise operator 

8. Which of the following keywords is not used in switch statement choose which one is correct? 

  1. default
  2. if
  3. case
  4. switch

9. Which of the following is an optional part in switch statement choose which one is correct? 

  1. default
  2. break
  3. Switch
  4. case

10.         structures is a selection structure choose which one is correct:

  1. if
  2.  if-else
  3. switch
  4. All of these

11.         selection structures is the simplest form of decision making structure choose which one is correct:

  1.  if-else
  2. if
  3. switch
  4.  nest if-else

12.        is not decision-making statement choose which one is correct:

  1. if
  2. break
  3. Nested if
  4. switch

13. Which of the following operators is used as decision-making statement choose which one is correct?

  1. increment operator
  2. size of operator 
  3. && operator
  4. conditional operator

  •  

14.           is used for making two-way decision choose which one is correct: 

  1. if-else
  2.  if
  3. Nested if
  4. switch

15.          is not used for making two-way decision choose which one is correct: 

  1. if
  2. conditional operator 
  3. if-else
  4. All

16. The conditional operator is an alternative of choose which one is correct: 

  1. if
  2. simple if-else 
  3. nested if
  4. None 

17. The conditional operator takes _________ expression. 

  1. one
  2. Two
  3. three
  4. None 

18. Which operator in C language is called ternary operator choose which one is correct? 

  1. if
  2.  ++
  3.  choose which one is correct?  choose which one is correct:
  4. ( )

19. What will be the output of (7 > 8)  choose which one is correct? printf(“ABC”) choose which one is correct:printf(“XYZ”); 

  1. ABC
  2. XYZ
  3. ABCXYZ
  4. All

20. The last statement of each case in switch statement must be a choose which one is correct:

  1. default statement
  2. if-else statement
  3. break statement
  4. is statement

21. __________structures are used to control the flow of execution in a program 

  1. Data
  2. Program
  3. Input
  4. Control

22. Which one is not a control structure 

  1. Selection
  2. Input / Output
  3. Sequence
  4. Repetition

23. A group of statements enclosed in opening and closing braces is called

  1. Group Statement
  2. Program Statement
  3. Compound Statement
  4.  All of Above 

24. A ___________structure chooses which statement or a block of statements is to execute 

  1. Selection
  2. Input / Output 
  3. Sequence
  4. Repetition

25. Which one is not a selection structure 

  1. if – else
  2. switch
  3. if
  4. iff-else

26. The case block ends with choose which one is correct:

  1. end select
  2.  end case
  3. break
  4. case else

27. The value that cannot be used in expression of switch statement 

  1. int
  2. float
  3. char
  4. long 

28. If the value of switch expression is float compiler will

  1. Generate error
  2. Give wrong result 
  3. Smooth execution
  4. None of Above 

29.            is suitable when multiple choices are given and one choice is to be  selected choose which one is correct:

  1. if-else
  2.  if
  3. break statement
  4. switch

30. In switch statement, each case label may be an integer or choose which one is correct:

  1. String
  2. Real 
  3. Character
  4. All

31. When two case labels are used without having any other statement in between  them they work as _______ operator 

  1. AND
  2. NOT
  3. OR
  4. None of Above

  •  

32. Which statement in switch case structure cause rest of the statements to be skipped choose which one is correct? 

  1. Case
  2. default 
  3. break
  4. All of Above 

33. In if-else-if statement only_____ block(s) of statements is executed 

  1.  One
  2.  Two 
  3. Three
  4. None of Above 

34. Which expression can be used in if condition choose which one is correct? 

  1. Relational
  2.  Logical 
  3. Arithmetic
  4. All of Above