You are on page 1of 2

JANA BHAWANA CAMPUS

Godawari-11, Lalitpur
Mid-Term Exam- 2080
Bachelor/Humanities/BCA -V Name :- ____________________
Dot Net Technology Roll No :- ____________________
Group-A
Attempt all the questions. (10*1=10)
Circle the correct answer in the following questions.

1. What is .NET Standard?


a. A programming language
b. A platform for web development
c. A specification for implementing .NET APIs across different .NET implementations
d. A database management system

2. Which component of the CLR is responsible for managing memory and cleaning up unused objects?
a. Garbage Collector b. Just-In-Time Compiler
c. Intermediate Language (IL) Code Generator d. Execution Engine

3. Which of the following is a valid identifier in most programming languages?


a. 123identifier b. _myIdentifier c. break d. void

4. What is the purpose of comments in C#?


a. To include additional features in the code
b. To disable certain lines of code temporarily
c. To provide explanations or documentation for the code
d. To declare variables

5. Which keyword is used to declare a delegate in C#?


a. delegate b. function c. event d. method

6. In a lambda expression, what does the parameter x represent in (x => x * 2)?


a. A constant value b. The lambda operator
c. The input parameter d. A reserved keyword

7. What is LINQ in C#?


a. A programming language b. A database management system
c. A query language for querying collections d. A keyword for declaring constants
8. What does ASP.NET stand for?
a. Active Server Pages Network b. Advanced System Programming Network
c. Application Service Provider Network d. Active Server Pages .NET

9. What is the purpose of the finally block in exception handling?


a. To define the code that may throw an exception
b. To catch and handle exceptions
c. To specify code that should always be executed, regardless of whether an exception occurs
d. To rethrow an exception
10. What is an exception in C#?
a. A standard function b. An error that occurs during program execution
c. A reserved keyword d. A type of loop
JANA BHAWANA CAMPUS
Godawari-11, Lalitpur
Mid-Term Exam- 2080
Bachelor/Humanities/BCA -V F.M. 60
Dot Net Technology P.M. 30
Candidates are requested to answer the questions in their own words as far as possible .
GROUP - B
Attempt any six questions: (6*5=30)

1. Explain overview of Microsoft .NET framework and its components in detail.


2. What are arrays? Explain the types of arrays.
3. Differentiate between error from exception. Explain exception handling in C#.
4. C# program that demonstrates the use of delegates to add and subtract two numbers.
5. What is string interpolation? How passing argument by value is differing from passing argument by
reference? Explain with program.
6. Describe the role of CLR in .net Framework?
7. What is LINQ? Write a program to select employees whose salary is greater than 20000 and whose
address is Kathmandu using LINQ.

Group – C
Attempt any two questions. (2*10=20)

1. A) What do you mean by lambda expression? Explain different types of lambda expression used in C#
with example.
B) Write a C# program to show insert and select operation in database using LINQ.
2. A) C# program that demonstrates the use of delegates to add and subtract two numbers
B) Write a program to create user registration form in one ASP.NET web page and display filled data in
another page.
3. A) Write a C# program to initialize and display 2D array elements with sum of each row.
B) Write a C# program to compute aggregate salary of 5 employee and then display employee record in
descending order with respect to employee salary using LINQ.

You might also like