Chapter 4: Variables, Conditionals, and 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/15

flashcard set

Earn XP

Description and Tags

Vocabulary terms and definitions covering variables, conditional statements, logical operators, and functions from Chapter 4.

16 Terms

1
New cards

Assignment Operator

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

2
New cards

Boolean Value

A data type that is either true or false.

3
New cards

Comparison Operator

Operators (<,>,<=,>=,==,!=<, >, <=, >=, ==, !=) that indicate a Boolean expression.

4
New cards

Conditional Statement

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

5
New cards

Expression

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

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

Logical Operator

NOT (!!), AND (&&\&\&), and OR (∣∣||) which evaluate to a Boolean value.

9
New cards

String

An ordered sequence of characters.

10
New cards

Variable

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

11
New cards

Global Variable

A variable that is permanent and can be used in any part of the code.

12
New cards

Local Variable

A variable that is temporary and is declared/used within the given function.

13
New cards

Concatenation (++)

An operation used to put two or more things together either in a variable or to print out a statement.

14
New cards

AND Operator (&&\&\&)

A conditional operator that evaluates to true only when both expressions are true (True &&\&\& True); otherwise, it evaluates to false.

15
New cards

OR Operator (∣∣||)

A conditional operator that evaluates to true if at least one expression is true, and evaluates to false only when both expressions are false (False ∣∣|| False).

16
New cards

NOT Operator (!!)

A conditional operator that acts as a NOT statement, evaluating !True!\text{True} to false and !False!\text{False} to true.