What is a subroutine?

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
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 Quizizz
8 questions
Functions and Procedures

Quiz
•
9th - 11th Grade
10 questions
AP Computer Science Principles - Unit 4: Variables, Conditionals

Quiz
•
9th - 12th Grade
8 questions
1.1.3 CSE Conditionals and Event-driven Programming

Quiz
•
9th - 12th Grade
15 questions
Understanding Python Subroutines

Quiz
•
9th Grade
17 questions
Flowcharts and Actuators

Quiz
•
7th - 10th Grade
10 questions
SUBROUTINE 101

Quiz
•
9th Grade
15 questions
Gateway Level 3 Python Quiz 3

Quiz
•
9th - 12th Grade
16 questions
SST Yr8 - NCCE - Algorithms

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University