HIGHER Python Subroutines Quiz
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Mark Wright
Used 8+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a subroutine in Python?
A type of variable
A type of loop
A block of code designed to perform a particular task
A type of conditional statement
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a subroutine in Python?
class
def
sub
func
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one advantage of using subroutines in Python?
They help in organizing code and making it reusable
They make the code run faster
They increase the memory usage
They make the code more complex
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a subroutine named `my_function` in Python?
call my_function()
my_function()
def my_function()
execute my_function()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a parameter in the context of subroutines?
A variable that is defined inside the subroutine
A type of conditional statement
A type of loop
A value that is passed to the subroutine when it is called
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a return value in the context of subroutines?
A value that is passed to the subroutine
A type of conditional statement
A type of loop
A value that the subroutine sends back to the main program
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT an advantage of using subroutines?
Code reusability
Easier debugging
Increased code complexity
Better organization of code
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?
Similar Resources on Wayground
16 questions
Conditions
Quiz
•
8th - 10th Grade
16 questions
Microcontrolere Noțiuni generale. Structura internă
Quiz
•
KG - 12th Grade
9 questions
Name that OS
Quiz
•
9th Grade
11 questions
Excel
Quiz
•
1st - 10th Grade
12 questions
Tabele HTML
Quiz
•
9th Grade
12 questions
H7.P1&P2.Nova2.Geluid.mhv
Quiz
•
4th - 10th Grade
13 questions
EXAMEN-2°AÑO-INFORMATICA P3-2021
Quiz
•
1st - 9th Grade
16 questions
Input Device
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
