Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam PCAP topic 1 question 115 discussion

Actual exam question from Python Institute's PCAP
Question #: 115
Topic #: 1
[All PCAP Questions]

Which of the following expressions evaluate to True? (Choose two.)

  • A. '8' + '8' !=2 * '8'
  • B. 'xYz'.lower() > 'XY'
  • C. float('3.14') == str('3.' + '14')
  • D. 121 + 1 ==int('1' + 2 * '2')
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️
Reference:
https://stackoverflow.com/questions/7134984/why-does-1-true-but-2-true-in-python

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
fermins
2 months, 3 weeks ago
Selected Answer: BD
print('xYz'.lower() > 'XY') => True print(121 + 1 ==int('1' + 2 * '2')) => True
upvoted 1 times
...
dicksonpwc
1 year, 1 month ago
answer should be B, D print('8' + '8' !=2*'8') # ans A, False print('xYz'.lower() > 'XY') # ans B, True print(float('3.14')==str('3.''14')) # ans C, False print(121+1 == int('1'+2*'2')) # ans D, True
upvoted 3 times
...
ivanbicalho
1 year, 1 month ago
Selected Answer: BD
should be B & D
upvoted 3 times
...
Mallie
1 year, 4 months ago
Selected Answer: BD
print('xYz'.lower() > 'XY') True B & D
upvoted 1 times
...
Nenggg
1 year, 4 months ago
Selected Answer: BD
print('8' + '8') -> 88 print(2 * '8') -> 88 so A is False
upvoted 1 times
...
haly
1 year, 6 months ago
Selected Answer: BD
correct answers
upvoted 1 times
...
Dav023
1 year, 7 months ago
Selected Answer: BD
right ones
upvoted 1 times
...
Dr_Alzuhairy21
1 year, 11 months ago
Selected Answer: BD
The correct answer is BD
upvoted 2 times
...
macxsz
1 year, 12 months ago
B and D
upvoted 2 times
...
MTLE
2 years ago
BD - A would be true if we had ==
upvoted 1 times
...
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.

SaveCancel
Loading ...