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 85 Discussion

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

Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers)

import random

v1 = random. random()

v2 = random. random()

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

Stanton
2 days ago
I think A) len(random.sample([1,2,3],2)) > 2 will always evaluate to True.
upvoted 0 times
...
Amalia
6 days ago
I believe option C is also True, as it checks for the existence of a method 'get' in object B.
upvoted 0 times
...
Emeline
7 days ago
I'm not sure about option D, but I think option B is also True.
upvoted 0 times
...

Save Cancel