SSC IMD SA 2017 – Question 198

Question:

Which of the following is the odd one out?

इनमें से कौन सा विषम है?

Options:

  • Array type
  • Character type
  • Boolean type
  • Integer type
  • ऐरे टाइप
  • कैरेक्टर टाइप
  • बूलियन टाइप
  • इंटीजऱ टाइप

Correct Answer: a)

Explanation:

Detailed Explanation:

The correct answer is a) Array type (ऐरे टाइप).

In programming language type systems (such as C, C++, Java), data types are primarily divided into two main categories:

  • Primitive / Fundamental / Built-in Data Types: Basic scalar types provided natively by the language that represent atomic values and cannot be broken down into simpler types. Examples include:
    • char (Character type)
    • bool / boolean (Boolean type)
    • int, short, long (Integer type)
    • float, double (Floating-point type)
  • Derived / Composite / User-defined Data Types: Data types constructed from fundamental primitive types to store collections, aggregate data, or structured entities. Examples include:
    • Arrays (ऐरे टाइप): A contiguous collection of elements of the same base type.
    • Pointers, Structures (struct), Unions, and Classes.

Among the given options, Character, Boolean, and Integer are primitive data types, whereas Array is a derived data type. Therefore, Array is the odd one out.

विस्तृत व्याख्या:

सही उत्तर a) ऐरे टाइप है।

प्रोग्रामिंग भाषाओं (जैसे C, C++, Java) में डेटा प्रकारों को मुख्यतः दो श्रेणियों में बांटा जाता है:

  • प्राथमिक / मूल डेटा प्रकार (Primitive / Fundamental Data Types): ये भाषा द्वारा प्रदान किए गए सबसे बुनियादी डेटा प्रकार हैं, जिन्हें तोड़ा नहीं जा सकता। जैसे: int (इंटीजर), char (कैरेक्टर), bool (बूलियन), और float।
  • व्युत्पन्न डेटा प्रकार (Derived / Non-primitive Data Types): ये प्राथमिक डेटा प्रकारों से मिलकर बने होते हैं। जैसे: ऐरे (Array), पॉइंटर (Pointer), स्ट्रक्चर (Structure), और क्लास (Class)।

दिए गए विकल्पों में कैरेक्टर टाइप, बूलियन टाइप और इंटीजर टाइप सभी मूल (Primitive) डेटा प्रकार हैं, जबकि ऐरे टाइप एक व्युत्पन्न (Derived) डेटा प्रकार है। अतः ऐरे विषम (Odd) है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top