AP Comp Sci Principles Unit 4.

studied byStudied by 6 people
0.0(0)
Get a hint
Hint

Expression

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

Explore top notes

note Note
studied byStudied by 2220 people
... ago
4.7(3)
note Note
studied byStudied by 24 people
... ago
5.0(1)
note Note
studied byStudied by 42 people
... ago
5.0(2)
note Note
studied byStudied by 48 people
... ago
5.0(1)
note Note
studied byStudied by 452 people
... ago
5.0(3)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 19 people
... ago
4.5(2)
note Note
studied byStudied by 23406 people
... ago
4.5(119)

Explore top flashcards

flashcards Flashcard (41)
studied byStudied by 2 people
... ago
4.0(1)
flashcards Flashcard (26)
studied byStudied by 173 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 21 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (47)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 3 people
... ago
5.0(1)
robot