C# - Classes and Objects

C# - Classes and Objects
11. Which of the following statements are correct about objects of a user-defined class called Sample?

    All objects of Sample class will always have exactly same data.
    Objects of Sample class may have same or different data.
    Whether objects of Sample class will have same or different data depends upon a Project Setting made in Visual Studio.NET.
    Conceptually, each object of Sample class will have instance data and instance member functions of the Sample class.
    All objects of Sample class will share one copy of member functions.
  • 1, 3
  • 2, 4
  • 4, 5
  • 3, 5
Show Answer
12. Which of the following statements is correct about classes and objects in C#.NET?
  • Class is a value type.
  • Since objects are typically big in size, they are created on the stack.
  • Objects of smaller size are created on the heap.
  • Smaller objects that get created on the stack can be given names.
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test