How many classes can a single compiled .NET assembly (DLL) contain?
Show answer Hide answer
Answer: D. Many
Explanation
A compiled .NET assembly packages intermediate language code, metadata, and resources together. Assemblies can encapsulate multiple classes, interfaces, and namespaces within a single DLL file. Option D is correct because an assembly is designed to contain many types. Assemblies form the fundamental units of deployment, version control, and security in .NET. The Common Intermediate Language inside an assembly is executed by the Common Language Runtime. Metadata within the assembly describes every contained class and method for runtime consumption.
Software developers organize large applications into multiple modular assemblies for easier maintenance. Class libraries compile into DLL assemblies so their classes can be reused across projects. Proper assembly versioning prevents dependency conflicts in enterprise software deployments. Option A is false because an assembly must contain compiled type metadata and code. Option B is overly restrictive since assemblies are rarely limited to just one single class. Option C is incorrect because assemblies routinely contain dozens or hundreds of classes.
- Subject
- Computer Science
- Category
- Software Engineering
- Topic
- —
- Difficulty
- medium
Related questions
Q1. What file extension is utilized for ASP.NET web forms?
Show answer Hide answer
Answer: A. .ASP
ASP.NET web forms use the .aspx file extension to distinguish them from standard .asp files.
Q2. From which base class do custom user controls inherit_________________?
Show answer Hide answer
Answer: C. Webfarm
Custom user controls in ASP.NET inherit from the UserControl base class, not Webfarm.
Q3. Which utility is excluded from the Business Service Layer?
Show answer Hide answer
Answer: B. Wrapper Services
Wrapper services are utilized primarily for integrating legacy systems rather than core business service logic. They act as adapters to expose older non-service components through modern service-oriented interfaces. The...
Q4. What maximum number of configuration files may an ASP.NET project contain?
Show answer Hide answer
Answer: A. One
An ASP.NET project typically relies on a single primary web.config file for application configuration. Configuration settings such as connection strings and security rules are centralized in this main file. Using a singl...
Q5. How is authentication configured using web.config files?
Show answer Hide answer
Answer: C. Include the authorization element.
The authorization element within web.config files is used to configure authentication and access rules. The correct configuration section dictates which users and roles can access specific website folders. ASP.NET securi...
Q6. When an ASP.NET page is retrieved directly from server memory, which execution lifecycle method fires?
Show answer Hide answer
Answer: A. Load()
The Load() method is a standard lifecycle event that fires when an ASP.NET page is processed and loaded. It executes whether the page is freshly instantiated or retrieved directly from server memory caches. The correct o...