Q2 L4 A - Operators and Expressions Flashcards

1
Q

These are symbols that indicate the operation to be performed.

A

Operators

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

Main classifications of operators?

A
  1. Arithmetic Operators
  2. Relational Operators
  3. Logical Operators
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

These are used to perform mathematical calculations.

A

Arithmetic Operators

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

How many (given by ma’am) Arithmetic operators are there?

A

Seven

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

Symbol of multiplication

A
  • (Asterisk)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Symbol of Division

A

/

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

Symbol of Addition

A

+

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

Symbol of Subtraction

A

-

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

Symbol of Exponentiation

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

Symbol of Modulo Division

A

MOD

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

Symbol of Integer Division

A

\

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

What to do in modulo division?

A

Only take the REMAINDER as the answer.

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

What to do in integer division?

A

Only take the WHOLE NUMBER as the answer.

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

An expression is a combination of one or more… (continue the statement)

A

One or more constants, variables, functions, and operators that the programming language interprets and computes to produce another value.

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

A syntactic entity in a programming language that may be evaluated to determine its value.

A

Expression

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

the acronym / arithmetic hierarchy of computation

A

PEMDAS

17
Q

They are used to compare two values base on certain condition.

A

Relational Operators

18
Q

List of Relational Operators

A
  1. > greater than
  2. < less than
  3. = equal to
  4. <> not equal to
  5. > = greater than or equal to
  6. <= less than or equal to
19
Q

Operators that determine if a particular condition is satisfied

A

Logical Operators

20
Q

Types of Logical Operators

A

A. AND
B. OR
C. NOT

21
Q

What is the condition of AND operator?

A

The result is always true if and only if ALL CONDITIONS are TRUE.

22
Q

What is the condition of OR operator?

A

Only needs at least ONE TRUE for the result to be TRUE.

23
Q

What is the condition of NOT operator?

A

The result is always the OPPOSITE of the GIVEN condition.

24
Q

A set of rules specifying which procedures should be performed
first in a mathematical expression.

A

Order of Precedence

25
Q

Other names for order of precedence

A

“order of operations” or “operator of precedence”