Unit 4- Variables Conditionals, and Functions Flashcards
Expression:
-a combination of operators and values that evaluates to a single value
Alternate Definition:
A programming statement
that can consist of a value, a variable, an operator, or a procedure call that returns a value.
What do expressions always do?
Evaluate/return to a single value!
What symbol is an assignment operator?
=
Assignment operator definition
allows a program to change the value represented by a variable
Arithmetic operator:
part of most programming languages and include addition, subtraction, multiplication,
division, and modulus operators (Which we haven’t learned yet)
Variable:
a named reference to a value that can be used repeatedly throughout a program.
Boolean Value:
a data type that is either true or false.
Comparison Operators:
<, >, <=, >=, ==, != indicate a Boolean expression
Function (Procedure)
a named group of programming instructions.
- Function Call
a command that executes the code within a function
Boolean Expression:
evaluates to either true or false
Concatenation:
joins together two or more strings end-to-end to make a new string.
Conditional Statement:
affect the sequential flow of control by executing different statements based on the value
of a Boolean expression.
Evaluate:
Expressions are evaluated to produce a single value.
Logical operator:
NOT !, AND &&, and OR ||, which evaluate to a Boolean value.