ECEN/CSCE155E Computer Science I - Chapter 03 Conditionals

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

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.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Branching

A method in programming that allows decision making via conditions, often implemented using if-else statements.

2
New cards

Relational Operators

Symbols that express comparisons between values, such as

3
New cards

Logical Operators

Operators used to form complex Boolean expressions, including AND (&&), OR (||), and NOT (!).

4
New cards

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.

5
New cards

Nested if Statements

An if statement inside another if statement, allowing for multiple levels of condition checking.

6
New cards

Boolean Data Type

A data type with only two possible values: true or false.

7
New cards

Compound Statements

A group of statements that can be executed together, often enclosed in braces {}.

8
New cards

Switch Statement

An alternative for multiple if-else conditions that selects one block of code to execute based on the value of a variable.

9
New cards

Evaluation of Relational Operators

The process of determining the truth value of relational expressions, which results in 1 (true) or 0 (false).

10
New cards

Precedence Rules

The order in which operators in an expression are evaluated, affecting the result of the expression.