C# Programming - Datatypes

Exercise :: Datatypes - General Questions

  • Datatypes - General Questions
16. 

Which of the following statements are correct about datatypes in C#.NET?

  1. Every datatype is either a value type or a reference type.
  2. Value types are always created on the heap.
  3. Reference types are always created on the stack.
  4. Mapping of every value type to a type in Common Type System facilitates Interoperability in C#.NET.
  5. Every reference type gets mapped to a type in Common Type System.

A. 1, 3
B. 2, 5
C. 1, 4
D. 3, 4

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

17. 

Which of the following is the correct default value of a Boolean type?

A.
B. 1
C. True
D. False
E. -1

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

« Prev   1 2 3 4