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

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

Executing the following snippet -
will cause the dct:

  • A. to hold two keys named 'pi' linked to 3.14 and 3.1415 respectively
  • B. to hold two key named 'pi' linked to 3.14 and 3.1415
  • C. to hold one key named 'pi' linked to 3.1415
  • D. to hold two keys named 'pi' linked to 3.1415
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Suvabrata
2 years, 5 months ago
Correct answer is C. Reason is, for keys with same name, the value get overwritten.
upvoted 2 times
...
macxsz
2 years, 7 months ago
Selected Answer: C
C. to hold one key named 'pi' linked to 3.1415
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 ...