CP M.7 Functions Assessment Review
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Marcia Bernas
Used 11+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use functions?
To stop the program from repeating.
To test for true and false.
To simplify code.
To ask the user for input.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The _____________ go above the _____________ in the source code file
main program, return
main program, functions
subprograms, main program
def, functions
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Does the following code return a string or a number?
def f():
return "3"
string
number
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It is necessary to do something to the value returned by a function; otherwise the value will not be stored in memory and will be lost.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable used to send information to a function.
return
Parameter
Tracing code
def
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We call the central part of the program the ______________ program
main
def
sub
return
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following parameters is optional?
sample ( a, b, c, d = 121)
a
d
c
b
Answer explanation
d has a default value (121) and thus is optional
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
