
Y10 subroutine
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
David Kang
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of a subroutine in programming?
To define a variable
To repeat a set of statements indefinitely
to perform a specific task with an identifiable name
To terminate the program
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The values passed into a subroutine are called _______.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A subroutine is executed as soon as it is defined in the program.
True
False
4.
MATCH QUESTION
1 min • 1 pt
Match the terms to their definitions:
Breaking problems into smaller parts
Decomposition
Values a subroutine receives
Arguments
Transfers program control to subroutine
Control Flow
Values passed into a subroutine
Parameters
5.
REORDER QUESTION
1 min • 1 pt
Arrange the steps in the execution of a subroutine in order:
Return control to the main program
Execute the subroutine code
Call the subroutine
Define the subroutine
6.
OPEN ENDED QUESTION
3 mins • 1 pt
Explain one advantage of using subroutines in a program.
Evaluate responses using AI:
OFF
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the code snippet:
What will the output be?
3 + 7
10
add(3, 7)
Error
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
14 questions
Intro to Robotics
Quiz
•
9th Grade
14 questions
4th quarter 2nd summative
Quiz
•
10th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
15 questions
Virtual Private Server
Quiz
•
12th Grade
12 questions
Q2 WEEK 3 PRACTICE QUIZ #2
Quiz
•
9th Grade
10 questions
Recap: Introduction to Python
Quiz
•
10th Grade
10 questions
Computer System
Quiz
•
8th - 9th Grade
15 questions
Learning Checkpoint 3: Primary & Secondary Storage
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
