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 • 100.69K Points
Coach

Q. What is the output of the following program?
D = dict()
for i in range (3):
for j in range(2):
D[i] = j
print(D)

  • (A) {0: 0, 1: 0, 2: 0}
  • (B) {0: 1, 1: 1, 2: 1}
  • (C) {0: 0, 1: 0, 2: 0, 0: 1, 1: 1, 2: 1}
  • (D) TypeError: Immutable object
  • Correct Answer - Option(B)
  • Views: 92
  • 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.

Related MCQs

Q. If a process does not call exec after forking

Q. A manufacturing company is considering the purchase of a new CNC lathe, which will cost $60,000 and has an annual maintenance cost of $8,000. A few pa

Q. ____________ media is a communication medium which allows the data to get guided along it.

Q. Which of the following trigger is executed once for each row in a transaction?

Q. Who invented vacuum tubes?

Q. The following combination is correct for an EVEN parity data transmission system: data = 100111100 and parity = 0

Q. The most common TTL series ICs are:

Q. Keep the statement language ______________ while writing a pseudo code.

Q. Each operation in a demand-driven pipeline can be implemented as an that provides the following functions: open(), next(), and close().

Q. Storage classes available with Amazon s3 are -


Question analytics

Share

Embed

WhatsApp

Facebook

Telegram

Download

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
  • UC Quiz
  • 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
  • Get the source code

Since 2020 - 2025 | Proudly Made with ♥ in India

Hosted on Hostinger