Single Choice Moderate

Qinput() সবসময় কোন টাইপের ডেটা ফেরত দেয়?

ID: #26316 Class - XII: SEMESTER – III: Unit – 1: Python Programming: Section 4: Expressions, statement, type conversion, and input/output 1 views
Question Info
#26316Q ID
ModerateDifficulty
Class - XII: SEMESTER – III: Unit – 1: Python Programming: Section 4: Expressions, statement, type conversion, and input/outputTopic

Choose the Best Option

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

  • A str
  • B int
  • C float
  • D bool
Correct Answer

Explanation

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

input() সবসময় একটি string ফেরত দেয়; সংখ্যা হিসেবে ব্যবহার করতে int() দিয়ে রূপান্তর করতে হয়।

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

  • বিকল্প B: int-এ স্পষ্টভাবে রূপান্তর করতে হয়।
  • বিকল্প C: float-এ স্পষ্টভাবে রূপান্তর করতে হয়।
  • বিকল্প D: input সরাসরি bool দেয় না।

Share This Question

Challenge a friend or share with your study group.