Which of the following describes a Local Variable
Python Programming: Functions and Procedures

Quiz
•
Computers
•
9th - 11th Grade
•
Hard
Used 11+ times
FREE Resource
Student preview

12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
They can be used throughout the whole program
They are only available to be used in the function where they are defined
They are easier to access
They change during whenever they are used.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What term is used to describe data passed into/out of a function?
Variable
Loop
Constant
Parameter
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the main code is to use information from a function, what is required?
print statement
variables
constants
return statement
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Joe wants to create a subroutine that will roll a dice. Which syntax is correct?
def dice roll ():
def diceroll ()
def diceroll ():
def diceroll []:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing from this code for it to print first name and surname?
input
return (name)
print(name)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why would this program report an error?
message is not passed into the function as a parameter
message is not defined
Hello World is not valid
There is no return on the function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing from this program for this function to print Hello, world?
Nothing
Call of the function
Parameters
Create a free account and access millions of resources
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade