Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 12 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What will be the output of the following code?if 'bar' in \{'foo':1, 'bar':2, 'baz':3\}:print(1) print(2)if 'a' in 'qux':print(3) print(4)
2. What is the contrapositive ( $\sim q\rightarrow\sim p$
3. Given the conditional;"If Ty'Shawn is late then he will get a tardy"What is the inverse?
4. Determine the truth value of the followinga bisector divides an angle into two congruent parts and complementary angles have a sum of 180
5. Write the contrapositive of the following statement."If a figure is a triangle, then the angles add to 180.
6. If I have a black lab, then I have a dog. Identify the hypothesis.
7. Conditional Statement:If a doctor suspects her patient has a broken bone, then she should take an X-ray."If a doctor does not take an X-ray, then she does not suspect her patient has a broken bone" is the??? of the conditional.
8. If a whole number has two as a factor, then it is even.What is the conclusion of the given conditional statement?
9. For a conditional statement to be false the simple statements must be ..... followed by .....
10. What is the maximum choices will we have in 2 level nested if else hierarchy?
11. An if statement must evaluate to:
12. Complete the conjecture. Think of examples to help.The product of any two odd numbers is .....
13. Choose the output.for i in range (10, 13):print (i*i)
14. Conditional Statement:If a whole number ends in 8, then it is divisible by 2.What is the contrapositive of the conditional statement?
15. Given the conditional statement;"If I am hungry, then I eat."Which of the following is the inverse?
16. Identify the hypothesis of the conditional statement:A four sided figure is a rectangle
17. A statement that contains the phrase "if and only if"
18. What is the converse of the following statement?If it is Saturday, then the school is closed
19. "If the cloud is dark, then it will rain" . What is the hypothesis?
20. Write the conditional in if-then form:A four sided figure is a rectangle
21. The for loop is used when we are sure about how many times a loop body will be executed. It is also known as .....
22. Given, "If angles are congruent, then the measures of the angles are equal." Identify the converse.
23. Jim ..... (not/get) a better job if he ..... (not/pass) that exam.
24. For a conditional statement to be FALSE .....
25. A ..... is a fixed position in space and has no dimensions or size.