
Python Programming: Functions and Procedures
Authored by Chris Spencer
Computers
9th - 11th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is an advantage of using local variables?
They allow the variable to be used throughout the whole program
They allow variable identifiers to be reused each time
They are easier to program than global variables
A wider range of data types can be used
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What term is used to describe data passed into/out of a subroutine?
Variable
Loop
Constant
Parameter
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Leo wants to create a subroutine that will roll a dice. Which syntax is correct?
def dice roll ():
def diceroll ()
def diceroll ():
def diceroll []:
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would the output be from the program shown here? (assuming that the user enters "John" and "Smith"
John
Smith
John Smith
Error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would the output be from this program?
Error
Hello
Hello, World
World
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a procedure and a function?
They are the same thing
A procedure returns a value back to the program, a function does not
A function passes a value back to the program, a procedure does not
A function can run without being called
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the output of this program be when it is run?
Nothing
Hello, world
It will generate an error
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