Lesson 2: Arithmetic Expressions Flashcards

(9 cards)

1
Q

What do arithmetic expressions involve?

A

Mathematical symbols or keywords for operations

Keywords like Calculate and Compute are used

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

What are the basic arithmetic operators?

A
  • /

The division operator can be combined with modulus (mod) or integer division ()

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

What is the purpose of parentheses in arithmetic expressions?

A

To control the order of evaluation

They can change the standard order of precedence

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

List the standard order of precedence for arithmetic operations.

A
  • Parentheses
  • Exponentiation (^)
  • Negation (Not) (-)
  • Multiplication (*) and Division (/)
  • Integer Division () and Modulus (mod)
  • Addition (+) and Subtraction (-)

Operations with higher priority are evaluated first

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

What are the two meanings of the equal sign (=)?

A
  • Assign a value to a variable
  • Replace the value of a variable

Example: total = 0 and Sum = sum + points

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

Fill in the blank: The division operator can be combined with _______ or integer division.

A

mod

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

True or False: The order of operations can be altered using parentheses.

A

True

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

What is involved in setting up arithmetic equations?

A

Using variables, constants, and operators following the rules of precedence

Examples demonstrate using these elements in calculations

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

What is the learning outcome related to understanding arithmetic expressions?

A

Understanding basic arithmetic operations and using operators

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