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

Exam PCAP All Questions

View all questions & answers for the PCAP exam

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: BC 🗳️

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 2 years, 6 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 3 years 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 7 months, 3 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
11 months, 3 weeks 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
1 year, 2 months ago
Selected Answer: BD
Answer: B and D
upvoted 1 times
...
jaimebb
1 year, 3 months ago
Selected Answer: BC
B and C
upvoted 1 times
...
manugarcima
1 year, 7 months 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, 7 months ago
Selected Answer: BC
this should be B,C
upvoted 2 times
...
Dlugi_Zuraw
1 year, 7 months ago
Selected Answer: BC
chr(ord('A') + 1) == 'B' True len('\'') == 1 True
upvoted 2 times
...
haly
2 years ago
Selected Answer: BC
A is false
upvoted 2 times
...
macxsz
2 years, 6 months ago
Selected Answer: BD
answer is BD: chr(ord('A') +1) == 'B' len('') == 0
upvoted 3 times
...
MTLE
2 years, 6 months ago
It is BD
upvoted 2 times
...
Quanteo
2 years, 7 months ago
Selected Answer: BD
Must be B and D
upvoted 1 times
...
rocky48
2 years, 7 months ago
Selected Answer: BD
Answer: B and D
upvoted 1 times
...
lukaki
2 years, 11 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 ...