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
A variable declared within a subroutine or function
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 Wayground
14 questions
Geometry Unit 3 Flashcard ( Lessons 1-7)

Flashcard
•
10th Grade
15 questions
Equations & Inequalities Review

Flashcard
•
9th Grade
8 questions
CMU CS Academy Unit 2

Flashcard
•
9th Grade
11 questions
Python Functions

Flashcard
•
KG - 8th Grade
10 questions
Roblox Studio - 3S

Flashcard
•
9th Grade
15 questions
Gr 7 - Flashcard 1 - Lesson 10

Flashcard
•
KG
8 questions
Python Functions

Flashcard
•
9th - 12th Grade
12 questions
Exploring JavaScript Canvas Art

Flashcard
•
9th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade