Development Fundamentals Flashcards

1
Q

What items are stored on the Heap?

A

A Reference Type goes on the Heap

  • class
  • interface
  • delegate
  • object
  • string
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What items are stored on the Stack?

A

Value Types go on the Stack

  • bool
  • byte
  • char
  • decimal
  • double
  • enum
  • float
  • int
  • long
  • sbyte
  • short
  • struct
  • uint
  • ulong
  • ushort
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Stack?

A

Is responsible for keeping track of where each thread is during the execution of our code (or what’s been called).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Heap?

A

Is responsible for keeping track of our objects (Also garbage collection is used when object is not referenced anymore)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the importance of Generics?

A
  • Application performance due to eliminating the need for boxing and unboxing
  • Type-safety
  • Higher quality code because you get to reuse data processing algorithms without duplicating type-specific code
  • Parametric polymorphism
  • Code is not duplicated for multiple types of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Marshaling?

A

//TODO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly