
Understanding Computer Science Variables

Flashcard
•
Computers
•
11th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a variable in computer science?
Back
A variable is a symbolic name for a storage location in memory that can hold a value and may change during program execution.
2.
FLASHCARD QUESTION
Front
How do you declare a variable in Python?
Back
You declare a variable in Python by using the syntax: variable_name = value.
3.
FLASHCARD QUESTION
Front
What is the difference between a local and a global variable?
Back
Local variables are scoped to a function or block, while global variables are accessible throughout the entire program.
4.
FLASHCARD QUESTION
Front
What data types can a variable hold? Options: Integers, floats, strings, booleans, arrays, objects, null, Images, videos, sounds, documents, Functions, methods, classes, interfaces, Characters, lists, sets, tuples
Back
Integers, floats, strings, booleans, arrays, objects, null
5.
FLASHCARD QUESTION
Front
How do you change the value of a variable?
Back
Use the assignment operator to assign a new value to the variable.
6.
FLASHCARD QUESTION
Front
What is variable scope?
Back
Variable scope is the context that determines the accessibility and lifetime of a variable in a program.
7.
FLASHCARD QUESTION
Front
What is the purpose of a constant variable?
Back
The purpose of a constant variable is to hold a value that cannot be altered after its initial assignment.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Unit 5 Lessons 0 & 1

Flashcard
•
10th Grade
11 questions
Unit 5 Lesson 19: Vocabulary

Flashcard
•
KG
15 questions
AP Computer Science A Review 1

Flashcard
•
10th - 12th Grade
15 questions
Response & Explanatory Variables

Flashcard
•
11th Grade
15 questions
Unit 3 Reveiw

Flashcard
•
11th Grade
15 questions
Correlation Flashcard

Flashcard
•
11th Grade
10 questions
AP CSP Semester Exam Review

Flashcard
•
9th - 12th Grade
10 questions
AP CSP Semester Exam

Flashcard
•
9th - 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