Lesson# 6 Expressions and Operators Flashcards
What 2 things can you use expressions for?
Carrying out calculations and manipulating text strings.
What are the 5 Operator categories?
Arithmetic, Comparison, Logical, Concatenation and Assignment.
What do you use Arithmetic Operators for?
To carry out mathematical calculations.
What does * do? (Arithmetic Operators)
Multiplies 2 numbers.
What does \ do? (Arithmetic Operators)
Performs integer division.
What does Mod do? (Arithmetic Operators)
Performs modulo division.
What does ‘Is’ do? (Comparison Operators)
Determines if 2 object variables represent the same named object.
What does ‘Like’ do? (Comparison Operators)
Compares a string and returns True (If string matches pattern) or False (otherwise).
What does ‘Eqv’ do? (Logical operators)
See’s if 2 expressions are equal.
What does ‘Imp’ do? (Logical Operators)
Implication of 2 expressions.
What does ‘Xor’ do? (Logical Operators)
If only one of the expressions is true, result is true.