AP Comp Sci Principles Unit 4.

studied byStudied by 6 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 10

11 Terms

1

Expression

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

New cards
2

Variable

holds one value at a time

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

New cards
3

Assignment Operator

allows a program to change the value represented by a variable

New cards
4

Debugging

the process of finding and fixing problems in code

New cards
5

Global Variables

Permanent. Can be used anywhere in your code

var used outside an onEvent()

New cards
6

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()

New cards
7

Numbers

Strings

Boolean

made of digits 0-9; no quotes

made of any characters; inside double quotes

true or false

New cards
8

Boolean Value

a data type that is either true or false

New cards
9

Comparison Operators

indicate a boolean expression

New cards
10

Function

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

New cards
11

Function call

a command that executes the code within a function

New cards
robot