nerdexam
Microsoft

98-372 · Question #101

When you create an instance, where does the .NET Framework allocate memory for the instance?

The correct answer is A. On the heap. When you create an instance, the .NET Framework allocates memory on the heap for the instance. Reference types are stored on the heap, whereas value types are stored on the stack.

Understanding .NET Framework Concepts

Question

When you create an instance, where does the .NET Framework allocate memory for the instance?

Options

  • AOn the heap
  • BOn the stack
  • COn the ROM
  • DOn the hard disk

How the community answered

(30 responses)
  • A
    73% (22)
  • B
    7% (2)
  • C
    3% (1)
  • D
    17% (5)

Explanation

When you create an instance, the .NET Framework allocates memory on the heap for the instance. Reference types are stored on the heap, whereas value types are stored on the stack.

Topics

#heap memory#stack memory#memory allocation#CLR runtime

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice