IT1808: .NET Framework C# Basics

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

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

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

<p>.NET Base Class Library (D)</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 (B)</p> Signup and view all the answers

What is ASP.NET primarily used for?

<p>Building enterprise-class Web applications (B)</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 (B)</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 (A)</p> Signup and view all the answers

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

<p>Interoperability (B)</p> Signup and view all the answers

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

<p>Python (C)</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 (A)</p> Signup and view all the answers

What is a key feature of C# programming language?

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

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

<p>Anders Hejlsberg (D)</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 (C)</p> Signup and view all the answers

Which type of applications can be built using C#?

<p>Web, windows, mobile, and cloud-based applications (D)</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 (A)</p> Signup and view all the answers

What is a characteristic of .NET Framework?

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

What components are stored in the Manifest?

<p>Identification information, public types, and list of other assemblies (B)</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) (C)</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 (C)</p> Signup and view all the answers

Where are shared assemblies typically registered?

<p>Global Assembly Cache (GAC) (D)</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 (C)</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 (B)</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 (B)</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 (A)</p> Signup and view all the answers

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

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

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

<p>Accesses classes available in a namespace (D)</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 (C)</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 (A)</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Introduction to C# and .NET
16 questions

Introduction to C# and .NET

UnconditionalChalcedony261 avatar
UnconditionalChalcedony261
Introduction to C# Programming
25 questions
Use Quizgecko on...
Browser
Browser