0% found this document useful (0 votes)
53 views1 page

Dot Net Imp Questions

The document outlines important questions related to the .NET framework, categorized into 2 marks, 5 marks, and 12 marks sections. It includes questions on fundamental concepts such as MSIL, garbage collection, constructors, destructors, inheritance, and operator overloading, along with programming tasks in C#. Additionally, it emphasizes the architecture of the .NET framework and the significance of various components in C# programming.

Uploaded by

Ruchita Maaran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views1 page

Dot Net Imp Questions

The document outlines important questions related to the .NET framework, categorized into 2 marks, 5 marks, and 12 marks sections. It includes questions on fundamental concepts such as MSIL, garbage collection, constructors, destructors, inheritance, and operator overloading, along with programming tasks in C#. Additionally, it emphasizes the architecture of the .NET framework and the significance of various components in C# programming.

Uploaded by

Ruchita Maaran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

DOT NET IMPORTANT QUESTIONS – CIA1 -UNIT 1 & 2

2 Marks Questions
1. What is the .NET framework, and why is it used?
2. Define MSIL (Microsoft Intermediate Language) in .NET.
3. What is the role of garbage collection in .NET?
4. Write a program in C# to add two numbers using console input.
5. What are constructors and destructors in C#?
6. Define function overloading in C#.
7. Write a small program to demonstrate operator overloading in C#.
8. What is an assembly in the .NET framework?
9. How does inheritance work in C#?
10. What is the purpose of the Common Language Implementation (CLI) in .NET?
11. Define the term "namespace" and give an example.
12. Write a program in C# to find the factorial of a number entered by the user.
13. What is the role of modifiers in C#?
14. Write a program in C# to demonstrate the use of a constructor and destructor.
15. What is the difference between function overloading and operator overloading?
16. How are console applications executed in C#?
17. Write a program to demonstrate the use of the Console.WriteLine and Console.ReadLine methods for
basic input and output.
18. What is the difference between compile-time and runtime behavior in .NET?
5 MARKS
1. Describe the architecture and components of the .NET framework.
2. Write a C# program to demonstrate function overloading by creating multiple functions with the
same name but different parameters.
3. Discuss the significance of garbage collection in .NET with an example program that forces garbage
collection.
4. Write a program to demonstrate inheritance in C#, including base and derived classes.
5. Describe the significance of MSIL in the .NET framework and how it facilitates cross-language
interoperability.
6. Write a program in C# to demonstrate the use of a namespace for organizing code.
7. Write a C# program that demonstrates operator overloading for a custom class, such as overloading
the "+" operator.
8. Write a program to implement and explain garbage collection by forcing memory allocation and
observing cleanup.
12 MARKS

1. Write a detailed C# program for a console application that demonstrates the use of namespaces,
constructors, destructors, and operator overloading. Explain each
2. part of the program.
3. Write a complete C# console application to manage a simple student record system using
inheritance, constructors, destructors, and namespaces. Include input and output functionalities and
explain each section of the program.

You might also like