CP 1.5 Operators : Assignment, Arithmetic, Relational and Logical

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

1/17

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.

18 Terms

1
New cards

=

Simple assignment operator, Assigns values from right side operands to left side operand.

2
New cards

+=

Add AND assignment operator, It adds right operand to the left operand and assign the result to left operand.

3
New cards

-=

Subtract AND assignment operator, It subtracts right operand from the left operand and assign the result to left operand

4
New cards

*=

Multiply AND assignment operator, It multiplies right operand with the left operand and assign the result to left operand.

5
New cards

/=

Divide AND assignment operator, It divides left operand with the right operand and assign the result to left operand.

6
New cards

%=

Modulus AND assignment operator, It takes modulus using two operands and assign the result to left operand.

7
New cards

%

Modulus - Returns the division remainder

8
New cards

++

Increment

Increases the value of a variable by 1.

9
New cards

- -

Decrement

Decreases the value of a variable by 1.

10
New cards

= =

Checks if the values of two operands are equal or not, if yes then condition becomes true.

11
New cards

!=

Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.

12
New cards

>

Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true.

13
New cards

<

Checks if the value of left operand is less than the value of right operand, if yes then condition becomes true.

14
New cards

>=

Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true.

15
New cards

<=

Checks if the value of left operand is less than or equal to the value of right operand, if yes then condition becomes true.

16
New cards

&&

Called Logical AND operator. If both the operands are non-zero, then condition becomes true.

17
New cards

||

Called Logical OR Operator. If any of the two operands is non-zero, then condition becomes true.

18
New cards

!

Called Logical NOT Operator. Use to reverses the logical state of its operand. If a condition is true, then Logical NOT operator will make false.