Lesson# 6 Expressions and Operators Flashcards

1
Q

What 2 things can you use expressions for?

A

Carrying out calculations and manipulating text strings.

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

What are the 5 Operator categories?

A

Arithmetic, Comparison, Logical, Concatenation and Assignment.

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

What do you use Arithmetic Operators for?

A

To carry out mathematical calculations.

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

What does * do? (Arithmetic Operators)

A

Multiplies 2 numbers.

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

What does \ do? (Arithmetic Operators)

A

Performs integer division.

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

What does Mod do? (Arithmetic Operators)

A

Performs modulo division.

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

What does ‘Is’ do? (Comparison Operators)

A

Determines if 2 object variables represent the same named object.

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

What does ‘Like’ do? (Comparison Operators)

A

Compares a string and returns True (If string matches pattern) or False (otherwise).

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

What does ‘Eqv’ do? (Logical operators)

A

See’s if 2 expressions are equal.

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

What does ‘Imp’ do? (Logical Operators)

A

Implication of 2 expressions.

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

What does ‘Xor’ do? (Logical Operators)

A

If only one of the expressions is true, result is true.

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