
Understanding Computer Science Variables

Flashcard
•
Computers
•
11th Grade
•
Hard
Wayground 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
Random Variables

Flashcard
•
11th Grade
15 questions
Regression

Flashcard
•
11th Grade
3 questions
Scientific Variables

Flashcard
•
KG
15 questions
Scatterplots and correlation coefficient

Flashcard
•
11th Grade
15 questions
Scatter Plot Correlation DE Stat Review

Flashcard
•
11th Grade
15 questions
Linear Regression

Flashcard
•
11th Grade
10 questions
Psychology Research 1

Flashcard
•
12th Grade
8 questions
Boolean

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Chaffey

Quiz
•
9th - 12th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
12 questions
Macromolecules

Lesson
•
9th - 12th Grade
12 questions
Classifying Polys - 1.1

Quiz
•
10th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade