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 2525 people
... ago
5.0(3)
note Note
studied byStudied by 36 people
... ago
5.0(5)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 91 people
... ago
5.0(2)
note Note
studied byStudied by 25 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 37 people
... ago
5.0(2)
note Note
studied byStudied by 37 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (76)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 14 people
... ago
5.0(2)
flashcards Flashcard (57)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (24)
studied byStudied by 19 people
... ago
5.0(1)
flashcards Flashcard (81)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (277)
studied byStudied by 55 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 50 people
... ago
5.0(1)
robot