Ch. 3.2: Mathematical Expressions Flashcards

1
Q

What is an expression?

A

An expression is a programming statement that has a value. Usually, an expression consists of an operator and its operands.

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

What is precedence?

A

The order of when an operator is calculated. Multiplication and division have higher precedence than addition and subtraction.

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

What is associativity?

A

If two operators sharing an operand have the same precedence, they work according to their associativity.

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

What is a library function?

A

Think of a library function as a “routine” that performs a specific operation.

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

What is an argument?

A

Arguments are data being sent to the function. The pow function always raises the first argument to the power of the second argument.

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