C#.NET — Which of the following is NOT an integer type in the sense used by this question?

Difficulty: Easy

Correct Answer: Char

Explanation:


Introduction / Context:
The question uses “Integer” informally to mean the family of common numeric integral types. Although char is technically an integral type in the CLR, it represents Unicode code units rather than signed/unsigned numeric integers.



Given Data / Assumptions:

  • Choices: Char, Byte, Integer (int), Short, Long.
  • Conventional classroom usage distinguishes char from numeric integers.


Concept / Approach:
Byte, short, int, and long are numeric integer types used for arithmetic. Char is primarily a text/code point type. While char is “integral” in the specification, most curricula treat it separately from numeric integer families in such MCQs.



Step-by-Step Solution:

Identify the odd-one-out: Char. Byte, Short, Integer, Long → all numeric integer categories.


Verification / Alternative check:
Arithmetic operations on char require casts, and char is unsigned 16-bit specifically for Unicode.



Why Other Options Are Wrong:
They are well-known integer numeric types.



Common Pitfalls:
Over-literal reading of “integral type” in the CLI specification; this question expects the practical distinction used in most beginner-level courses.



Final Answer:
Char

More Questions from Datatypes

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion