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
WHAT IS A SUBPROGRAM?
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 Wayground
10 questions
Evaluasi Javascript 3

Quiz
•
10th Grade
10 questions
GDScript Quiz - Lesson 2 - Variables & Functions

Quiz
•
12th Grade
7 questions
Year 11 Taster - Subprograms Review

Quiz
•
10th Grade
15 questions
User Defined Method - 01

Quiz
•
10th Grade
15 questions
STM20263 Topic 5 - User Defined Function

Quiz
•
9th Grade
15 questions
Functions and Parameters Quiz

Quiz
•
9th - 12th Grade
10 questions
Python Strings

Quiz
•
12th Grade
11 questions
The keyboard and mouse

Quiz
•
4th Grade - Professio...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade