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 is not a development model supported by ASP?
Option D
ASP.NET supports several development models and frameworks for building web applications, including Classic ASP, ASP.NET MVC, and ASP.NET Core. ASP.NET APT is not a recognized ASP/ASP.NET development model.
Q: 2What is the full form of ASP with reference to ASP.NET?
Option A
ASP stands for Active Server Pages. It is a Microsoft technology used to create dynamic and interactive web pages by executing server-side code.
ASP.NET is the successor to Classic ASP and provides a more advanced framework for developing web applications on the .NET platform.
Q: 3Which ASP Development Model is the successor to Classic ASP?
Option C
ASP.NET is the successor to Classic ASP (Active Server Pages). Classic ASP was Microsoft's earlier server-side scripting technology for creating dynamic web pages, while ASP.NET introduced a more structured and powerful framework for developing web applications.
Q: 4Which 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: 5The .NET framework provides a run-time environment called _______, which runs the code and provides services that make the development process easier.
Option B
The Common Language Runtime (CLR) is the run-time environment of the .NET Framework. It executes managed code and provides important services such as memory management, garbage collection, exception handling, security, and type safety.
The CLR allows developers to focus on application development while it manages many low-level runtime tasks.
For example, when a C# program is compiled, it is converted into Intermediate Language (IL). The CLR then executes this code using its runtime services.
Q: 6Which 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: 7What 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: 8________ is a CPU independent machine language style instruction set into which .NET Framework programs are compiled.
Option B
Intermediate Language (IL) is a CPU-independent instruction set into which .NET Framework programs are compiled.
When a .NET program written in languages such as C# or VB.NET is compiled, the source code is converted into IL, also called Microsoft Intermediate Language (MSIL) or Common Intermediate Language (CIL).
The CLR (Common Language Runtime) then uses a Just-In-Time (JIT) compiler to convert the IL into native machine code suitable for the target CPU.
A JIT (Just-In-Time) Compiler is a compiler that converts code into machine code at runtime, just before the code is executed.
| Compiler | JIT Compiler |
|---|---|
| A compiler translates source code into another form of code, such as machine code, object code, or intermediate code. | A JIT (Just-In-Time) compiler translates intermediate code or bytecode into native machine code at runtime. |
| Translation generally takes place before program execution. | Translation takes place during program execution. |
| It usually works directly with source code. | It usually works with bytecode or intermediate code. |
| The resulting code can be executed after compilation. | The generated native code is executed immediately by the CPU. |
| Example: C/C++ compiler. | Examples: JVM JIT and .NET CLR JIT. |
Q: 9Which of the given options best describes the truthfulness of the following statements?
(i) ASP.NET is a Web Framework designed and developed by Microsoft.
(ii) ASP.NET provides fantastic integration of HTML, CSS and JavaScript.
Option D
ASP.NET is a web framework developed by Microsoft for building dynamic and interactive web applications. It provides a structured environment for developing web-based applications using technologies such as C#, HTML, CSS, and JavaScript.
ASP.NET also provides good integration with HTML, CSS, and JavaScript, allowing developers to create interactive and responsive web applications. These technologies work together to build the user interface and client-side functionality of web applications.
Q: 10Which of the following assembly includes the core set of .NET common exception types, data types and numerous other fundamental building blocks?
Option A
In the .NET Framework, mscorlib.dll and System.dll contain many of the fundamental classes required by .NET applications. They provide the core data types, common exception types, and other basic building blocks used by .NET programs.
The mscorlib stands for Microsoft Common Object Runtime Library.
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.