Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute PCAP-31-03 Exam - Topic 1 Question 105 Discussion

You need data which can act as a simple telephone directory. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)
C) dir={Mom:5551234567, Dad:5557654321} and D) dir={Mom:'5551234567', Dad:'5557654321'}
A) dir={'Mom':5551234567, 'Dad':5557654321>
B) dir={'Mom':'5551234567', * Dad':'5557654321'}

Python Institute PCAP-31-03 Exam - Topic 1 Question 105 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 105
Topic #: 1
[All PCAP-31-03 Questions]

You need data which can act as a simple telephone directory. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

0/2000 characters
Nieves
4 days ago
I think B is valid too, but not A.
upvoted 0 times
...
Thaddeus
9 days ago
A and D are the right choices!
upvoted 0 times
...
Phil
15 days ago
I'm confused about the quotes in option D. I thought they were necessary for string keys, but I can't recall if they are mandatory in all cases.
upvoted 0 times
...
Carli
20 days ago
I feel like option C is off because the keys should be strings, right? So maybe A and D are the best choices.
upvoted 0 times
...
Beula
25 days ago
I remember practicing a similar question, and I think option B is definitely wrong because of the asterisk.
upvoted 0 times
...
Madelyn
1 month ago
I think options A and D look correct, but I'm not entirely sure about the syntax for the keys.
upvoted 0 times
...

Save Cancel