MCQ Single Best Answer Not Set

Qনিচের কোনটি একটি সঠিক Variable Declaration?

ID: #24890 SEMESTER – I - COMS - Unit – 3 Introduction to C: Basic Structure 2 views
Question Info
#24890Q ID
Not SetDifficulty
SEMESTER – I - COMS - Unit – 3 Introduction to C: Basic StructureTopic

Choose the Best Option

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

  • A int 2num;
  • B float marks;
  • C char first-name;
  • D int return;
Correct Answer: Option B

Explanation

Variable Declaration-এর মাধ্যমে Variable-এর নাম এবং তার Data Type ঘোষণা করা হয়।

Syntax:

data_type variable_name;

উদাহরণ:

float marks;

এখানে:

  • float → Data Type
  • marks → Variable Name

অন্য অপশনগুলো ভুল কারণ:

  • 2num → সংখ্যা দিয়ে শুরু হয়েছে
  • first-name → Hyphen (-) ব্যবহার করা হয়েছে
  • return → এটি একটি Keyword

Share This Question

Challenge a friend or share with your study group.