WHAT IS A SUBPROGRAM?
Python Review - Functions

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Margaret McGraw
Used 66+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Inside the parentheses of a function
The act of assigning a value to an argument for use by a function
A variable used to send information to a function
A collection of commands given a name that return a value or perform an action
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a return in a subprogam?
Keyword that tells the subprogram what to print
Keyword that tells the subprogram what value to send back
Keyword that tells the subprogram what to add
Keyword that tells the subprogram what to multiple
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is a parameter in a function?
input value to a function for the function’s execution
a variable used to send information to a function
the name of the function
the name of the main program calling the function
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
WHAT ARE THE REASONS FOR USING SUBPROGRAMS (ALIAS FUNCTIONS)?
To build code that will be reused
To simplify code
To add comments
Help us to organize longer programs
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
WHAT ARE THE STEPS TO ADD A FUNCTION TO A PROGRAM?
Print the function
Define the function
Add it above the main program
Return the function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Subprograms go ABOVE main program
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
WHAT IS THE DIFFERENCE BETWEEN A PARAMETER AND A FUNCTION?
1.Functions input values to a parameter
2.Parameter operate on those function values
1.Parameters input values to a function
2.Functions operate on those parameter values
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Alrpo

Quiz
•
11th Grade
12 questions
UTS Semester 1 Informatika 2024/2025

Quiz
•
9th Grade
12 questions
UTS Semester 1 Informatika 2024/2025

Quiz
•
8th Grade - University
10 questions
Programming

Quiz
•
1st - 10th Grade
15 questions
ASK T3-STRUKTUR KOD ARAHAN

Quiz
•
9th Grade
15 questions
IF and Vlookup Function

Quiz
•
9th - 10th Grade
12 questions
OCR GCSE Programming Techniques

Quiz
•
9th - 12th Grade
10 questions
Quarter 4 - LQ1 (Oracle Prog)

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