Procedures and Functions
Quiz
•
Computers
•
10th Grade
•
Medium
Standards-aligned
Rachel Lynch
Used 141+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 sec • 1 pt
What term is used to describe data passed into/out of a program?
Variable
Loop
Constant
Parameter
3.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 sec • 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
30 sec • 1 pt
What is the difference between a subroutine and a function?
They are the same thing
A subroutine passes values back out to the program, a function does not
A function passes values back out to the program, a subroutine does not
A function can run without being called
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is not true?
Functions/subroutines are examples of reusable code
Functions and subroutines are always appropriate in programs
Using functions/subroutines make it easier to "deconstruct" a problem into smaller pieces
They can make programs easier to read and understand
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following best describes the order in which these lines are processed in Python?
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
File Extensions
Quiz
•
9th Grade - Professio...
20 questions
X - Progdas - Array dan Fungsi
Quiz
•
10th Grade
20 questions
INTRODUCCIÓN A LOS ALGORITMOS
Quiz
•
9th - 12th Grade
16 questions
Revision MIT App Inventor after lvl3 clouds
Quiz
•
5th - 12th Grade
18 questions
BJC Unit 4 Review (AP CSP - Internet)
Quiz
•
9th - 12th Grade
20 questions
Cambridge Nationals LO3
Quiz
•
10th Grade
15 questions
Unit 1. Introduction to Object-Oriented Programming Concepts
Quiz
•
9th - 10th Grade
19 questions
Analog vs. Digital Information
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
