AP Computer Science Principles Unit 4

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Variables

Containers for storing values in programming.

2
New cards

Variable Initialization

The process of creating a variable and assigning it a value in one line of code.

3
New cards

Assignment Operator

The equal symbol (=), used to assign values to variables in programming.

4
New cards

Displaying Variable Values

Using methods like write or console.log to view a variable's current value.

5
New cards

Boolean Expressions

Statements that determine the truth of a condition, resulting in true or false outcomes.

6
New cards

Equality Operator

The double equals sign (==) used for comparing values in programming.

7
New cards

Comparison Operators

Operators used to compare values, yielding true or false results.

8
New cards

If Statement

A conditional statement that checks if a condition is met and executes code accordingly.

9
New cards

Else Statement

An extension of an if statement that executes code when the initial condition is false.

10
New cards

Else If Statement

A conditional statement that allows checking multiple conditions in succession.

11
New cards

AND Operator

A logical operator that requires both conditions to be true for the overall expression to be true.

12
New cards

OR Operator

A logical operator that requires at least one of the conditions to be true for the overall expression to be true.

13
New cards

Functions

Blocks of code defined to perform specific tasks, which can be reused throughout a program.

14
New cards

Function Definition

The process of creating a function by assigning it a name and a sequence of actions.

15
New cards

Function Call

The act of executing a function by using its name followed by parentheses.

16
New cards

Abstraction

The concept of using functions to simplify complex problems by hiding implementation details.

17
New cards

Descriptive Function Names

Meaningful names provided to functions to enhance readability and usability of code.