Search Header Logo
Operators

Operators

Assessment

Presentation

Computers

10th Grade

Medium

Created by

Onat Mufasa

Used 8+ times

FREE Resource

9 Slides • 24 Questions

1

Operators

By Onat Mufasa

2

What is an operator?

An operator is a symbol that operates on a value or a variables

Operators are symbols that perform operations on variables and values. For example, + is an operator used for addition, while - is an operator used for subtraction.

Some text here about the topic of discussion

3

​OPERATOR

​ NAME

​ EXAMPLE

​+

Addition​

x + y​

-​

Subtraction​

x - y​

*​

Multiplication

x * y​

/​

Division​

​x / y

%​

Modulus​

​x % y

​ARITHMETIC OPERATORS

4

Fill in the Blank

Suppose x=5, y=2

x + y = ?

5

Fill in the Blank

Suppose x=5, y=2

x - y = ?

6

Fill in the Blank

Suppose x=5, y=2

x * y = ?

7

Fill in the Blank

Suppose x=5, y=2

x / y = ?

8

Fill in the Blank

Suppose x=5, y=2

x % y = ?

9

Assignment Operators

Assignment operators are used to assign values to variables.

Subject | Subject

Some text here about the topic of discussion

10

​OPERATOR

EXAMPLE​

EQUIVALENT TO​

​=

a = b​

​a = b

+=​

a += b​

a = a + b​

-=​

a -= b​

a = a - b​

*=​

a *= b​

a = a * b​

/=​

a /= b​

a = a / b​

%=​

a %= b​

a = a % b​

​ASSIGNMENT OPERATORS

11

Fill in the Blank

If a=2 and b = 7,

what is a += b ?

12

Fill in the Blank

If a=2 and b = 7,

what is a -= b ?

13

Fill in the Blank

If a=2 and b = 7,

what is a *= b ?

14

Fill in the Blank

If a=10 and b = 2,

what is a /= b ?

15

Fill in the Blank

If a=10 and b = 2,

what is a %= b ?

16

Relational operators

A relational operator is used to check the relationship between two operands

Subject | Subject

Some text here about the topic of discussion

17

​OPERATOR

MEANING

Example​

==

Is equal to​

3 == 5​ gives us false

!=

Not equal to​

3 != 5​ gives us true

>

Greater than​

3 > 5​ gives us false

<

Less than​

3 < 5​ gives us true

>=

Greater than or Equal to​

3 >=​ 5 gives us false

​<=

Less than or equal to​

3 <= 5​ gives us true

RELATIONAL OPERATORS

18

Fill in the Blank

If x=5 and y = 7,

what is x == y ?

19

Fill in the Blank

If x=5 and y = 7,

what is x != y ?

20

Fill in the Blank

If x=5 and y = 7,

what is x > y ?

21

Fill in the Blank

If x=5 and y = 7,

what is x < y ?

22

Fill in the Blank

If x=5 and y = 7,

what is x >= y ?

23

Fill in the Blank

If x=5 and y = 7,

what is x <= y ?

24

Logical operators

Logical operators are commonly used in decision making

Subject | Subject

Some text here about the topic of discussion

25

​OPERATOR

EXAMPLE​

MEANING

AND

EXPRESSION 1 AND EXPRESSION 2

LOGICAL AND.

TRUE ONLY IF ALL THE OPERANDS ARE TRUE

OR

EXPRESSION 1 OR EXPRESSION 2

LOGICAL OR. TRUE

IF AT LEAST ONE OF THE OPERANDS IS TRUE

NOT

NOT EXPRESSION

LOGICAL NOT.

TRUE ONLY IF THE OPERAND IS FALSE

LOGICAL OPERATORS

26

Fill in the Blank

(3 != 5) AND (3 < 5)

27

Fill in the Blank

(3 == 5) AND (3 < 5)

28

Fill in the Blank

(3 == 5) AND (3 > 5)

29

Fill in the Blank

(3 != 5) OR (3 < 5)

30

Fill in the Blank

(3 != 5) OR (3 > 5)

31

Fill in the Blank

(3 == 5) OR (3 > 5)

32

Fill in the Blank

NOT (5 ==2)

33

Fill in the Blank

NOT (5 == 5)

Operators

By Onat Mufasa

Show answer

Auto Play

Slide 1 / 33

SLIDE