Multiple Choice Easy

QPython-এ Variable Declare করার জন্য কোন Keyword প্রয়োজন?

ID: #25296 Python প্রোগ্রামিংয়ের মৌলিক বিষয় 18 views
Question Info
#25296Q ID
EasyDifficulty
Python প্রোগ্রামিংয়ের মৌলিক বিষয়Topic

Select All That Apply

Tick every correct option, then press Check Answer.

  • A var ✔ ✖
  • B int ✔ ✖
  • C declare ✔ ✖
  • D কোনো Keyword লাগে না ✔ ✖
Correct Answer

Explanation

বিস্তারিত ব্যাখ্যা:

Python-এ Variable তৈরি বা Declare করার জন্য কোনো বিশেষ Keyword ব্যবহার করতে হয় না। কোনো ভেরিয়েবলের নাম লিখে তার সাথে Assignment Operator (=) ব্যবহার করে সরাসরি একটি মান (Value) প্রদান করলেই Variable তৈরি হয়ে যায়।

উদাহরণ:

name = "Rahim"
age = 20
marks = 85.5

উপরের উদাহরণে name, age এবং marks নামের Variable-গুলো কোনো Keyword ছাড়াই তৈরি করা হয়েছে। Python স্বয়ংক্রিয়ভাবে প্রদত্ত মানের ভিত্তিতে Variable-এর ধরন (Data Type) নির্ধারণ করে।

অনেক প্রোগ্রামিং ভাষায় Variable তৈরির আগে int, float, string বা var এর মতো Keyword ব্যবহার করতে হয়। কিন্তু Python একটি Dynamically Typed Language হওয়ায় Variable Declare করার জন্য আলাদা কোনো Keyword প্রয়োজন হয় না।

তাই প্রদত্ত অপশনগুলোর মধ্যে সঠিক উত্তর হলো "কোনো Keyword লাগে না"।

মনে রাখুন: Python-এ Variable তৈরি করার জন্য শুধু variable_name = value লিখলেই হয়। আলাদা কোনো Declaration Keyword ব্যবহার করতে হয় না।
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.