
Write commands using Python and Combine text and calculations in the same output.
Quiz by Paul Cummins
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
10 questions
Show answers
- Q1What is the output of the following Python command: print('The total is', 5 + 3)?The total is 5The total is 8The total is 53The total is 330s
- Q2What will the following Python code output: print('5 times 2 is', 5 * 2)?5 times 2 is 25 times 2 is 525 times 2 is 105 times 2 is 530s
- Q3What is the output of this Python command: print('The sum of', 12, 'and', 8, 'is', 12 + 8)?The sum of 12 and 8 is 8The sum of 12 and 8 is 12The sum of 12 and 8 is 20The sum of 12 and 8 is 12830s
- Q4What will this Python code output: print('Half of 100 is', 100 / 2)?Half of 100 is 25Half of 100 is 100Half of 100 is 50Half of 100 is 50.030s
- Q5What 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: 10I have 10 apples and 3 oranges. Total: 10I have 7 apples and 3 oranges. Total: 73I have 7 apples and 3 oranges. Total: 630s
- Q6What 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 14The area of a rectangle with width 5 and height 4 is 45The area of a rectangle with width 5 and height 4 is 20The area of a rectangle with width 5 and height 4 is 930s
- Q7What will the following Python command output: print('100 minus 25 is', 100 - 25)?100 minus 25 is 25100 minus 25 is 125100 minus 25 is 50100 minus 25 is 7530s
- Q8What 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 27Volume of a cube with side 3 is 6Volume of a cube with side 3 is 30Volume of a cube with side 3 is 930s
- Q9What 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 10The product of 4 and 6 is 24The product of 4 and 6 is 46The product of 4 and 6 is 2030s
- Q10What will be the output of this command: print('The total cost is', 15 + 5.5)?The total cost is 20.5The total cost is 25.5The total cost is 20The total cost is 15.530s