Question Detail

COS 102 lecture 4 Objective Question

Question

Which Python numerical type can also be represented in octal and hexadecimal format, besides decimal?
Options
A int
B long
Correct Answer
C float
D complex
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 38 notes that 'long (long integers, they can also be represented in octal and hexadecimal)'.

Hint

Examine the 'Python Numbers' section on page 38, specifically the description of 'long' integers.

Question Info