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 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 73 people
Updated ... ago
4.0 Stars(2)
note Note
studied byStudied by 47 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 21 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard51 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 31 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard46 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard21 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard90 terms
studied byStudied by 21 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard20 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard223 terms
studied byStudied by 23 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard27 terms
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)