Skip to main content
Sign in Register
Question no. 91198

How many classes can a single compiled .NET assembly (DLL) contain?

Select your answer for: How many classes can a single compiled .NET assembly (DLL) contain?
Show 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.

Topic
—
Difficulty
medium

Related questions

Q3. Which utility is excluded from the Business Service Layer?

Select your answer for: Which utility is excluded from the Business Service Layer?
Show 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?

Select your answer for: What maximum number of configuration files may an ASP.NET project contain?
Show 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?

Select your answer for: How is authentication configured using web.config files?
Show 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?

Select your answer for: When an ASP.NET page is retrieved directly from server memory, which execution lifecycle method fires?
Show 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...