Application Development & Programming 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 Application Development & Programming flashcards as text
Which interface must a C# class implement to support the foreach loop?
Answer: IEnumerable
The foreach loop requires the collection to implement IEnumerable (or IEnumerable), which provides the GetEnumerator() method.
In Windows Communication Foundation (WCF), what does the ABC acronym stand for?
Answer: Address, Binding, Contract
Every WCF endpoint is defined by an Address (where), a Binding (how), and a Contract (what operations are exposed).
In C#, what is an extension method?
Answer: A static method that adds functionality to an existing type without modifying it
Extension methods are defined as static methods in a static class but are called as if they were instance methods on the extended type.
Which HTTP verb is typically used in RESTful ASP.NET services to update an existing resource?
Answer: PUT
PUT is the idempotent HTTP verb used to replace or update an existing resource at a specific URI in RESTful APIs.
What is the purpose of the web.config section in an ASP.NET application?
Answer: Stores database connection strings accessible via ConfigurationManager
The element stores named connection strings that can be retrieved in code using ConfigurationManager.ConnectionStrings.
In C#, which access modifier makes a member visible only within its own class and to derived classes?
Answer: protected
'protected' limits visibility to the declaring class and any class that inherits from it, regardless of assembly.
What is the main difference between a DataSet and a DataReader in ADO.NET?
Answer: DataSet is a disconnected, in-memory cache; DataReader is a forward-only, connected stream
DataSet holds data in memory after closing the connection (disconnected), while DataReader streams rows one at a time with an open connection (connected, forward-only).