Which of the following is the best definition of a VARIABLE?
A variable is container of data
A variable is piece of data
A variable is a number
A variable is a piece of text
2. Multiple Choice
30 seconds
1 pt
Amy creates a program which includes the variable shown here. What would be the best way of describing "lives"?
"lives" is string
"lives" is an identifier
"lives" could be used in a game
"lives" is a float
3. Multiple Choice
30 seconds
1 pt
Matt wants to create a program to keep a record of temperatures. Which DATA TYPE would be most suitable for a variable called "temperature"?
A string
A boolean
An integer
A float
4. Multiple Choice
30 seconds
1 pt
Anil is writing a program to store information about his favourite films. What would be a suitable data type for a variable used to store the name of the film?
A string
A booelan
An integer
A float
5. Multiple Choice
30 seconds
1 pt
Mia is writing a program that will store survey she has carried out about smartphones. What would be a suitable DATA TYPE to use for a variable containing the number of people said they used an Android phone?
A string
An integer
A boolean
A float
6. Multiple Choice
30 seconds
1 pt
Zac has written this program in Python. The user enters two numbers. If the user enters 10 for each number, what will the output of the program be?
10
20
1010
It won't run
7. Multiple Choice
1 minute
1 pt
Max has written this program in Python. One of the lines contains at least one error. Which line is it?
Line 1
Line 2
Line 3
Line 4
8. Multiple Choice
30 seconds
1 pt
What word describes the rules that determine how we have to write our programming commands in Python?
Statements
Expressions
Variables
Syntax
9. Multiple Choice
30 seconds
1 pt
Which of the following statements about Python programming is not true?
Programs only work if you follow the correct syntax
A program in Python may not do as you expect, even if it runs
It is Python's fault if the program doesn't run or do what you expect
Programs can only carry out instructions based on the code they contain