18 Questions
What happens to a private assembly when it is registered in GAC with a strong name?
It becomes a shared assembly
Which part of a C# program contains the Main method?
A class
What is the purpose of namespaces in C#?
To organize classes in a project
Which keyword is used to access classes available in a namespace?
using
What does the 'Console.ReadKey()' method do in the provided C# program?
Exits the program
What is the significance of registering an assembly in GAC with a strong name?
Improved interoperability
What is the purpose of Common Language Infrastructure (CLI) specifications in .NET?
To compile code into a format that enables the exchange of data types between programs developed in different languages
What role does assembly play in code sharing and security in .NET?
Allows only authorized users to access and call specific methods of classes
In what format are applications deployed in .NET?
.EXE (executable)
Which statement is true about assemblies in the context of .NET development?
Assemblies are building blocks of .NET applications used for deployment, version control, and security permissions
What is the main function of AJAX as supported by .NET?
To enable developers to create highly responsive web applications with minimal effort
How does .NET ensure interoperability between programs developed in different languages?
.NET compiles all code into an intermediate language stored as an assembly
What information is stored in the Manifest of an assembly?
Identification information and list of other assemblies used
What is the purpose of versioning in assemblies?
To enable installation of non-backward compatible components
In what directory is a private assembly stored by default?
In the respective application's directory
Which type of assembly needs to be registered in the Global Assembly Cache (GAC)?
Shared assembly
What is a requirement for creating a strong name for an assembly?
The assembly must be shared
What happens if a private assembly has multiple versions that are not backward compatible?
The application stops working
Test your knowledge on how .NET compiles code into Common Language Infrastructure (CLI) specifications and enforces security using assemblies. Explore how .NET supports AJAX for creating responsive web applications.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free