AP Comp Sci Principles Unit 4.

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

Expression

a combination of operators and values that evaluates to a single value

2
New cards

Variable

holds one value at a time

a reference to a value or expression that can be used repeatedly throughout a program

3
New cards

Assignment Operator

allows a program to change the value represented by a variable

4
New cards

Debugging

the process of finding and fixing problems in code

5
New cards

Global Variables

Permanent. Can be used anywhere in your code

var used outside an onEvent()

6
New cards

Local Variables

Temporary. Can be used only in the part of the code where it was created, like inside an onEvent(). Deleted once the onEvent() is done running

var used inside an onEvent()

7
New cards

Numbers

Strings

Boolean

made of digits 0-9; no quotes

made of any characters; inside double quotes

true or false

8
New cards

Boolean Value

a data type that is either true or false

9
New cards

Comparison Operators

indicate a boolean expression

10
New cards

Function

a named group of programming instructions. Also referred to as a “procedure”

11
New cards

Function call

a command that executes the code within a function