Font size
WorksheetsYear 7 Python Revision
Total questions: 38
Worksheet time: 23mins
What is the output from the following code?
print ("hello world")
What is the Python built-in function used to display numbers and text on the screen?
input
output
command
The punctuation requirements for printing a string in Python are:
( ) , ! and " "
( ) and !
( ) and " "
" " and !
name = 'Dave'
print (name)
To output hello world! which would be the correct python line of code
output("Hello World!)
Print("Hello World!)
print("hello world!)
print("hello world")
What is the variable in the code shown
variable
Name
name
What key term in python allows the user to answer a question
(a)
Fill in the blank to output in python:
(a) ("Hello World")
Fill in the blank to input in python:
(a) ("Please enter your name: ")
What is the operator to ADD in python?
+
-
*
/
What is the operator to DIVIDE in python?
+
-
*
/
What is the operator to SUBTRACT in python?
+
-
*
/
What is the operator to SUBTRACT in python?
+
-
*
/
What is the operator to MULTIPLY in python?
+
-
*
/
What do we use to store data in programming?
Sub-Routine
Iteration
Variable
Sequence
What would the following code output if the user entered 29?
You are over 18
You are under 18
What data type is whole numbers?
Float
String
Integer
Boolean
What in the name of the variable in this Python code?
name
input
("What is your name")
How many variables are there in this program?
2
3
4
5
Text to be output to the screen should be enclosed by " "
True
False
What is a character in Scratch called?
Bat
Cat
Sprite
Crab
What is the default Sprite when you open Scratch?
Cat
Dog
Bat
Crab
Which block allows you to make decisions (choices)?
Which of the following symbols means "greater than"?
<
**
/
>
Leo is writing a "Digital Pet" program in Scratch. What is Leo using here to store how thirsty his pet is?
A costume
A sprite
A function
A variable
What type of block is this?
Iteration
Variable
Sequence
Selection
What type of scratch block is this?
Input
Output
Variable
Selection
What type of scratch block is this?
Input
Output
Variable
Selection
What type of scratch block is this?
Input
Output
Variable
Selection
What type of scratch block is this?
Input
Output
Variable
Selection
