Common Language Infrastructure and Security in .NET Quiz
18 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What happens to a private assembly when it is registered in GAC with a strong name?

  • It becomes a secure assembly
  • It becomes a shared assembly (correct)
  • It becomes a hidden assembly
  • It becomes a public assembly

Which part of a C# program contains the Main method?

  • Class attributes
  • Class methods
  • Namespace declaration
  • A class (correct)

What is the purpose of namespaces in C#?

  • To provide security features
  • To enable language independence
  • To organize classes in a project (correct)
  • To ensure interoperability

Which keyword is used to access classes available in a namespace?

<p>using (A)</p> Signup and view all the answers

What does the 'Console.ReadKey()' method do in the provided C# program?

<p>Exits the program (A)</p> Signup and view all the answers

What is the significance of registering an assembly in GAC with a strong name?

<p>Improved interoperability (C)</p> Signup and view all the answers

What is the purpose of Common Language Infrastructure (CLI) specifications in .NET?

<p>To compile code into a format that enables the exchange of data types between programs developed in different languages (A)</p> Signup and view all the answers

What role does assembly play in code sharing and security in .NET?

<p>Allows only authorized users to access and call specific methods of classes (A)</p> Signup and view all the answers

In what format are applications deployed in .NET?

<p>.EXE (executable) (D)</p> Signup and view all the answers

Which statement is true about assemblies in the context of .NET development?

<p>Assemblies are building blocks of .NET applications used for deployment, version control, and security permissions (A)</p> Signup and view all the answers

What is the main function of AJAX as supported by .NET?

<p>To enable developers to create highly responsive web applications with minimal effort (B)</p> Signup and view all the answers

How does .NET ensure interoperability between programs developed in different languages?

<p>.NET compiles all code into an intermediate language stored as an assembly (A)</p> Signup and view all the answers

What information is stored in the Manifest of an assembly?

<p>Identification information and list of other assemblies used (D)</p> Signup and view all the answers

What is the purpose of versioning in assemblies?

<p>To enable installation of non-backward compatible components (B)</p> Signup and view all the answers

In what directory is a private assembly stored by default?

<p>In the respective application's directory (A)</p> Signup and view all the answers

Which type of assembly needs to be registered in the Global Assembly Cache (GAC)?

<p>Shared assembly (C)</p> Signup and view all the answers

What is a requirement for creating a strong name for an assembly?

<p>The assembly must be shared (D)</p> Signup and view all the answers

What happens if a private assembly has multiple versions that are not backward compatible?

<p>The application stops working (A)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser