Operators Flashcards

learn more about how programming languages use operators. (5 cards)

1
Q

left-to-right associativity

A

the rule that operators with the same precedence are evaluated from left to right in an expression

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

magic number

A

A numeric constant that isn’t given a name. Makes code harder to understand and maintain.

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

named constant

A

a value that’s given an identifier and can’t be changed; it is used to give meaningful names to fixed values. Makes the code easier to understand and maintain.

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

overhead

A

The extra time, memory, or processing resources a program uses to manage operations beyond the main task it performs

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

rules of precedence (order of operations)

A

the rules that define the sequence in which different operations (like addition and multiplication) are performed in an expression to ensure consistent results

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