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 :
def myfunc(a):
a = a + 2
a = a * 2
return a
print myfunc(2)

  • (A) 8
  • (B) 16
  • (C) Indentation Error
  • (D) Runtime Error
  • Correct Answer - Option(C)
  • Views: 198
  • 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. Select the method which clears all selected entries in Web Driver Selenium

Q. If the page table is large then it is stored in

Q. Which of the following commands do we use to delete a relation (R) from a database?

Q. For m = 1, 2, …, 4m+2 is a multiple of is known as

Q. Data items that are divided into subitems are called ___________.

Q. Data is used to ensure confidentiality.

Q. In a relational schema, each tuple is dividedinto fields called

Q. Who invented Slide Rules?

Q. What is the indication of a short to ground in the output of a driving gate?

Q. The CLR is physically represented by an assembly named _______.


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