
Subroutines Quiz

Quiz
•
Computers
•
9th Grade
•
Hard

B G
Used 6+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a subroutine?
A) A type of variable
B) A block of code that performs a specific task and can be reused
C) An error in programming
D) A command that halts the program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following describes a function in programming?
A) A sequence of actions to perform input/output.
B) A subroutine that returns a value.
C) A method for declaring variables.
D) A procedure that does not return anything.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a procedure?
A) A subroutine that returns a value
B) A subroutine that does not return a value
C) A special variable used to hold data
D) A method of storing data
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a function in Python?
A) function myFunction()
B) def myFunction[]
C) def myFunction():
D) myFunction():
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In programming, what does the term 'parameters' refer to?
A) Values returned by the function
B) Special commands within the program
C) The inputs that a function can accept
D) The outcome of a procedure
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does it mean to 'call' a function?
A) To create a new variable
B) To send data to the function for processing
C) To execute the function and perform its instructions
D) To define a new subroutine
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is true about functions and procedures?
A) Functions can take input but procedures cannot
B) Procedures can return values whereas functions cannot
C) Functions always return a value, while procedures do not
D) There is no difference between them
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
CSS Review

Quiz
•
9th Grade
16 questions
Subroutines

Quiz
•
9th - 11th Grade
14 questions
GCSE Computing - Subprograms

Quiz
•
9th - 10th Grade
16 questions
algorithms and programming

Quiz
•
8th - 10th Grade
14 questions
LA5.C5: Branching and Subroutines

Quiz
•
9th Grade - University
10 questions
48. Programming 1 : Intro to Subroutines

Quiz
•
9th - 12th Grade
15 questions
Time machine week 4

Quiz
•
9th - 12th Grade
8 questions
Small Basic Mid Point Review

Quiz
•
6th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade