Python - Quizizz
Python - Quizizz
Python
Classe
Nombre total de questions : 20
Durée de la feuille de travail : 10 minutes
Date
Nom de l'instructeur : Fahad Hero
3. What is syntax?
a) Sequence b) Selection
c) Variable d) Iteration
5. Code repeated / looped until a condition has been met or a set number of times.
a) Selection b) Variable
c) Iteration d) Sequence
6. What does the following code do? myAge = int (myAge)
a) Converts the var (variable) myAge to a integer b) Converts the var (variable) myAge to a string
c) Converts the var (variable) myAge from a d) Converts the var (variable) myAge to if
integer to a string statement
a) string() b) isnumeric()
c) isalpha() d) int()
10. Tells the interpreter that the code which follows is a function
a) while b) def
c) int d) const
c) guessing d) { and }
13. What syntax can you use to insert a line break between strings so that they appear over multiple
lines?
a) \n b) /
c) n d) \l
14. What will the output be from the following code?
print("Hello world!" * 2)
a) Connecting b) Combining
c) Stringing d) Concatenation
17. If you want more than one option for your code, what do you use (after if)?
a) elif b) else
c) ifif
a) John b) Rob
c) Bob
a) Rob b) Bob
c) John
20. people = ["John", "Rob", "Bob"]
print (people[4])
what would this result be?
a) John b) Error
c) Rob d) Bob