
Y9 Subroutines L3 AFL
Authored by Naomi Bailey
Computers
8th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What Python code is used to output a message to the user?
print()
def
return
output
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the name of the subroutine in this program?
number
double
timesTwo
return
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
On what line is mySubroutine called (run)?
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
On what line is mySubroutine defined (created)?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of this program?
mySubroutine
message
return
Hi
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What statement is used to pass a value back to the main program from a subroutine without outputting it?
return
print()
def
pass
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first output of this program?
Ciao
Hello
Bonjour
Hallo
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?