Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key


Play button


Play button




Click to flip

9 Cards in this Set

  • Front
  • Back
Briefly describe the major components of the .NET Framework and describe what each component does.
The .NET Framework consists of two primary parts: the common language runtime, which manages application execution, enforces type safety, and manages memory reclamation, and the .NET base class library, which consists of thousands of pre-developed classes that can be used to build applications.
Briefly explain what is meant by a reference type and a value type.
A value type holds all of the data represented by the variable within the variable itself. A reference type contains a reference to a memory address that holds the data instead of the actual data itself.
How do you enable your application to use .NET base class library members without referencing their fully qualified names?
Use the using keyword to make a .NET Framework namespace visible to your application.
Briefly describe how garbage collection works.
The garbage collector is a thread that runs in the background of managed .NET applications. It constantly traces the reference tree and attempts to find objects that are no longer referenced. When a non-referenced object is found, its memory is reclaimed for later use.
Briefly describe what members are, and list the four types of members.
Members are the parts of a class or a structure that hold data or implement functionality. The primary member types are fields, properties, methods and events.
Explain what constructors and destructors are and describe what they are used for.
The constructor is the method that initializes a class or structure and is run when a type is first instantiated. It is used to set default values and perform other tasks required by the class. A destructor is the method that is run as the object is being reclaimed by garbage collection. It contains any code that is required for cleanup of the object.
Briefly explain the difference between public, internal and private access levels as they apply to user-defined types and members.
In user-defined types, public classes can be instantiated by any element of the application. internal classes can be instantiated only by members of the same assembly, and private classes can be instantiated only by themselves or types they are nested in. Likewise, a public member can be accessed by any client in the application, an internal member can be accessed only from members of the same assembly, and private members can be accessed only from within the type.
Do you need to instantiate a class before accessing a static member? Why or why not?
Because a static member belongs to the type rather than to any instance of the type, you can access the member without first creating an instance of the type.
Briefly describe how a class is similar to a structure. How are they different?
Both classes and structures can have members such as methods, properties, and fields, both use a constructor for initialization, and both inherit from System.Object. Both classes and structures can be used to model real-world objects.

Classes are reference types, and the memory that holds class instances is allocated on the heap. Structures are value types, and the memory that holds structure instances is allocated on the stack.