0% found this document useful (0 votes)
109 views5 pages

DOT NET PYQ Question

The document contains a series of questions and topics related to .NET and C#, spanning multiple years of examination papers. Key areas include JIT compilers, namespaces, assemblies, boxing and unboxing, C# characteristics, operator overloading, exception handling, and the architecture of the .NET framework. Each unit covers different aspects of programming concepts, object-oriented principles, and practical coding exercises.

Uploaded by

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

DOT NET PYQ Question

The document contains a series of questions and topics related to .NET and C#, spanning multiple years of examination papers. Key areas include JIT compilers, namespaces, assemblies, boxing and unboxing, C# characteristics, operator overloading, exception handling, and the architecture of the .NET framework. Each unit covers different aspects of programming concepts, object-oriented principles, and practical coding exercises.

Uploaded by

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

2022

1. a) what is a JIT compiler?


(b) Difference between COM and OLE technology.
(c) Define scope of variables. ✔
(d) What are the default values for Bool and decimal data types?
(e) What do you mean by For Each loop?
(f) What is the function overloading in C#?
(g) What are the visibility control in C#?
(h) What are the sealed classes?
8×2=16

Unit I
2. (a) What is Microsoft intermediate language? Explain its role in .NET environment. 8

(b) CLR is known as the heart and soul of .NET architecture. Explain why? 8

3. Explain the following:

(a) Namespace in .NET

(b) Architecture of .NET platform

Unit II

4. (a) What are the assemblies? Explain its role and working in .NET. 8
(b) What do you mean by boxing and unboxing? How these concepts provide strength to C#
and how they are used in C#? 8

5. (a) What is C#? Explain its characteristics. 8


(b) Describe the purpose and features of class libraries of .NET and metadata. 8

Unit III

6. Define different types of operators with suitable examples. Also discuss its precedence and
associativity. 16

7. (a) What do you mean by operator overloading? Explain with an example for unary operators.
(b) Explain decision making statement in C#.

Unit IV
8. (a) How interface defined, extended and implemented in C#? 8
(b) Define method overriding and multiple inheritance. 8

9. Explain the following: 2×8=16


(a) Exception handling
(b) Automatic memory management

2023
1. (a) What do you mean by Namespace? [2 marks]
(b) Write a short note on web development. [2 marks]

(c) What is metadata? Explain. [2 marks]

(d) Distinguish between Read() and ReadLine() methods. [2 marks]

(e) Suppose x, y, and z are floating point variables that have been assigned values

x = 10.7, y = 5.5, and z = –3.5. Determine the value of each of the following arithmetic

expressions:

(i) (x / y) + z

(ii) 2 x / (3 y)

(f) How many times the body of the following for loop is executed? [2 marks]

for(int r = 10, int s = 0; r + s > 5; i = i - 2, j++)

body statements

(g) How can the polymorphism be achieved by using the virtual function? Discuss.

(h) Write down the syntax for the nested try block used in C#. [2 marks]

Unit I

2. What is .NET? Explain .NET architecture with a detailed explanation of its

components.Why is CLR called the heart and soul of the .NET framework? How does

.NET support cross-language interoperability? [16 marks]

3. Write short notes on the following:

(i) CTS [8 marks]

(ii) Why C# is better than Java [8 marks]

Unit II
4. (a) What do you mean by the scope of a variable? Explain in detail. [8 marks]

(b) Develop a program to cover the concept of boxing and unboxing. [8 marks]

5. (a) What are Assemblies? Explain the working and role of assemblies in .NET. [8

marks]

(b) Define the class libraries in .NET. [8 marks]

Unit III

6. (a) What do you mean by function overloading? Explain with an example.

(b) What is a switch statement? Differentiate between if and switch statements.

What is the sequence of execution of switch statements?

7. (a) Write a program in C# to print the factorial of a number.

(b) Write a program in C# to find the number of and sum of all integers greater

than 100 and less than 200 that are divisible by 5.

Unit IV

8.

(a) Define a Person class with three data members: age, name and sex.

(i). Derive a class called Employee from Person that adds a data member code to

store employee code.

(ii) Derive another class called Specialist from Employee.

(iii) Add a method to each derived class to display information about what it is.

Write a driver program to generate an array of three ordinary employees and

another array of three specialists and display information about them. Also,

display the information of the Specialists by calling the method inherited from the

Employee class. 8

(b) What is a sealed class? Why do we use it? Justify your answer with an

example. 8
9.

(a) What do you mean by the interface? How an interface is defined, extended, and

implemented in C#. Explain with an example. 8

(b) How exception handling is performed in C#. How is it different from error

handling? 8

2024

Compulsory Question

1. (a) How will you deploy a .NET application?

(b) What is the role of JIT Compiler?

(c) Define assemblies.

(d) Describe C# as an Object-Oriented Programming Language.

(e) Describe function overriding.

(f) What do you understand by operator associativity?

(g) What are sealed classes?

(h) Explain visibility control with a suitable example. (8 × 2 = 16)

Unit I

2. Describe the following in brief: (4 × 4 = 16)

(a) Namespaces

(b) Features of .NET

(c) Objects in .NET

(d) Evolution of web development

Here is the extracted text from the image:


3. What is .NET framework? Highlight its importance. Describe various building blocks of

.NET framework. (16)

Unit II

4. (i) What is C#? What are its characteristics? Describe. (8)

(ii) Explain boxing and unboxing in reference with C#. (8)

5. Write short notes on the following:

(i) Metadata and self-describing components. (6)

(ii) Constants and variables in C#. (10)

Unit III

6. Illustrate with the help of suitable examples: (16)

(i) Bitwise operators in C#

(ii) Operator precedence in C#

7. Write a program in C# with the following description:

Create a class 'Student' with roll_no, student_name and programme attributes. Define a
suitable Constructor and a method to display information stored in any Object of the class
'Student'. (16)

Unit IV

8. With the help of suitable example(s) illustrate difference(s) between class and interface in
C#. (16)

9. Describe the following C# features:

(i) Automatic Memory Management (6)

(ii) Input/Output classes. (10)

You might also like