Operators Flashcards

(5 cards)

1
Q

What is 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

What is a magic number?

A

A hard-coded number in a program that lacks context or explanation, making the code harder to understand and maintain.

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

What is a named constant?

A

A variable with a value that is set once and cannot be changed; it is used to give meaningful names to fixed values.

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

What is overhead in computing?

A

The extra processing time, memory, or other resources required by a computer program beyond the actual task it is performing.

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

What are the rules of precedence?

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