MCQ Buddy
Search here...
Home MCQ Feed Add Question Programming Portal English Portal Login
  1. Home
  2. Engineering
  3. Python Programming
  4. Question

M

Mr. Dubey • 54.69K Points
Coach

Q. What is the output of the following program?
D = {1 : 1, 2 : '2', '1' : 1, '2' : 3}
D['1'] = 2
print(D[D[D[str(D[1])]]])

(A) 2
(B) 3
(C) „2‟
(D) KeyError
  • Correct Answer - Option(B)
  • Views: 413
  • Filed under category Python Programming
Share

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.

Related MCQs

Q. A monitor is characterized by

Q. The binary code of (21.125)10 is

Q. Packet sniffers involve ____________

Q. Which command will be used with vi editor to append text at end of line?

Q. A person leaves India permanently on 15-11-2008.The assessment year for income earned till 15-11-2008 in this case shall be:

Q. A on the attribute A of relation r consists of one bitmap for each value that A can take.

Q. An entity in A is associated with at most one entity in B, and an entity in B is associated with at most one entity in A.This is called as

Q. You can switch back and forth betweendesign and datasheet view by clicking the

Q. Project Risk affects The Schedule or Resources.

Q. Which instrument is used to record building vibrations or vibrations of huge structures like railway bridges?


Question analytics

Share

Embed

WhatsApp

Facebook

Telegram

Share in MCQ Buddy Groups

Share
Embed
Important Links
  • Browse All Categories
  • Subjects
  • Exams
  • Mock Test
  • Advance Search
  • Quiz
  • Duo Test
  • English Topics
Explore More Portals
  • Hindi
  • State wise Portals
  • MCQ Buddy Lab
  • Engineering
  • Programming Portal
  • MB Shorts
  • NCERT Portal
  • Faculties Portal
  • Groups
  • Q & A
  • Spaces
  • Satya Sanatan
  • Keycrypt
Who we are?

We are nothing if we are alone. But we have a huge community of students who are helping you getting good study stuff free.

More Links
  • Download App
  • Advertise with us
  • Contact us
  • Youtube
  • Terms & Conditions
  • Refund Policy
  • Privacy Policy

Since 2020 - 2025 | Proudly Made with ♥ in India

Hosted on Hostinger