CMU Unit 2.2.4 and 7.2 Variables
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Joan Goldberg
Used 101+ times
FREE Resource
Enhance your content in a minute
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
The correct way to write a variable in Python?
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
การเขียนโปรแกรม PHP
Quiz
•
9th Grade
15 questions
CP M4 Repetition & Loops
Quiz
•
9th - 12th Grade
24 questions
S3 Python datatypes and variables
Quiz
•
8th - 10th Grade
15 questions
KS4 - Representing Images
Quiz
•
9th - 11th Grade
19 questions
PyGame 9 сынып 4 тоқсан 1
Quiz
•
9th Grade
20 questions
Semester 1 - Microsoft Word
Quiz
•
9th - 12th Grade
19 questions
Photography Elements & Composition
Quiz
•
7th - 12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
