placeholder image to represent content

Write commands using Python and Combine text and calculations in the same output.

Quiz by Paul Cummins

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
10 questions
Show answers
  • Q1
    What is the output of the following Python command: print('The total is', 5 + 3)?
    The total is 5
    The total is 8
    The total is 53
    The total is 3
    30s
  • Q2
    What will the following Python code output: print('5 times 2 is', 5 * 2)?
    5 times 2 is 2
    5 times 2 is 52
    5 times 2 is 10
    5 times 2 is 5
    30s
  • Q3
    What is the output of this Python command: print('The sum of', 12, 'and', 8, 'is', 12 + 8)?
    The sum of 12 and 8 is 8
    The sum of 12 and 8 is 12
    The sum of 12 and 8 is 20
    The sum of 12 and 8 is 128
    30s
  • Q4
    What will this Python code output: print('Half of 100 is', 100 / 2)?
    Half of 100 is 25
    Half of 100 is 100
    Half of 100 is 50
    Half of 100 is 50.0
    30s
  • Q5
    What will the result be when executing this Python command: print('I have', 7, 'apples and', 3, 'oranges. Total:', 7 + 3)?
    I have 7 apples and 3 oranges. Total: 10
    I have 10 apples and 3 oranges. Total: 10
    I have 7 apples and 3 oranges. Total: 73
    I have 7 apples and 3 oranges. Total: 6
    30s
  • Q6
    What will this Python statement output: print('The area of a rectangle with width 5 and height 4 is', 5 * 4)?
    The area of a rectangle with width 5 and height 4 is 14
    The area of a rectangle with width 5 and height 4 is 45
    The area of a rectangle with width 5 and height 4 is 20
    The area of a rectangle with width 5 and height 4 is 9
    30s
  • Q7
    What will the following Python command output: print('100 minus 25 is', 100 - 25)?
    100 minus 25 is 25
    100 minus 25 is 125
    100 minus 25 is 50
    100 minus 25 is 75
    30s
  • Q8
    What will the output be for this command: print('Volume of a cube with side 3 is', 3 ** 3)?
    Volume of a cube with side 3 is 27
    Volume of a cube with side 3 is 6
    Volume of a cube with side 3 is 30
    Volume of a cube with side 3 is 9
    30s
  • Q9
    What will be the output of this Python command: print('The product of 4 and 6 is', 4 * 6)?
    The product of 4 and 6 is 10
    The product of 4 and 6 is 24
    The product of 4 and 6 is 46
    The product of 4 and 6 is 20
    30s
  • Q10
    What will be the output of this command: print('The total cost is', 15 + 5.5)?
    The total cost is 20.5
    The total cost is 25.5
    The total cost is 20
    The total cost is 15.5
    30s

Teachers give this quiz to your class