Unit 4: Variables, Conditionals, and Functions Flashcards
expression
a combination of operators and values that evaluates to a single value
assignment operator
allows a program to change the value represented by a variable
variable
a named reference to a value that can be used repeatedly throughout a program.
string
ordered sequence of characters
Boolean value
a data type that is either true or false
comparison operators
<, >, <=, >=, ==, != indicate a Boolean expression
logical operator
NOT, AND, and OR, which evaluate to a Boolean value.
conditional statement
affect the sequential flow of control by executing different statements based on the value of a Boolean expression.
function
procedure. a named group of programming instructions.
function call
a command that executes the code within a function