1/16
These flashcards cover key concepts from Chapter 7 concerning expressions and assignment statements in programming languages, highlighting definitions and functions.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Expressions
Fundamental means of specifying computations in a programming language.
Arithmetic Expressions
Consist of operators, operands, parentheses, and function calls.
Operator Precedence
Defines the order in which adjacent operators of different precedence levels are evaluated.
Operator Associativity
Defines the order in which adjacent operators with the same precedence level are evaluated.
Short-Circuit Evaluation
An evaluation where the result is determined without evaluating all operands and/or operators.
Overloaded Operators
The use of an operator for more than one purpose.
Type Conversions
Processes of converting an object from one type to another, including narrowing and widening conversions.
Mixed-Mode Assignment
Assignment statements that involve operands of different types.
Functional Side Effects
Occurs when a function changes a two-way parameter or a non-local variable.
Referential Transparency
A property where any two expressions with the same value can be substituted for one another without affecting the program's outcome.
Assignment Statements
The general syntax consists of
Compound Assignment Operators
A shorthand method for specifying a commonly needed form of assignment.
Unary Assignment Operators
Operators that combine increment and decrement operations with assignment.
Conditional Expressions
Expressions that evaluate conditions to determine which value to assign.
Explicit Type Conversions
Also known as casting, where a specific type conversion is explicitly stated in the code.
Relational Expressions
Expressions that evaluate to a Boolean representation using relational operators.
Boolean Expressions
Expressions that operate on Boolean values, resulting in Boolean outcomes.