Font size
Worksheets9.1.5 - Starter Quiz
Total questions: 14
Worksheet time: 10mins
A loop that keeps repeating steps until something happens is called a (a) controlled loop.
What is the variable in the code below:
name = input("Enter your name")
input()
name
=
"
What is the name for repeating / loops commands in a program in python?
iteration
decomposition
selection
abstraction
import random
letters = ["a","b","c","d","e","f"]
chosenLetter = letters(random.randint(0,5))
What is the name of the variable in the code above
chosenLetter
letters
random
randint
import random
letters = ["a","b","c","d","e","f"]
chosenLetter = letters(random.randint(0,2))
tick all possible outputs of the program above?
a
b
c
d
e
what peice of syntax always comes at the end of a line declaring a loop in python?
?
*
:
!
>
count-controlled iteration can also be referred to as
(a) loops
(a) counter in range(5):
print(counter)
fill in the blank to make the above code print the numbers 0-4
How many pieces of data can be stored in a variable?
1
2
3
4
what is python?
a game
a coding language
a program
a browser
machine code
newName = input("Enter a name")
characterNames = ["Ada", "Alan", "Charles", "Katherine"]
characterNames.append(newName)
What is the name of the variable in this code?
newName
characterNames
input()
append()
=
newName = input("Enter a name")
characterNames = ["Ada", "Alan", "Charles", "Katherine"]
characterNames.append(newName)
What is the name of the list in this code?
newName
characterNames
input()
append()
=
newName = input("Enter a name")
characterNames = ["Ada", "Alan", "Charles", "Katherine"]
characterNames.append(newName)
What are the names of the functions in this code?
newName
characterNames
input()
append()
=
characterNames = ["Ada", "Alan", "Charles", "Katherine"]
characterNames. (a) ("Ada")
What word would I add in the blanks to take Ada out of the list called characterNames
