What is the name for a combination of values, variables and operators that is worked out to give a single value?
Expression
What is the name for the action of working out the value on the right of the equals sign and storing it in the variable named on the left?
Assignment
What is the name for the symbol in a calculation that shows which mathematical process is to be carried out on the values it is used with?
Operator
What is meant by the order of operations?
The rules that fix the sequence in which the parts of a calculation are worked out
What is meant by the remainder?
The value that is left over when one whole number is divided by another and the answer is given as a whole number
A program works through a list of prices and keeps adding each price to a variable called total, using lines such as total = total + price. What is this called?
A running total
When an expression contains several operators of the same priority, such as * and /, in which order are they worked out?
From left to right
What is the value of the expression 2 + 3 * 4?
14
What does this program print?
5.0
PI is 3.142 and radius is 10. What is the value of PI * radius ** 2?
314.2
What does this program print?
68.0
What does this program print?
20
What does this program print?
2 and 15
What does this program print?
48.0
A program reads two values with input() and stores them without converting them. The user types 3 and then 4. What does the program print for a + b?
34
Which of these calculations causes an error when the program runs?
9 / 0
A student writes 3 ^ 2 to work out 3 squared. Which expression should be used instead?
3 ** 2
What does this program print?
4 and 7
What does this program print?
1
The user types 4 and then 7. What does this program print?
28
A school has 50 pupils and each minibus has 16 seats. A program works out the number of minibuses needed so that every pupil has a seat. What is the smallest number of minibuses needed?
4
What does this program print?
3.5
We use cookies to enhance your experience. You can manage your preferences or learn more in our Cookie Policy.