1/12
These flashcards cover various concepts from Chapter 03 of Computer Science I, focusing on conditionals and logical operations, which are vital for understanding decision-making in programming.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Branching
A programming concept where a program makes decisions based on conditions, leading to different execution paths.
Relational Expression
An expression used to compare operands with relational operators to produce Boolean outcomes.
Relational Operators
Operators that compare two values and return true or false; includes
Logical Operators
Operators used to create more complex conditions, including AND (&&), OR (||), and NOT (!).
If-Else Statement
A control structure that allows executing one block of code if a condition is true, and another block if it is false.
Nested If Statements
An if statement placed inside another if statement, allowing for multiple layers of conditions.
One-Way Selection
An if statement that executes a block of code only if its condition is true, without an else clause.
Multibranch If-Else Statements
A structure that allows multiple possible paths of execution based on different conditions.
Switch Statement
An alternative to the if-else chain that evaluates an expression and matches its value against multiple cases.
Logical NOT
An operator that inverts the truth value of an expression, converting true to false and vice versa.
Boolean Data Type
A datatype that can hold one of two values: true or false.
Precedence Rules
The rules that define the order in which operators are evaluated in an expression.
Input/Output
The process of taking user input and displaying outputs based on program logic and conditions.