
Python Programming: Functions and Procedures
Computers
9th - 11th Grade
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following describes a Local Variable
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
Access all questions and much more by creating a free account
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?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade