This section contains carefully selected MCQs and Previous Year Questions with explanations to help students understand concepts and prepare effectively for examinations, interviews, and competitive tests.
Q: 1Which of the following languages is NOT supported by the .NET Framework?
Option D
The .NET Framework supports several programming languages that compile into Microsoft Intermediate Language (MSIL). Commonly supported languages include:
Although Java is also an object-oriented programming language, it is designed to run on the Java Virtual Machine (JVM) rather than the .NET Common Language Runtime (CLR).
Q: 2Which of the following is NOT a component of the .NET Framework?
Option B
The .NET Framework consists of several important components, including:
The Java Virtual Machine (JVM) is part of the Java platform and is responsible for executing Java bytecode. It is not a component of the .NET Framework.
Q: 3What does the .NET framework primarily consist of?
Option C
The .NET framework primarily consists of two major components, the Common Language Runtime (CLR) and the .NET Framework Class Libraries.
The CLR is the Execution Engine that runs applications and provides services such as memory management, security, and exception handling.
The Class Libraries provide a rich set of reusable types and APIs for common programming tasks like file handling, database interaction, and user interface creation.
Q: 4What is the primary purpose of the .NET Framework?
Option B
The .NET Framework is a software development platform developed by Microsoft. It provides a complete environment for building, deploying, and executing applications. The framework includes:
Applications developed using the .NET Framework can be desktop applications, web applications, console applications, Windows services, and more.
Q: 5Which component of the .NET Framework is responsible for executing managed code?
Option B
The Common Language Runtime (CLR) is the execution engine of the .NET Framework. Every .NET application runs under the supervision of the CLR.
Although the JIT (Just-In-Time) Compiler converts Intermediate Language (IL) into machine code, it operates within the CLR.
Q: 6Which of the following events is/are exposed by the Data table object?
Option D
In ADO.NET, the DataTable object represents an in-memory table of data. One of its powerful features is that it exposes events which allow you to monitor and respond to changes in its data. The main events include:
| EVENT NAME | TRIGGERED WHEN | USED FOR |
|---|---|---|
| RowChanging | Before a row is changed (added, modified, or deleted). | Allows validation or cancellation of changes before they are applied. |
| RowChanged | After a row has been successfully changed. | Perform tasks like logging or updating related data after a change. |
| RowDeleting | Before a row is deleted. | Allows checking or preventing deletion before it happens. |
| RowDeleted | After a row has been deleted. | Take actions after a row is removed. |
| ColumnChanging | Before a column value in a row is modified. | Allows validation or cancellation of the column change. |
| ColumnChanged | After a column value in a row has been modified. | Perform tasks after a column value is updated. |
| TableNewRow | When a new row is created in the table. | Initialize default values or perform setup when a new row is added. |
Q: 7What is the full form of CLR?
Option A
CLR stands for Common Language Runtime. It is the heart of the .NET Framework.
You have reached the end of this topic. Continue learning with the next topic below.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.