Server Administration

Which value can an integer variable represent directly?

Show the answer

Correct answerC. A temperature of −12 degrees

AWhy not this: A server name is text and is represented as a string.

BWhy not this: The fractional part cannot be represented directly by an integer.

CWhy this is right: Negative whole numbers are valid integer values.

DWhy not this: A list contains multiple values and needs a collection such as an array.

An integer represents a whole number, including a negative whole number such as −12. A fractional value such as 12.5 requires a numeric type that supports fractional parts.