Mid-term 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 do you mean C# is type safety programming language? Explain different type of JIT Compiler.
3. What is a jagged array? Write a C# program to calculate matrix multiplication of 2X2 and 2X3 matrix and display the resultant matrix.
4. What is string interpolation? What is optional parameter? Explain with example.
5. What is constructor overloading? Write a C# program that defines a class Employee with properties emp_id (int), Name(string), salary (double) with validation to prevent setting a value below 17,500 and method Display() to show employee details. Write a Separate Class EmployeeTest containing main method to create and use Employee object.
6. What is indexer? Write a C# program to display the BCA 5th semester subject name using indexer.
7. Write a simple program to create generic class with generic constructor, generic member variable, generic property and generic method.
8. What is anonymous method? Explain different type of generic delegate with suitable example?
Group C
9. Differentiate between class and interface? Explain with suitable program, how interface can be used to perform multiple inheritance?
10. Why namespace is needed in C#? List any 5 standard namespace in C#. Write a C# program to create user defined namespace and then use it in another namespace.
11. What is difference between object type and dynamic type in C#? Write a class Distance containing private variables feet of type int and inches of type int, suitable constructors, and method displayDistance() to print the Distance. Overload the following operators: - (subtract two distance objects), == (Compare two Distance object).