Arithmetic, Relational/comparison,Logical/Boolean Operators Flashcards

1
Q

What operator is being used below and what is its function? 7 + 2 = 9

A

(+)
Function: Addition.
It is an Arithmetic operator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What operator is being used below and what is its function?
7 - 2 = 5

A

(-)
Function: Subtraction
It is an Arithmetic operator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does BIDMAS stand for?

A

Brackets, Indices, Division, Multiplication, Addition, Subtraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What operator is being used and what is its function?
7 * 2 = 14

A

(*)
Function: Multiplication
It is an Arithmetic operator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What operator is being used and what is its function?
7/2 = 3.5

A

(/)
Function: Division
It is an Arithmetic operator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What operator is being used and what is its function?
3**3 = 27

A

(**)
Function: Exponent
It is an Arithmetic operator (surprise!)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What will happen when a DIV operator is run?

A

The quotient will return as a result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What will happen when a MOD operator is run?

A

The remainder will return as a result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

27 MOD 13

A

Result = 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

24 DIV 3

A

Result = 8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is this operator: <

A

Less than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is this operator: >

A

Greater than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is this operator: <=

A

Less than or equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is this operator: >=

A

Greater than or equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is this operator: ==

A

Equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is this operator: !=

A

Not equal to

17
Q

True or False
10 <= 10

A

True

18
Q

Which operator evaluates to True when all of the relational expressions evaluate to True?

A

AND

19
Q

Which operator evaluates to True when either or both of the relational expressions evaluate to True?

A

OR

20
Q

Which operator evaluates to True when the relational expression evaluates to False?

A

NOT

21
Q

Which operator evaluates to False when both relational expressions evaluate to True or both relational expressions evaluate to False?

A

XOR

22
Q

What result will be printed after the following is evaluated?
7 + 2(12 - 3(2^2))^2

A

Result = 7