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

M

Mr. Dubey • 100.69K Points
Coach

Q. What will be the output of the following
Python code?
for i in range(2.0):
print(i)

  • (A) 0.0 1.0
  • (B) 0 1
  • (C) error
  • (D) none of the mentioned
  • Correct Answer - Option(B)
  • Views: 655
  • Filed under category Problem Solving and Python Programming
Share

Explanation by: Mr. Dubey
object of type float cannot be interpreted as an integer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Related MCQs

Q. A pull-up resistor is a resistor used to keep a given point in a circuit HIGH when in the active state.

Q. The registers of the controller are

Q. The key used in operational environment may not have an element of _________.

Q. Tasks whose execution would begin randomly and within the interval of arrival times of consecutive tasks is known as

Q. What is the purpose of the Kernel Trick?

Q. How many architectural paradigms in microprocessor

Q. The heart of administration is the _____ function.

Q. Which directive must precede the directive: #pragma omp sections (not necessarily immediately)?

Q. If multiple threads are concurrently searching through a database and one thread returns the result then the remaining threads must be

Q. is any entity engaged by the Registrar for the purpose of enrolling individuals.


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