Unit_5_Part_1_Selection or Conditional Statements

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards
Conditional Statement
A statement that allows a choice between different actions based on a condition.
2
New cards
Boolean Expression
An expression that evaluates to either true or false, often using relational or equality operators.
3
New cards
if statement
A control structure that executes a statement if its boolean condition evaluates to true.
4
New cards
if-else Statement
A control structure that executes one statement if the condition is true, and another if it is false.
5
New cards
Logical Operators
Operators that combine boolean expressions: Logical AND (&&), Logical OR (||), and Logical NOT (!).
6
New cards
Block Statement
A group of statements enclosed in braces ({}) that can be used as a single statement in control structures.
7
New cards
Nested if Statement
An if statement that is placed inside another if statement, allowing for multiple levels of conditions.
8
New cards
Relational Operators
Operators used to compare two values, returning a boolean result:
9
New cards
Equality Operator
The operator (==) that checks if two values are equal.
10
New cards
Assignment Operator
The operator (=) that assigns a value to a variable.
11
New cards
Truth Table
A table that shows all possible true/false values for logical expressions.
12
New cards
Scanner
A class in Java used to read input from various sources, including user input.
13
New cards
NumberFormat
A class in Java that allows for formatting numbers, including currency.
14
New cards
MAX Constant
A constant used to represent the maximum boundary value in various conditions.
15
New cards
Random Class
A class in Java used to generate pseudo-random numbers.