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</p> Signup and view all the answers

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

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

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

    <p>Improved interoperability</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</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</p> Signup and view all the answers

    In what format are applications deployed in .NET?

    <p>.EXE (executable)</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</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</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</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</p> Signup and view all the answers

    What is the purpose of versioning in assemblies?

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

    In what directory is a private assembly stored by default?

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

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

    <p>Shared assembly</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</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</p> Signup and view all the answers

    More Like This

    Net Zero and Greenhouse Gases Quiz
    5 questions
    Net Worth Concepts Flashcards
    5 questions
    Net Ionic Equations and Spectator Ions
    10 questions
    .NET Overview and Components
    8 questions
    Use Quizgecko on...
    Browser
    Browser