NEW
Font size
WorksheetsPython
Total questions: 14
Worksheet time: 10mins
Which of these is an array?
fruit = ["apples", "oranges", "bananas"]
fruit = "apples", "oranges", "bananas"
fruit = {"apples", "oranges", "bananas"}
fruit = ("apples", "oranges", "bananas")
What is the position of the name 'Paula' in the following array:
names = ["Paul","Phillip","Paula","Phillipa"]
0
1
2
3
The number or word we give to a variable
Bug
Text
Information
Value
What is the word (command) used to output data?
input
output
command
What is a variable?
Part of the operating system that controls where data is stored.
Hardware to store data on.
A location in memory to store data that can be changed.
A location in memory to store data that can't be changed.
In programming, what is iteration?
The repetition of steps within a program
The order in which instructions are carried out
A decision point in a program
Testing a program to make sure it works
FOR loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
WHILE loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
