Declared Named Constrants And Performing Arithmetic Operations Flashcards

1
Q

Performing arithmetic operations involves using?

A

Addition, subtraction, multiplication and division

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

What calculates the remainder after division, raising a number to a power and perform other operations?

A

Additional operator supported

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

What is a binary operator?

A

Each standard operator

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

How many operators does a binary operator have?

A

Two operands

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

What are rules that dictate the order the same statements are carried out?

A

Rules of precedence
OR
Order of operations

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

Forgetting the order of operations or forgetting a parentheses when you need them can cause:_______

A

Logical errors that are hard to find in the programs

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

What describes operators that evaluate the expressions to the left first, differently than right to left?

A

Left to right associativity

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

Assignment operations (=) is:________

A

Right to left

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

Arithmetic operators are:________

A

Left to right

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

A hard-coded number in a program that lacks context or explanation making the code harder to understand and maintain gain is:______

A

A magic number

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