QPython-এ Variable Declare করার জন্য কোন Keyword প্রয়োজন?
Question Info
Select All That Apply
Tick every correct option, then press Check 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 লাগে না"।
variable_name = value লিখলেই হয়। আলাদা কোনো Declaration
Keyword ব্যবহার করতে হয় না।
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
Nice — 3 questions done!
Don't lose this streak. Sign up free to save your score and pick up exactly where you stopped.
Share This Question
Challenge a friend or share with your study group.