1/9
This set of flashcards covers key concepts about conditionals in programming, including branching, relational and logical operators, and various types of conditional statements and their evaluations.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Branching
A method in programming that allows decision making via conditions, often implemented using if-else statements.
Relational Operators
Symbols that express comparisons between values, such as
Logical Operators
Operators used to form complex Boolean expressions, including AND (&&), OR (||), and NOT (!).
If-else statement
A conditional branching statement that executes one block of code if a condition is true, and another block if it is false.
Nested if Statements
An if statement inside another if statement, allowing for multiple levels of condition checking.
Boolean Data Type
A data type with only two possible values: true or false.
Compound Statements
A group of statements that can be executed together, often enclosed in braces {}.
Switch Statement
An alternative for multiple if-else conditions that selects one block of code to execute based on the value of a variable.
Evaluation of Relational Operators
The process of determining the truth value of relational expressions, which results in 1 (true) or 0 (false).
Precedence Rules
The order in which operators in an expression are evaluated, affecting the result of the expression.