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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following is true about the conditional statement below?If you are flying, then you are in ajet.
2. How do you write a nested if statement in Python?
3. Mr. Anton ..... (go) on holiday if he ..... (have) time.
4. In a Python program, a control structure:
5. Given, "If I have a Siberian Husky, then I have a dog." Identify the contrapositive.
6. Logical OperatorsWhat is &&?
7. For checking some condition, What do we need to use?
8. Consider the statement:If Ed lives South of Canada, then he lives in Texas.Which of the following is a COUNTEREXAMPLE to this false statement?
9. What is the output of the following code snippet:if 'bar' in \{'foo':1, 'bar':2, 'baz':3\}:print(1) print(2) if 'a' in 'qux':print(3)print(4)
10. Original:If Tiffany buys a guitar, then she will not buy a keyboard.What is this? If Tiffany does buy a keyboard, then she will not buy a guitar.
11. Which one of the following if statements will not execute successfully:
12. When taking the converse we ..... the hypothesis and conclusion.
13. John ..... (stay) in London if he ..... (get) a job.
14. Check the output. i=10while i<=1:print(i) i=+1
15. If Hendry ..... (come), his family ..... (be) surprised.
16. Given, "If I have a Siberian Husky, then I have a dog." Identify the converse.
17. Which of the following is a valid conditional statement for the following phrase:An acute angle has a measure less than 90$^\circ$.
18. If Ron ..... (eat) all this cake, he ..... (feel) sick.
19. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If a square is inscribed in a circle, then a diagonal of the square is a diameter of the circle. a square is inscribed in a circle
20. If a number is a natural number, then it is a whole number.If a number is a whole number, then it is a natural number.
21. What is value of this expression:'a' + 'x' if '123'.isdigit() else 'y' + 'b'
22. Identify the hypothesis of the statement "A parallelogram whose diagonals are congruent is a rectangle" .
23. Original:If angles are congruent, then the measures of the angles are equal. What is this? If angles are not congruent, then the measures of the angles are not equal.
24. When taking the inverse we ..... the hypothesis and conculsion
25. Which of the following is the CONVERSE of the statement below?If an object is a ring, then it ismade of gold.