COMRPOG WEEK 2 REVIEWER (Selection Statement and Comparison & 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/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:53 AM on 8/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

Assignment operators

used to assign values to variables

2
New cards

Comparison operator

are used to compare two values or variables.

3
New cards

==

equal to (a==b) ; asking if a is truly equal to b

4
New cards

!=

not equal (a!=b) ; asking if a is not equal to b)

5
New cards

>

greater than

6
New cards
<

less than

7
New cards

=

greater than or equal to

8
New cards

=

less than or equal to

9
New cards

logical operator

used to test for true (1) or false (0) values

10
New cards

&&

logical and

11
New cards

||

logical or

12
New cards

!

logical not : !(a>5&&b<7)

13
New cards

if statement

specify a block of code to be executed, if a specified condition is true

14
New cards

else statement

to specify a block of code to be executed, if the same condition is false

15
New cards

else if statement

to specify a new condition if the first condition is false