What is a subroutine in computer programming?
Using Subroutines in Python

Quiz
•
Computers
•
12th Grade
•
Hard

David Copeland
Used 14+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A sequence of program instructions that perform a specific task
A unit of code that can be reused in programs
A way to structure and organize programming code
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the three types of subroutines in Python?
Procedures, functions, and modules
Loops, conditions, and variables
Parameters, arguments, and variables
Classes, objects, and methods
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use procedures, functions, and modules in programming?
To reuse code and make it more efficient
To structure and organize programming code
To easily incorporate other people's code
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define and create a subroutine in Python?
Using the keyword 'def' followed by the subroutine name
Using parentheses and a colon at the end of the subroutine name
Indenting the code that is part of the subroutine
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you call a subroutine before defining it in Python?
The program will crash
The subroutine will be activated
The computer will look for the subroutine and not find it
The program will continue without any issues
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a parameter in a subroutine?
A value passed to a subroutine from the main program
A value received by a subroutine from the main program
A value that determines the behavior of a subroutine
A value that is used to call a subroutine
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a parameter and an argument?
Parameters are passed, while arguments are received
Parameters are received, while arguments are passed
Parameters are values, while arguments are variables
Parameters are variables, while arguments are values
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Subroutines: Python Basics

Quiz
•
12th Grade
15 questions
Control statements in C++

Quiz
•
9th - 12th Grade
11 questions
2.1.3. Thinking Procedurally

Quiz
•
12th Grade
14 questions
Code.org Unit 3

Quiz
•
9th - 12th Grade
15 questions
G10 CS Functions and Procedures

Quiz
•
12th Grade
10 questions
Understanding Subprograms and Subroutines

Quiz
•
10th - 12th Grade
10 questions
2.2.1 (a) Using variables and constants

Quiz
•
12th Grade
10 questions
Unit Terms 2.3 -2.10

Quiz
•
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