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

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

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

  • A. ord(ג€Zג€) - ord(ג€zג€) == ord(ג€0ג€)
  • B. chr(ord('A') +1) == 'B'
  • C. len('\'') == 1
  • D. len(ג€ג€ג€ ג€ג€ג€) == 0
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Miguel_A
Highly Voted 1 year, 11 months ago
Answer:B&C €ג is always = " So the options are: print(ord("Z")-ord("z")==ord("0")) print(chr(ord('A')+1) == 'B') print(len('\'') == 1) print(len(""" """)==0) False True True False
upvoted 19 times
...
wacha1978
Highly Voted 2 years, 6 months ago
print(ord('Z') - ord('z') == ord('0')) print(chr(ord('A') +1) == 'B' ) print(len('\~') == 1 ) print(len('') == 0 ) I assume this is this , so B and D
upvoted 9 times
...
TEC65
Most Recent 1 month, 2 weeks ago
B,C , D is incorrect as print(len(""" """)==1 note that there are three qoutes and an empty string whcih means it includes a new line chracter andwhich counts as one chracter
upvoted 1 times
...
dcross
5 months, 1 week ago
85 Which of the following expressions evaluate to True? (Choose two.) respuestas ok la B Y LA C A. print (ord("Z") - ord("z") == ord("0")) False B. print (chr(ord('A') +1) == 'B') True C. print (len('\'') == 1) True D. print (len(""" """) == 0) False
upvoted 1 times
...
mplopez
8 months ago
Selected Answer: BD
Answer: B and D
upvoted 1 times
...
jaimebb
9 months ago
Selected Answer: BC
B and C
upvoted 1 times
...
manugarcima
1 year, 1 month ago
Selected Answer: B
print(ord("Z")-ord("z")==ord("0")) print(chr(ord('A')+1) == 'B') print(len('\'') == 1) print(len(""" """)==0) False True True False
upvoted 1 times
...
andr3
1 year, 1 month ago
Selected Answer: BC
this should be B,C
upvoted 2 times
...
Dlugi_Zuraw
1 year, 1 month ago
Selected Answer: BC
chr(ord('A') + 1) == 'B' True len('\'') == 1 True
upvoted 2 times
...
haly
1 year, 6 months ago
Selected Answer: BC
A is false
upvoted 2 times
...
macxsz
1 year, 11 months ago
Selected Answer: BD
answer is BD: chr(ord('A') +1) == 'B' len('') == 0
upvoted 3 times
...
MTLE
2 years ago
It is BD
upvoted 2 times
...
Quanteo
2 years, 1 month ago
Selected Answer: BD
Must be B and D
upvoted 1 times
...
rocky48
2 years, 1 month ago
Selected Answer: BD
Answer: B and D
upvoted 1 times
...
lukaki
2 years, 5 months ago
Answer: B and D print(ord('Z') - ord('z') == ord('0')) print(chr(ord('A') +1) == 'B' ) print(len('\~') == 1 ) print(len('') == 0 ) Output: False True False True
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 ...