
Understanding Subprograms and Subroutines

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Mrs Milliner
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is another term for sub-programs?
Subfields
Subsections
Subclasses
Subroutines
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a sub-program or subroutine do?
Creates new variables
Deletes data
Starts the program
Performs a specific task
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How often can sub-programs be used in a program?
Repeatedly
A limited number of times
Twice
Only once
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main advantage of using sub-routines in programming?
They make programs run faster
They reduce the size of the code
They can be reused
They are only used in large programs
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you define a subroutine called Add in Python ?
def add():
def add()
Def Add()
def Add():
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are parameters used for?
To run a subroutine
To define a subroutine
The number of lines of code in a subroutine
To pass data to a subroutine
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Data can be passed out of a subroutine by using the following command
pass
return
export
output
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Classification of programming languages

Quiz
•
10th Grade
10 questions
12_CS_EM_U1_C1_FUNCTION

Quiz
•
12th Grade
13 questions
S:R3 Structured Approach to Program Design and Construction Quiz

Quiz
•
11th Grade
15 questions
SLR9 - Advanced Programming

Quiz
•
10th Grade
7 questions
Hinge_2.2_subroutines

Quiz
•
12th Grade
8 questions
Functions

Quiz
•
10th Grade
10 questions
Global and local variables

Quiz
•
10th - 12th Grade
10 questions
SLR 9 - Advanced Programming Techniques - Part Two

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade