Save
variables/constants
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
SensibleBuzzard99325
Visit profile
Cards (43)
What is essential for assisting future program updates?
Writing clear
code
View source
What are programs sequences of?
Instructions
for a computer
View source
What are units of information in computing called?
Data
View source
What different types can data be?
Integers
,
characters
and
Boolean
View source
In programs, what is data usually referred to as?
Values
View source
What is a variable?
A named
memory location
View source
What does RAM stand for?
Random Access Memory
View source
What happens to the data stored in RAM when a computer is turned off?
It is
lost
View source
What usually happens to the value held in a variable as a program runs?
It
changes
View source
What is a variable's name known as?
An
identifier
View source
What two things can a variable identifier contain?
Letters
and
numbers
View source
What must a variable identifier start with?
A
letter
View source
Which special character can be used in variable identifiers?
Underscore
View source
Why should a variable name be meaningful?
Represent the
value
it holds
View source
Why do variables make it easy for a program to store values in memory?
The computer keeps track of
locations
View source
What must the programmer remember when using variables?
The name of the
identifier
View source
What is required of a variable in some programming languages before assigning a value to it?
It must be
declared
View source
Why is declaring variables considered good practice?
Ensures
memory location
is ready
View source
What data type will the variable 'score' hold if it is declared as 'Dim score as integer'?
Integer values
View source
What is giving a variable a value known as?
Assignment
View source
What must happen to a variable before it can be used?
It must be
assigned
View source
What does a constant enable to be assigned?
A
value
assigned
a
name
View source
What is the primary difference between a variable and a constant?
Constants cannot be
changed
View source
Why are constants useful?
Can be
referred
to repeatedly
View source
For what types of values are constants typically used?
Values unlikely to change
View source
How are constants usually named to differentiate them from variables?
In
uppercase
View source
What is the area of a program where a variable is accessible called?
Its
scope
View source
Where can a global variable be accessed and changed?
Throughout the whole
program
View source
Where are local variables typically confined?
To a
subprogram
View source
Where is a local variable declared?
Within the
subprogram
View source
What is a potential problem when using global variables with the same name as local variables?
Updating the wrong
version
View source
What benefit does using local variables provide in programming?
Easier
debugging
View source
Why should global variables be avoided as much as possible?
Difficult
debugging
View source
How does Python handle global variables within a subprogram?
Must be
declared
as global
View source
What keyword would you use in Python to access the global variable 'ID' within a function?
global ID =
75
View source
Where is a global variable declared?
Outside of a
subprogram
View source
What part of the computer stores data?
Memory
View source
What is RAM?
Volatile
,
constantly
written memory
View source
What type of number is an integer?
A
whole number
View source
What is assignment in programming?
Giving a value to a
variable
View source
See all 43 cards