
Year 9 Homework 5 Python 1
Quiz by KS3 IT
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
14 questions
Show answers
- Q1What does the 'print()' function do in Python?Imports external librariesPerforms mathematical calculationsDisplays output to the screenDefines a new variable30s
- Q2What python function accepts an input from a user?input()variableprint()data-type30s
- Q3What is a variable in programming?A data-typeA functionPermanent storage on the hard drive.A location in memory where a value can be stored while the program runs.30s
- Q4What would be the output of print("This is a test")print("This is a test")"This is a test"This is a testError30s
- Q5What is the mistake in this line of code: answer = Input ("What is the capital of England?")There is a missing speech markThere is a missing bracket.There is not a variable.There should not be a capital I for input()30s
- Q6Which of the following will produce an error?print(It is a nice day")print("I love Mondays!")print("Python is fun")print("Hello Year 7")30s
- Q7What is an algorithm?A Dance?Something that grows in a pond?A mathematical formulaA list of instructions for a digital device.30s
- Q8What data type is used to represent decimal numbers in Python?IntegerListStringFloat30s
- Q9Which of the following is an example of a string in Python?True'Hello, World!'[1, 2, 3]12330s
- Q10What data type represents whole numbers in Python?StringIntegerBooleanFloat30s
- Q11What is the result of using the int() function on the float 9.99 in Python?109.09Error30s
- Q12What is the result of concatenating 'Hello' and 'World'?HelloWorldHello, World!Hello-WorldHello World30s
- Q13What does it mean to concatenate two strings in programming?To count their lengthTo split them apartTo join them togetherTo change their case30s
- Q14Which of the following is an example of an input device?MonitorKeyboardPrinterSpeaker30s