QuestionQ28

VerifiedModules and Packages

Assuming the math module has imported successfully, which of the following expressions evaluate to True?

Choose two
Explanation

math.ceil(2.5) returns 3, whereas both math.floor(2.5) and math.trunc(2.5) return 2, so the floor/trunc equality is true. math.hypot(3, 4) computes the Euclidean norm, 5, which equals math.sqrt(25) (5.0).

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!