1-Python Input, Output, Variables and Operators - Print - Quizizz
1-Python Input, Output, Variables and Operators - Print - Quizizz
NAME :
CLASS :
Python Input, Output, Variables and Operators
DATE :
120 Questions
a) variable b) whitespace
c) interpreter d) modulo
2. Which data type than can have one of two values: True or
False?
a) boolean b) variable
c) modulo d) interpreter
a) my_variable = 10 b) my variable = 10
c) my_variable is 10 d) my_variable: 10
a) String b) Integer
c) Float d) Boolean
a) String b) Integer
c) Boolean d) Float
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 1/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) 3+4 b) 7
c) SyntaxError d) print(3+4)
a) 36 b) 121212
c) 24 d) 12*3
a) 7 b) 3+4
c) 34 d) SyntaxError
a) print() b) int()
c) input() d) def
14. Which is the most appropriate data type for: "13th December"
a) Float b) Boolean
c) Integer d) String
15. What is the word (command) used to display numbers and text
on the screen?
a) print b) input
c) output d) command
a) equals = b) plus +
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 2/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) Dave b) 'Dave'
c) name d) (name)
a) 20 b) 22
c) 24 d) 26
a) 1 b) 2
c) 6 d) 10
a) input b) output
c) print d) variable
a) False b) True
a) True b) False
a) True b) False
e) Boolean
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 3/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) Addition b) Subtraction
c) Division d) Modulo
c) String d) Character
e) Boolean
e) Boolean
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 4/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
c) String d) Character
e) Boolean
36. Conversion of one data type to another e.g. age = "30" # this is
a string!YearsOld=int(age)
is known as...?
a) print b) write
c) msg d) input
a) := b) ==
c) =
a) The input function can also be used as an b) The input function can also be used as an
output, but only one string at a time. output, with several strings at a time.
c) The string of text can be used to instruct the d) The string of text is required, to act as a
user as to what they must type in. wrapper for the input the user types in;
otherwise the data will be invalid string data
and go nowhere.
a) A named block of memory, used whilst a b) A named block of memory, where the results
program is running to store data. of a program get stored once it has been
closed down.
c) A block of computer memory that gets d) A process within the cpu, that is given a
permanently named after the variable, even specific name by the program, so it is easier
when the program is closed down. to identify.
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 5/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) Fred b) 'Fred'
c) name d) (name)
a) 1 b) 3
c) 21 d) 165
c) To make the code compile. d) To make your code longer so you get more
points.
a) boolean b) modulus
c) variables d) exponents
a) 3 b) 3.4
c) 2 d) 12
a) += b) =
c) -> d) ==
a) SyntaxErrror b) 17
c) 3*4+5 d) 12
a) SyntaxErrror b) 17
c) 3*4+5 d) 12
a) /, *, +, - b) div, mul, +, -
c) \, x, +, - d) ~, *, +, -
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 6/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) input() b) print()
c) import d) eval()
52. >=
53. 2 == 3
a) TRUE b) FALSE
a) == b) !=
c) =< d) >=
a) ( b) )
c) " d) =
a) One will print " " marks and the other will not b) One prints the word name, and the other
prints whatever is assigned the name
variable
c) One prints out name, the other gets input and d) There is no difference, they both do the same
stores it in name thing
a) foo and "a string" are printed b) "a string" is added onto to the end of foo
c) The value "a string" is stored in the variable d) The user is asked to enter "foo" into the
foo console
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 7/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) b) Torvald
a) 32 b) 30
c) 31 d) 33
a) 230 b) 243
c) 250 d) 252
a) a123 b) _n
c) 1a d) n%4
e) n 9
a) os b) math
c) random d) statistics
e) sys
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 8/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) list b) tuple
c) dict d) set
a) type() b) typeof()
67. what is the buit-in module one should import to work on regex
a) regular expression b) re
a) """""" b) ''''''
a) no b) yes
a) 1234 b) 1234
c) 12345 d) 1245
a) sub b) function
c) fun d) def
a) interger b) float
c) character d) double
73. what is the built-in function used to sort the given list of
elements in python
a) sort b) sorted
c) merge d) srt
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 9/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) Integer b) Double
c) Boolean d) String
c) String d) Integer
a) Character b) String
c) Integer d) Double
c) Boolean d) String
a) String b) Character
c) Boolean d) Integer
a) A storage location of memory which can b) A random area to store things in.
change
a) A storage location of memory which does not b) A random area to store things in.
change
c) Something that changes d) Something that can only store numbers
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 10/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) password b) passwordScore
c) passwordLength
a) password b) passwordScore
c) passwordLength
84. What extension must you add to the end of a file when saving?
a) .xlsx b) .pptx
c) .docx d) .py
85. What syntax can you use to insert a line break between strings
so that they appear over multiple lines?
a) / b) \n
c) \l d) n
a) False b) True
a) A data type that contains whole numbers. eg: b) Numbers with decimal point. eg: 0.5, 2.45,
3, 45, 124 56.04
c) Group of characters between quotation d) Data type that can only be True or False.
marks. eg: "dog"
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 11/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) 64 b) "cat"
c) True d) 0.5
a) A data type that contains whole numbers. eg: b) Numbers with decimal point. eg: 0.5, 2.45,
3, 45, 124 56.04
c) Group of characters between quotation d) Data type that can only be True or False.
marks. eg: "dog"
a) 64 b) "cat"
c) True d) 0.5
a) A data type that contains whole numbers. eg: b) Numbers with decimal point. eg: 0.5, 2.45,
3, 45, 124 56.04
c) Group of characters between quotation d) Data type that can only be True or False.
marks. eg: "dog"
a) 64 b) "cat"
c) True d) 0.5
a) A data type that contains whole numbers. eg: b) Numbers with decimal point. eg: 0.5, 2.45,
3, 45, 124 56.04
c) Group of characters between quotation d) Data type that can only be True or False.
marks. eg: "dog"
a) 64 b) "cat"
c) True d) 0.5
a) input() b) myVar="Hi"
c) print("Hello!") d) max=100
a) Python is a high level programming language b) Python is an low level programming language
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 12/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
b) string c) float
d) Boolean
c) boolean d) string
a) cin b) input()
c) scanf() d) <>
a) The Python interpreter ignores comments b) Comments are used by programmers for a
better understanding of the program
a) Boolean b) Float
c) String d) Integer
c) my_variable is 10 d) my_variable: 10
a) 10 ** 2 b) 10 * 2
c) 10 % 2 d) 10 ** 10
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 13/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
a) # b) %
c) ** d) ()
a) % b) &
c) # d) **
c) # d) %
a) 4.5 b) 4.0
c) 4 d) 3
a) 7 b) 1
c) 0 d) 5
a) 2.0 b) 2
c) 9 d) 9.0
113. x = 5
print(x > 3 and x < 10)
a) True b) False
114. x = 8
print(x > 3 or x < 20)
a) True b) False
115. x = 5
print(not(x > 3 or x < 2))
a) True b) False
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 14/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
116. x = 5y = 3
print(x == y)
a) True b) False
117. x = "5"y = 5
print(x == y)
a) True b) False
118. x = 10y = 10
print(x != y)
a) True b) False
119. x = 5
x%=3
print(x)
a) 2 b) 2.0
c) 3 d) 3.0
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 15/16
2/14/2020 Python Input, Output, Variables and Operators | Print - Quizizz
Answer Key
1. a 31. a 61. d 91. b
2. a 32. c 62. a,b 92. d
3. a 33. a,d 63. e 93. d
4. a 34. e 64. a,b,c,d,e 94. c
5. b 35. c 65. e 95. c
6. c 36. c 66. a 96. a
7. b 37. a 67. b 97. a
8. b 38. c 68. c 98. d
9. b 39. b 69. a 99. b
10. b 40. c 70. a 100. b
11. a 41. a 71. d 101. c
12. b 42. a 72. a 102. d
13. c 43. b 73. b 103. b
14. d 44. b 74. a 104. a
15. a 45. b 75. a 105. a
16. a 46. c 76. a 106. a
17. a 47. b 77. a 107. a
18. d 48. c 78. a 108. a
19. b 49. b 79. a 109. a
20. c 50. a 80. a 110. c
21. a 51. a 81. b 111. b
22. a 52. b 82. a 112. b
23. a 53. b 83. a 113. a
24. b 54. c 84. d 114. a
25. c 55. d 85. b 115. b
26. b 56. b 86. b 116. b
27. a 57. c 87. c 117. b
28. d 58. c 88. b 118. b
29. a 59. a 89. a 119. a
30. c 60. d 90. a 120. b
https://quizizz.com/print/quiz/5dd7b569d7ff37001bd90e94 16/16