Question Detail

COS 102 lecture 4 Objective Question

Question

What is the result type of the round(x) function in Python, as described in the "Numeric Operations" table?
Options
A float
B always an int
Correct Answer
C string
D boolean
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 43, in the 'Numeric Operations' table for 'Round', states: "The result type is always an int."

Hint

Check the description for the round(x) function in the 'Numeric Operations' table, specifically its return type.

Question Info