Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 3 (60 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. If there is an angle, then it is acute. What is an appropriate counterexample?
2. The valid combination of both the operands and operators makes an ..... which returns a computer result.
3. Check the output.Print(10 in [1, 2, 3, 4, 10, 12])
4. Which property states that 4 = 4?
5. I ..... (not/go) if you ..... (not/come) with me.
6. Write the inverse of the following statement."If a figure is a triangle, then the angles add to 180.
7. Which statement is logically equivalent to the conditional statement?
8. What is the result of the code:team = ("Cowboys")if team == "Cowboys":print("Dallas is #1")
9. "I do my homework, then I get my allowance." What is the hypothesis?
10. Accessing the elements of a sequence one by one is called .....
11. What is the conclusion in the conditional statement below?If a rectangle has 4 equal sides, then it is a square
12. Given the conditional;"If our class earns ten trucks, then we get a treat."What is the contrapositive?
13. What is the contrapositive of the following statement?If it is Saturday, then the school is closed
14. What is printed when this program is run:days = 5 if days > 6:print( "Month" ) else:print( "Week" )
15. Move from one track to another, say after the first lap they move to next lap, and so on. This is called the .....
16. Write a definition of congruent angles as a biconditional statement.
17. What is the if-then form of the statement: "A triangle is a polygon" ?
18. Refer to the following statement: "If a polygon is a quadrilateral, then it is a trapezoid."What is the inverse of this statement?
19. A biconditional of two true conditional statement is formed by .....
20. For loop in python will work on?
21. Write the if-then form of the statement:It always rains when it is cloudy
22. If the conditional statement was "If an angle is acute, then it has a measure less than 90$^\circ$.", which type of statement is the following?An angle is acute if and only if (iff) it has a measure less than 90$^\circ$.
23. Identify the hypothesis of the statement:Three coplanar points are also colinear
24. What is the syntax for an if statement in Python?
25. The code inside 'If' statement is executed only once
26. What is the Hypothesis of this conditional statement:If you live in Nashville, then you live in Tennessee
27. Re-write the statement "A triangle contains exactly three angles" into if-then form.
28. If Tracey goes on vacation, then she will go to Orlando. Identify the conclusion.
29. Which of the following is true about the conditional statement below?If you are flying, then you are in ajet.
30. How do you write a nested if statement in Python?
31. Mr. Anton ..... (go) on holiday if he ..... (have) time.
32. In a Python program, a control structure:
33. Given, "If I have a Siberian Husky, then I have a dog." Identify the contrapositive.
34. Logical OperatorsWhat is &&?
35. For checking some condition, What do we need to use?
36. 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?
37. 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)
38. 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.
39. Which one of the following if statements will not execute successfully:
40. When taking the converse we ..... the hypothesis and conclusion.
41. John ..... (stay) in London if he ..... (get) a job.
42. Check the output. i=10while i<=1:print(i) i=+1
43. If Hendry ..... (come), his family ..... (be) surprised.
44. Given, "If I have a Siberian Husky, then I have a dog." Identify the converse.
45. Which of the following is a valid conditional statement for the following phrase:An acute angle has a measure less than 90$^\circ$.
46. If Ron ..... (eat) all this cake, he ..... (feel) sick.
47. 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
48. 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.
49. What is value of this expression:'a' + 'x' if '123'.isdigit() else 'y' + 'b'
50. Identify the hypothesis of the statement "A parallelogram whose diagonals are congruent is a rectangle" .
51. 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.
52. Which of the following is the CONVERSE of the statement below?If an object is a ring, then it ismade of gold.
53. Determine if the statement is true or false:Three coplanar points are also colinear
54. Which code block is an example of conditional statement in Scratch?
55. Determine if the statement is true or false:It always rains when it is cloudy
56. Given, "If angles are congruent, then the measures of the angles are equal." Identify the conclusion.
57. The following if/elif/else statement will raise a KeyError exception:1 d = {'a':0, 'b':1, 'c':0}23 if d['a'] > 0:4 print('ok')5 elif d['b'] > 0:6 print('ok')7 elif d['c'] > 0:8 print('ok')9 elif d['d'] > 0:10 print('ok')11 else:12 print('not ok')
58. Give a counter example to the following statement:"All odd numbers are prime numbers."
59. What symbol represents the or operator in JavaScript?
60. Check the outputi=10print(i in range(100, 200))