CMU CS Academy Unit 7.2 Local Variables

Quiz
•
Computers
•
9th Grade
•
Medium
Joan Goldberg
Used 15+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about global variables?
Globals should never be used.
Globals should be used as little as possible.
Python will not run code that includes globals.
Globals should be used as much as possible.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about function parameters?
Function parameters should never be used.
Function parameters are locals not globals.
Function parameters are globals not locals.
Function parameters should be used as little as possible.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variables are global?
color
mouseX, mouseY
mouseX, mouseY, color
counter
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variables are local?
color
mouseX, mouseY
mouseX, mouseY, color
counter
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variables are function parameters?
color
mouseX, mouseY
mouseX, mouseY, color
counter
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variables are helper variables?
color
mouseX, mouseY
mouseX, mouseY, color
counter
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select the true statements.
s is a local variable
s is a global variable
s is a helper variable
s is.a function parameter
Similar Resources on Wayground
10 questions
Komputer Kelas 3 S1

Quiz
•
3rd Grade - University
9 questions
Computer Science Foundations - Module 4 Review

Quiz
•
9th - 11th Grade
10 questions
Microbit: Variable

Quiz
•
6th - 9th Grade
7 questions
U5-Set 7 CMU Unit 5.2 onKeyHold - lists

Quiz
•
9th Grade
10 questions
AI Project Cycle

Quiz
•
KG - Professional Dev...
10 questions
Primary Storage

Quiz
•
4th Grade - University
10 questions
Input and Output Devices

Quiz
•
7th - 9th Grade
11 questions
Computer Hardware and Software knowledge

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade