AP CSP Unit 4 - Variables, Conditionals, & Functions

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

18 Terms

1
New cards

Expression

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

2
New cards

Assignment Operator

Allows a program to change the value represented by a variable.

3
New cards

Variable

A named reference to a value that can be used repeatedly throughout a program.

4
New cards

Boolean Value

A data type that is either true or false.

5
New cards

Comparison Operators

Symbols used to evaluate a Boolean expression

6
New cards

Function

A named group of programming instructions. Also referred to as a "procedure".

7
New cards

Function Call

A command that executes the code within a function.

8
New cards

Arithmetic Operator

Part of most programming languages and include addition, subtraction, multiplication, division, and modulus operators.

9
New cards

Boolean Expression

An expression that evaluates to either true or false.

10
New cards

Concatenation

Joins together two or more strings end-to-end to make a new string.

11
New cards

Conditional Statement

Affect the sequential flow of control by executing different statements based on the value of a Boolean expression.

12
New cards

Logical operator

NOT, AND, and OR, which evaluate to a Boolean value.

13
New cards

Selection

Determines which parts of an algorithm are executed based on a condition being true or false.

14
New cards

String

An ordered sequence of characters.

15
New cards

Global Variable

A variable that can be used in any part of the program.

16
New cards

Local Variable

A variable that can only be accessed from a specific portion of a program.

17
New cards

Syntax Error

An error that results when an instruction does not follow the syntax rules or grammar of the programming language.

18
New cards

Logic Error

An error in a program that makes it do something other than what the programmer intended.