CMU Unit 2.2.4 and 7.2 Variables

Quiz
•
Computers
•
9th Grade
•
Medium
Joan Goldberg
Used 101+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable declared within a subroutine or function
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 / function that will roll a dice. Which syntax is correct?
def dice roll ():
def diceroll ()
def diceroll ():
def diceroll []:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
App Creator 1.7

Quiz
•
7th - 9th Grade
15 questions
Fall Final 2024 - CS Fundamentals

Quiz
•
9th Grade
19 questions
Carnegie CMU Graphics in Python Explore Programming

Quiz
•
9th - 12th Grade
18 questions
App Inventor

Quiz
•
7th - 9th Grade
15 questions
CMU CS Academy Unit 3.2.1 Boolean Expressions Part 0

Quiz
•
9th Grade
22 questions
Scratch

Quiz
•
9th Grade
18 questions
Microbit Quiz

Quiz
•
8th - 10th Grade
15 questions
Processing Beginners Quiz

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade