CMU Unit 2.2.4 and 7.2 Variables

Flashcard
•
Computers
•
9th Grade
•
Hard
Wayground 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
15 questions
Part 1 Algebra 1 Final Exam 1st Sem 2024

Flashcard
•
9th Grade
15 questions
Credit Cards/Finance Charge

Flashcard
•
9th Grade
8 questions
Variables Warm up Code.org CSP Unit 4

Flashcard
•
9th Grade
8 questions
Interpreting Variables, Slope & y-Intercepts (Scatter Plots)

Flashcard
•
8th Grade
15 questions
Intro to Biology Flashcard

Flashcard
•
9th Grade
15 questions
24f_05 Slope-intercept Word Problems

Flashcard
•
9th Grade
15 questions
Multiplying Polynomials (Box Method)

Flashcard
•
9th Grade
15 questions
Simplifying Algebraic Expressions

Flashcard
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade