BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

Posted by Goldie on Aug 08, 2023 at 08:19 AM

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

Suggested Answer: D

Get Premium PCAP-31-03 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
33 comments · newest first
AN
Antonio 12 months ago
D is definitely false, cell isn't a valid function.
NI
Nilsa 1 year ago
Wait, are we sure about C? Sounds off.
LA
Lamar 1 year ago
Definitely A and C, they both evaluate to True.
AU
Audry 1 year ago
I think B is wrong, math.truec doesn't exist!
JO
Johnson 1 year ago
A is true, it equals 5.
NI
Nieves 1 year ago
I feel like I might have seen something about math.hypot before, so A seems safe, but I’m confused about the others.
HA
Harley 1 year ago
I practiced a similar question, and I think D is definitely wrong since math.cell isn't a valid function.
ST
Stephane 1 year ago
I'm not sure about B and C; I remember something about math.truec, but I can't recall what it does.
MA
Mariko 1 year ago
I think option A looks right because math.hypot(3, 4) should give 5, which is the same as math.sqrt(25).
FR
Francene 1 year ago
Okay, I think I've got this. A change from the cost approach to the market approach is a change in the valuation technique used, so the answer is C.
AN
Angella 1 year ago
Hmm, I'm not sure. I think the business might also want to consider microblogging sites like Twitter to share quick updates and engage with customers. Option B could be a good choice too.
LE
Leoma 2 years ago
They should make a math module called 'mathX', just to confuse everyone.
DO
Dortha 2 years ago
Option D seems correct, `math.ceil(2.5)` should equal 3, and `math.floor(2.5)` should equal 2.
PH
Phillip 1 year ago
↳ replying to Dortha
D) math. cell (2,5) == math.floor (2.5)
WI
Willodean 1 year ago
↳ replying to Dortha
C) math. hypot (2,5) == math.true (2.5)
EL
Elmira 1 year ago
↳ replying to Dortha
B) math. hypot (2,5) == math.truec (2.5)
MA
Marshall 1 year ago
↳ replying to Dortha
A) math. hypot (3,4) == math.sqrt (25)
LE
Leslie 2 years ago
Option C has a typo, it should be `math.trunc(2.5)` instead of `math.true(2.5)`.
HE
Helaine 1 year ago
↳ replying to Leslie
D) math. cell (2,5) == math.floor (2.5)
NI
Nina 1 year ago
↳ replying to Leslie
C) math. hypot (2,5) == math.trunc(2.5)
RO
Rolland 1 year ago
↳ replying to Leslie
B) math. hypot (2,5) == math.truec (2.5)
RO
Rosalia 1 year ago
↳ replying to Leslie
A) math. hypot (3,4) == math.sqrt (25)
LO
Louann 2 years ago
I'm not sure about option B, `math.truec(2.5)` doesn't seem to be a valid function in the `math` module.
ME
Melvin 1 year ago
↳ replying to Louann
D) math.ceil(2,5) == math.floor(2.5)
PA
Paris 2 years ago
↳ replying to Louann
C) math.hypot(2,5) == math.true(2.5)
RE
Ressie 2 years ago
↳ replying to Louann
B) math.hypot(2,5) == math.truec(2.5)
VA
Van 2 years ago
↳ replying to Louann
A) math.hypot(3,4) == math.sqrt(25)
VI
Vinnie 2 years ago
Option A looks good, the `math.hypot()` function calculates the Euclidean distance, and that should equal `math.sqrt(25)`, which is 5.
PH
Phyliss 2 years ago
↳ replying to Vinnie
User 2: Correct, that should evaluate to True since math.sqrt(25) is 5.
QU
Queen 2 years ago
↳ replying to Vinnie
User 1: A) math.hypot(3,4) == math.sqrt(25)
AD
Adolph 2 years ago
I'm not sure about B) math. hypot (2,5) == math.truec (2.5), it seems incorrect to me.
AP
Apolonia 2 years ago
I believe D) math. ceil (2,5) == math.floor (2.5) is also True.
AL
Aliza 2 years ago
I think A) math. hypot (3,4) == math.sqrt (25) is True.
0/2000 characters

Save Cancel