.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
Which .NET class is the base for all exceptions in the .NET Framework?
Answer: Exception
System.Exception is the root base class for all exceptions, both system-defined and user-defined.
What is the purpose of the web.config element in ASP.NET?
Answer: It configures user-friendly error pages shown when unhandled exceptions occur
The element lets you redirect users to friendly error pages instead of exposing raw exception details.
In C#, which access modifier makes a member accessible only within the same assembly?
Answer: internal
The internal modifier restricts access to code within the same compiled assembly (.dll or .exe).
What is the role of the DataAdapter in ADO.NET disconnected architecture?
Answer: It fills a DataSet from the database and reconciles changes back
DataAdapter bridges the database and a DataSet by using Fill() to load data and Update() to push changes back.
Which C# feature allows a method to yield values one at a time to the caller without loading all results into memory?
Answer: yield return
The yield return statement produces an iterator that returns values on demand, enabling lazy evaluation without building a full list.
In .NET, which garbage collection generation typically collects short-lived objects most frequently?
Answer: Generation 0
Generation 0 is collected most often because it targets newly allocated, short-lived objects like local variables.
Which ASP.NET feature allows you to map incoming URL patterns to specific handlers without file extensions?
Answer: URL Routing
URL Routing (System.Web.Routing) maps clean URL patterns to route handlers or controllers without requiring physical files.