Pre-board examination question paper set for DotNet Technology from the year 2025.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications

Paper detail Value
Course DotNet Technology
Code No. CACS302
Semester Vth
Full marks 60
Pass marks 24
Time 3 hours

Candidates are required to answer the questions in their own words as far as possible.

Group B

2. What's new in the .NET standard 2.0? Explain different types of JIT compiler.

3. What is difference between object type and dynamic type in C#? Write a C# program to find largest and smallest number from three input number using conditional operator.

4. What is namespace? List any 5 standard namespace in .NET framework. Given an array, write a C# program to right rotate it by k elements. Let elements be 1,2,3,4,5,6,7,8,9,10. If k=3, after right rotation it becomes 8,9,10,1,2,3,4,5,6,7.

5. What is a polymorphism? How many ways you can overload methods? Explain with suitable example.

6. What are use of this keyword in C#? Write a C# program to illustrate the concept of static class and static constructor.

7. What is anonymous method? Write a C# program to find square and cube of input number using multicast delegate.

8. Write a simple program to create generic class with generic constructor, generic member variable, generic property and generic method.

Group C

9. What do you mean by late binding? Write a C# program to create a class Distance which represents distance. The class should have two fields for feet and inch. It should have constructor to initialize the feet and inch and method displayDistance() to print the Distance. Overload the following operators: - (subtract two distance objects). == (Compare two Distance object).

10. Explain four core object of data provider in ADO.NET. Provided that a database named "Library" with table named "Book" with following columns (ID as int, Title as varchar(50), price as float, Date as Date). Write a c# program to connect to the database and Update the Price of those Book to 2000 which are published on 2022, Delete the Book which are published in 1981 and Retrieve the Title of Book having price greater than 500.

11. What are different approaches for developing web application in ASP.NET? Write a program to create employee registration form (Full name, Username, Password, Confirm Password, Email, Mobile, Gender, Department, and Joining Date) with validation in one ASP.NET web page and display filled valid data in another page.