General Questions

Question 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

Question 17 :

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


A). 0
B). 1
C). True
D). False
E). -1
Answer : Option D