MCQ Single Best Answer Moderate

QStructure এর প্রধান ব্যবহার কী?

ID: #24896 SEMESTER – I - COMS - Unit – 3: Section 4: Introduction to C: Arrays and Structure 3 views
Question Info
#24896Q ID
ModerateDifficulty
SEMESTER – I - COMS - Unit – 3: Section 4: Introduction to C: Arrays and StructureTopic

Choose the Best Option

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

  • A একই ধরনের ডেটা সংরক্ষণ করা
  • B ভিন্ন ধরনের ডেটা একসাথে সংরক্ষণ করা
  • C শুধুমাত্র সংখ্যা যোগ করা
  • D শুধুমাত্র string সংরক্ষণ করা
Correct Answer: Option B

Explanation

Structure হলো C ভাষার একটি user-defined data type যা বিভিন্ন ধরনের (heterogeneous) ডেটা একসাথে সংরক্ষণ করতে ব্যবহৃত হয়।

কেন B সঠিক: structure একাধিক ভিন্ন data type (int, float, char) একসাথে রাখতে পারে।

কেন A ভুল: একই ধরনের ডেটা রাখার জন্য array ব্যবহার করা হয়।

কেন C ভুল: structure কোনো arithmetic operation করার জন্য নয়।

কেন D ভুল: structure শুধুমাত্র string-এর জন্য সীমাবদ্ধ নয়।

Share This Question

Challenge a friend or share with your study group.