Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute Exam PCAP-31-03 Topic 3 Question 50 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 50
Topic #: 3
[All PCAP-31-03 Questions]

Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Leoma
15 days ago
They should make a math module called 'mathX', just to confuse everyone.
upvoted 0 times
...
Dortha
16 days ago
Option D seems correct, `math.ceil(2.5)` should equal 3, and `math.floor(2.5)` should equal 2.
upvoted 0 times
...
Leslie
21 days ago
Option C has a typo, it should be `math.trunc(2.5)` instead of `math.true(2.5)`.
upvoted 0 times
Rosalia
1 days ago
A) math. hypot (3,4) == math.sqrt (25)
upvoted 0 times
...
...
Louann
1 months ago
I'm not sure about option B, `math.truec(2.5)` doesn't seem to be a valid function in the `math` module.
upvoted 0 times
Melvin
2 days ago
D) math.ceil(2,5) == math.floor(2.5)
upvoted 0 times
...
Paris
9 days ago
C) math.hypot(2,5) == math.true(2.5)
upvoted 0 times
...
Ressie
19 days ago
B) math.hypot(2,5) == math.truec(2.5)
upvoted 0 times
...
Van
27 days ago
A) math.hypot(3,4) == math.sqrt(25)
upvoted 0 times
...
...
Vinnie
2 months ago
Option A looks good, the `math.hypot()` function calculates the Euclidean distance, and that should equal `math.sqrt(25)`, which is 5.
upvoted 0 times
Phyliss
27 days ago
User 2: Correct, that should evaluate to True since math.sqrt(25) is 5.
upvoted 0 times
...
Queen
28 days ago
User 1: A) math.hypot(3,4) == math.sqrt(25)
upvoted 0 times
...
...
Adolph
2 months ago
I'm not sure about B) math. hypot (2,5) == math.truec (2.5), it seems incorrect to me.
upvoted 0 times
...
Apolonia
2 months ago
I believe D) math. ceil (2,5) == math.floor (2.5) is also True.
upvoted 0 times
...
Aliza
2 months ago
I think A) math. hypot (3,4) == math.sqrt (25) is True.
upvoted 0 times
...

Save Cancel