Single Choice Moderate

Qdef f(x, y=2): return x+y\nprint(f(3)) — আউটপুট কী?

ID: #26431 Class - XII: SEMESTER – III: Unit – 1: Python Programming: Section 14: Functions 21 views
Question Info
#26431Q ID
ModerateDifficulty
Class - XII: SEMESTER – III: Unit – 1: Python Programming: Section 14: FunctionsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 5 ✔ ✖
  • B 3 ✔ ✖
  • C 2 ✔ ✖
  • D Error ✔ ✖
Correct Answer

Explanation

সঠিক উত্তরের ব্যাখ্যা:

y-এর default মান 2, তাই f(3) → 3+2 = 5।

কেন অন্য বিকল্পগুলি ভুল:

  • বিকল্প B: y উপেক্ষিত হয় না, default 2 যোগ হয়।
  • বিকল্প C: x=3 যোগ হয়, শুধু y নয়।
  • বিকল্প D: বৈধ কল, ত্রুটি নেই।
Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue মডার্ন কম্পিউটার অ্যাপ্লিকেশন ও কম্পিউটার বিজ্ঞান - দ্বাদশ শ্রেণী (Class 12) - WBCHSE where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.