IT1808: .NET Framework C# Basics
30 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

Which component of the .NET framework manages the execution of .NET code?

  • Microsoft Intermediate Language (MSIL)
  • Common Language Runtime (CLR) (correct)
  • Operating System (OS)
  • .NET Base Class Library
  • What is the role of Microsoft Intermediate Language (MSIL) in the .NET framework?

  • It is the native code executed directly by the operating system
  • It is the interface used to interact with databases
  • It is a portable assembly code that is compiled by CLR (correct)
  • It is the source code of .NET applications
  • Which .NET framework component provides access to relational databases like SQL Server?

  • .NET Base Class Library
  • XML
  • ADO.NET (correct)
  • Common Language Runtime (CLR)
  • What part of the .NET framework converts source code into Microsoft Intermediate Language (MSIL)?

    <p>Common Language Runtime (CLR)</p> Signup and view all the answers

    Which component organizes classes and interfaces into namespaces in the .NET framework?

    <p>.NET Base Class Library</p> Signup and view all the answers

    What does XML primarily serve as in the .NET framework context?

    <p>Universal format for data on the Web</p> Signup and view all the answers

    What is ASP.NET primarily used for?

    <p>Building enterprise-class Web applications</p> Signup and view all the answers

    Which technology allows dynamic website building through a drag-and-drop, event-driven model?

    <p>ASP.NET Web Forms</p> Signup and view all the answers

    What is the purpose of the Common Type System (CTS) in the .NET environment?

    <p>Documenting how types are declared, used, and managed</p> Signup and view all the answers

    Which feature of .NET ensures that developers can write code in different languages?

    <p>Interoperability</p> Signup and view all the answers

    Among the languages supported by .NET, which one is not mentioned in the text?

    <p>Python</p> Signup and view all the answers

    What is the role of ASP.NET Web Services in the .NET environment?

    <p>Extend the Web infrastructure to connect software applications</p> Signup and view all the answers

    What is a key feature of C# programming language?

    <p>Supports garbage collection and automatic memory management</p> Signup and view all the answers

    Who headed the development of the C# programming language in the late 1990s?

    <p>Anders Hejlsberg</p> Signup and view all the answers

    What is a benefit of using C# over other programming languages for developing applications?

    <p>It allows for method overriding</p> Signup and view all the answers

    Which type of applications can be built using C#?

    <p>Web, windows, mobile, and cloud-based applications</p> Signup and view all the answers

    What feature of C# expands the scope and power of the language?

    <p>Ability to write database queries using LINQ</p> Signup and view all the answers

    What is a characteristic of .NET Framework?

    <p>Provides an environment to build and deploy diverse applications</p> Signup and view all the answers

    What components are stored in the Manifest?

    <p>Identification information, public types, and list of other assemblies</p> Signup and view all the answers

    How is a version number of an assembly represented?

    <p>As Major.Minor.Build.Revision (Ex. 8.0.1.7)</p> Signup and view all the answers

    What is one of the differences between a private and shared assembly?

    <p>Multiple applications can use a shared assembly</p> Signup and view all the answers

    Where are shared assemblies typically registered?

    <p>Global Assembly Cache (GAC)</p> Signup and view all the answers

    Why is it not required to register a private assembly?

    <p>Because it is stored in the respective application's directory</p> Signup and view all the answers

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

    <p>A strong name is required for shared assemblies</p> Signup and view all the answers

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

    <p>It becomes a shared assembly</p> Signup and view all the answers

    What is the purpose of a namespace in a C# program?

    <p>To organize classes in a project</p> Signup and view all the answers

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

    <p>A class</p> Signup and view all the answers

    What does the 'using' keyword do in C#?

    <p>Accesses classes available in a namespace</p> Signup and view all the answers

    In the provided C# program, what is the purpose of the 'Console.ReadKey()' statement?

    <p>To wait for any key press before exiting the program</p> Signup and view all the answers

    What is the role of the 'Convert.ToInt32' method in the given C# program?

    <p>Converts a string input to an integer</p> Signup and view all the answers

    More Like This

    C# Programming Concepts
    6 questions
    Key Concepts in OOP, .NET, Oracle DB, Git Quiz
    12 questions
    IT1907.NET Framework C# Introduction
    32 questions
    Use Quizgecko on...
    Browser
    Browser