Module 3 Flashcards

1
Q

A value used on either side of an operator.

A

OPERAND

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

For example, 25 + 2, the numbers 25 and 2 are _______.

A

OPERANDS

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

Require two operands.

A

BINARY OPERATOR

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

Used with two integer constants or integer variables.

The result is an integer with the value of the remainder after division takes place

A

REMAINDER/MODULUS OPERATOR

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

TWO TYPES OF DIVISION

A
  1. INTEGER DIVISION

2. FLOATING-POINT DIVISION

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

Involves integer constants or integer variables.
The result is an integer.
Any fractional part of the result is lost.

A

INTEGER DIVISION

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

Involves when either or both of the operands are floating-point values.
The result is double.

A

FLOATING-POINT DIVISION

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

The associativity of an operator controls the order of evaluation of expressions involving the same operator, for example: 3 / 4 / 5.

A

OPERATOR ASSOCIATIVITY

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

Associativity can be:

A
  1. LEFT-TO-RIGHT

2. RIGHT-TO-LEFT

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

the leftmost operator is applied first.

A

LEFT-TO-RIGHT

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

the rightmost operator is applied first.

A

RIGHT-TO-LEFT

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

controls the order of evaluation of operators.

A

OPERATOR PRECEDENCE

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

A ______________ means an operator is evaluated (applied) before any lower precedence operators.

A

HIGH PRECEDENCE

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

The type to which all operands in an expression are converted for compatibility.

A

UNIFYING TYPE

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

Place desired result type in parentheses.

A

CAST OPERATOR

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

Forces a value of one data type to be used as a value of another data type.

A

TYPE CASTING

17
Q

Using a cast operator is an _________.

A

EXPLICIT CONVERSION