Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Choose two.) import random v1 = random.random() v2 = random.random()
Option C is correct
Explanation:
import random
v1 = random.random()
v2 = random.random()
random.choice([1,2,3]) > 0` will return TRUE.
All others options will return output as FALSE.
Only option C, `random.choice([1,2,3]) > 0` will return TRUE.
All other options are FALSE.
upvoted 4 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Sharif24
2 months, 4 weeks agoDKAT2023
4 months, 3 weeks agoNikhil_Durgesh
6 months agonarayanan010
6 months, 1 week ago