โ† All MCTS Flashcard Decks

.NET Application Development Flashcards

7 cards from real MCTS practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 .NET Application Development flashcards as text
  1. Which design pattern does the .NET event model implement?

    Answer: Observer

    The Observer pattern defines a one-to-many dependency, and .NET events/delegates implement this pattern directly.

  2. What is the difference between 'ref' and 'out' parameters in C#?

    Answer: ref requires initialization before the call; out does not

    A ref parameter must be assigned before being passed, while an out parameter must be assigned within the called method.

  3. Which ASP.NET Web Forms control renders an HTML and supports paging and sorting?

    Answer: GridView

    GridView renders tabular data with built-in support for paging, sorting, and editing.

  4. In .NET threading, what does the 'lock' keyword do?

    Answer: Acquires a mutual-exclusion lock on an object to synchronize access

    The lock statement acquires a monitor lock, ensuring only one thread can execute the enclosed block at a time.

  5. What is the purpose of the Global.asax file in an ASP.NET application?

    Answer: It handles application-level and session-level events

    Global.asax contains event handlers for application lifecycle events such as Application_Start and Session_Start.

  6. Which interface must a class implement to support foreach iteration in C#?

    Answer: IEnumerable

    IEnumerable exposes GetEnumerator(), which the foreach statement uses to iterate over a collection.

  7. In .NET, what is boxing?

    Answer: Converting a value type to an object reference type

    Boxing wraps a value type (e.g., int) inside an object on the heap so it can be treated as a reference type.