Java Control Structures and Logical Operators

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

This set covers the fundamental definitions and logic of conditional statements and operators based on the lecture notes.

Last updated 9:40 PM on 7/1/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards

if

A control structure that evaluates if a specific condition is true, translating to: 'If this IS true, do this…'

2
New cards

else

A block of code that executes when the previous conditions are not met, translating to: 'If the above was NOT met, then do this other thing…'

3
New cards

if-else execution rule

Considered as two opposite paths that never execute at the same time; only one of the two is ever executed.

4
New cards

====

A comparison operator that translates to 'equal to'.

5
New cards

!=!=

A comparison operator that translates to 'different from'.

6
New cards

>> / <<

Comparison operators that translate to 'greater' and 'less' respectively.

7
New cards

>=>= / <=<=

Comparison operators that translate to 'greater or equal' or 'less or equal' respectively.

8
New cards

and

A logical operator where both conditions must be true for the whole expression to be true.

9
New cards

or

A logical operator where at least one of the conditions must be true for the whole expression to be true.

10
New cards

%\% (Modulus)

An operator used to find the remainder of a division; for example, 65%265 \% 2 equals 11 because 65÷2=32.565 \div 2 = 32.5, leaving a remainder of 11.

11
New cards

else if

A statement used to evaluate a new condition if the initial ifif condition was false, as seen in evaluating if a numeronumero is less than 00.