A variable declared within a subroutine or function
CMU Unit 2.2.4 and 7.2 Variables

Flashcard
•
Computers
•
9th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

14 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Local
2.
FLASHCARD QUESTION
Front
A variable declared in the main program
Back
Global
3.
FLASHCARD QUESTION
Front
The correct way to write a variable in Python? Options: myVariable = 10, my Variable = 10, myVariable is 10, myVariable: 10
Back
myVariable = 10
4.
FLASHCARD QUESTION
Front
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
Back
They allow variable identifiers to be reused each time
5.
FLASHCARD QUESTION
Front
What term is used to describe data passed into/out of a program?
Back
Parameter
6.
FLASHCARD QUESTION
Front
Leo wants to create a subroutine / function that will roll a dice. Which syntax is correct? Options: def dice roll ():, def diceroll (), def diceroll ():, def diceroll []:
Back
def diceroll ():
7.
FLASHCARD QUESTION
Front
Which of the following is an advantage of using global 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
Back
They allow the variable to be used throughout the whole program
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
CMU CS Academy CS1 - Unit 1 Review

Flashcard
•
8th Grade
11 questions
Circle Area & Sector Area

Flashcard
•
9th - 10th Grade
11 questions
Circle Area & Sector Area

Flashcard
•
9th - 10th Grade
15 questions
📘 Mon Feb 08 Review Types of graphs

Flashcard
•
9th Grade
15 questions
Solving for a Variable

Flashcard
•
9th Grade
15 questions
Writing Equations of a Circle

Flashcard
•
9th Grade
15 questions
Solving equations & Formulas

Flashcard
•
9th Grade
14 questions
Solving Multistep Inequalities

Flashcard
•
9th Grade
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
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade