Unit_5_Part_1_Selection or Conditional Statements

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 14

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

15 Terms

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