Computer class 12th

Computer Science Class 12 Chapter 11 Decision Constructs Test Paper

Q.1: Tick the correct Option.

1. Which of the following is not character constant?

(a) ‘a’

(b) ‘Z’

(c) ‘5’✅

(d) None

2. Which of the following is equivalent to (p>=q)

(a) P<q

(b) (p<q)

(c) p>q✅

(d) !p<q

3. The symbol that perform operations on data are called:

(a) Operands

(b) Code

(c) Operators✅

(d) Syntax

4. The case block ends with:

(a) Default

(b) Break✅

(c) Continue

(d) end case

5. Which operator is called ternary operator?

(a) ++

(b) ||

(c) ?✅

(d) %

Q.2: Give answer to any eight short questions of the following.

1. Why break statement is used in switch structure?

2. What is purpose of nested if statement.

3. Define control structure.

4. Write some rule of using switch case.

5. Write the general form of if statement with two alternatives.

6. Write the general form of switch statement.

7. Write an expression to test the relationship “age is 18 to 25”

8. Compare the nested if and sequence of ifs.

9. Define flow chart with example.

10. What is condition.

Q.3: Give answer to any two questions of the following.

 (a) Explain any two types of control structure with flow charts.

(b) Write a program that inputs three numbers from user and find which is larger.

Related Articles

Back to top button
Enable Notifications OK No thanks