A variable declared within a subroutine
Global and local variables

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Louise Lockwood
Used 349+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Global
Local
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable declared in the main program
Global
Local
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.
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
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What term is used to describe data passed into/out of a program?
Variable
Loop
Constant
Parameter
6.
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 []:
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is the correct output for this program?
bacon local ,spam local, bacon local, global
spam local, bacon local, bacon local, global
global, bacon local, spam local, bacon local,
global, spam local, bacon local, bacon local
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
Variables in Python Quiz

Quiz
•
11th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
10 questions
Python Input/Output

Quiz
•
9th - 12th Grade
10 questions
H466 - Global and Local Variables

Quiz
•
12th Grade - University
9 questions
Python Variable Scope and Stack Frames

Quiz
•
11th Grade
12 questions
Theory

Quiz
•
10th - 12th Grade
15 questions
Computer science paper 2

Quiz
•
10th Grade
10 questions
TLE Q3 M4

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University