Q2 L4 A - Operators and Expressions Flashcards
These are symbols that indicate the operation to be performed.
Operators
Main classifications of operators?
- Arithmetic Operators
- Relational Operators
- Logical Operators
These are used to perform mathematical calculations.
Arithmetic Operators
How many (given by ma’am) Arithmetic operators are there?
Seven
Symbol of multiplication
- (Asterisk)
Symbol of Division
/
Symbol of Addition
+
Symbol of Subtraction
-
Symbol of Exponentiation
Symbol of Modulo Division
MOD
Symbol of Integer Division
\
What to do in modulo division?
Only take the REMAINDER as the answer.
What to do in integer division?
Only take the WHOLE NUMBER as the answer.
An expression is a combination of one or more… (continue the statement)
One or more constants, variables, functions, and operators that the programming language interprets and computes to produce another value.
A syntactic entity in a programming language that may be evaluated to determine its value.
Expression