HamiIT
Sign inGet started
Home
ADD CONTENT

Sign in Required

Please sign in to add content

Sign In
ProgramsBCASemester 5DotNet TechnologyUnit 4: Advanced C# (14Hrs)
Chapter Study

BCA Semester 5 – DotNet Technology – Unit 4: Advanced C# (14Hrs)

Comprehensive questions and detailed answers for Unit 4: Advanced C# (14Hrs). Perfect for exam preparation and concept clarity.

18
Questions
140
Marks
Back to All Chapters
1

a) What is LINQ? Write a program to select employees whose salary is greater than 20000 and whose address is kathmandu using LINQ b) Write a C# program to show insert and select operation in database.

MediumTHEORY5 marks2020(TU Final)
2

What is generics? List different types of generic classes. Explain delegate with example.

MediumTHEORY5 marks2020(TU Final)
3

What do you mean by lambda expression? Explain different types of lambda expression used in C# with example.

MediumTHEORY5 marks2020(TU Final)
4

a) Write a program to create user registration form in one ASP.NET web page and display filled data in another page.
b) Write a program for handling exception in ASP.NET

HardTHEORY10 marks2020(TU Final)
5

a) How virtual method is used to achieve dynamic binding in C#? Explain with the help of suitable program.
b) Define operator overloading. Write a C# program to overload binary operator.

HardTHEORY10 marks2020(TU Final)
6

a) What is LINQ? Write a program to select employees whose salary is greater than 20000 and whose address is kathmandu using LINQ
b) Write a C# program to show insert and select operation in database.

HardTHEORY10 marks2020(TU Final)
7

What is an Exception? Write a program to generate divide by zero exception and index out of Range exception and also handle these exception.

MediumTHEORY5 marks2021(TU Final)
8

What is a Query expression? Write a C# program to select Students who are lived in Kirtipur and studied in Patan Multiple Campus using LINQ.

MediumTHEORY5 marks2021(TU Final)
9

Explain difference between ExecuteReader and ExecuteNonQuery. Provided that a mysql database named "Company" with table named "Product" with following columns (ProductId as int, ProductName as varchar(20), and UnitPrice as float). Write a C# program to connect to the database and display product records that have UnitPrice is greater than RS. 1000 and update the product record (such as Unit Price 4500) from ProductId whose ProductId=50.

HardTHEORY10 marks2021(TU Final)
10

What is web server control in ASP.NET? List five web server control used in ASP.NET. Write a program to create student registration form in one ASP.NET page and display the filled data within another page.

HardTHEORY10 marks2021(TU Final)
11

a) What is System Exception? Write a C# program that will read balance and withdraw amount from keyboard and display the remaining balance on screen. if balance is greater than withdrawal amount otherwise throw an Application Exception with appropriate message. b) List any five LINQ standard operators? Write a C# program to compute aggregate salary of 5 employee and then display employee record in descending order with respective employee salary using LINQ.

HardTHEORY10 marks2022(TU Final)
12

What are different type of delegate in C#? Write a C# Program to create a class 'Time' which represents time. The class should have three fields for hours, minutes and seconds. It should have constructor to initialize hours, minutes and seconds and method Time() to print current time.overload following operators a) +(Add two time objects of 24 hours clock) b) Compare two time objects

HardTHEORY10 marks2022(TU Final)
13

What is difference between executeScalar() and executeReader() method? Write a C# program to connect database Bank and insert 5 customer record (Account_no, Name, Address, Balance) in Customer table and Display the customer record whose balance is greater than 5000.

HardTHEORY10 marks2022(TU Final)
14

What is virtual method? Write a program to illustrate multi-level inheritance with virtual method.

MediumTHEORY5 marks2022(TU Final)
15

What are keyword used in exception handling? Write a C# program to handle IndexOutOfRangeException and InvalidCastException.

MediumTHEORY5 marks2024(TU Final)
16

What is query syntax in LINQ? Explain the standard query operators "select", "contains", "orderBy" and "where" in LINQ with suitable examples.

MediumTHEORY5 marks2024(TU Final)
17

a) What is an event? Explain with suitable program, how event is handled in C#. b) What is Lambda expression? Explain the concept of generic delegates with suitable program.

HardTHEORY10 marks2024(TU Final)
18

What are component of ASP.NET? Explain various validation server control in ASP.NET with suitable program.

HardTHEORY10 marks2024(TU Final)
Showing 18 questions

Questions in Unit 4: Advanced C# (14Hrs)

a) What is LINQ? Write a program to select employees whose salary is greater than 20000 and whose address is kathmandu using LINQ b) Write a C program to show insert and select operation in database.

Marks: 5

Year: 2020 Final TU

LINQ in C Definition: LINQ (Language Integrated Query) is a feature in C that allows querying collections, databases, XML, and other data sources using C syntax. It provides SQL-like querying capa

What is generics? List different types of generic classes. Explain delegate with example.

Marks: 5

Year: 2020 Final TU

Generics in C Definition: Generics allow you to define classes, methods, interfaces, or delegates with a placeholder for the data type. This enables type-safe code without writing multiple version

What do you mean by lambda expression? Explain different types of lambda expression used in C with example.

Marks: 5

Year: 2020 Final TU

Lambda Expression in C Definition: A lambda expression is an anonymous function that can contain expressions or statements and can be used to create delegates or expression tree types. It provides

a) Write a program to create user registration form in one ASP.NET web page and display filled data in another page. b) Write a program for handling exception in ASP.NET

Marks: 10

Year: 2020 Final TU

a) ASP.NET User Registration Form Page 1: UserRegistration.aspx aspx <%@ Page Language="C" AutoEventWireup="true" CodeBehind="UserRegistration.aspx.cs" Inherits="WebApp.UserRegistration" %> <!DOCTYP

a) How virtual method is used to achieve dynamic binding in C? Explain with the help of suitable program.\ b) Define operator overloading. Write a C program to overload binary operator.

Marks: 10

Year: 2020 Final TU

a) Virtual Method and Dynamic Binding Definition: A virtual method in C is a method in a base class that can be overridden in derived classes. It enables dynamic (runtime) binding, meaning the met

a) What is LINQ? Write a program to select employees whose salary is greater than 20000 and whose address is kathmandu using LINQ\ b) Write a C program to show insert and select operation in database.

Marks: 10

Year: 2020 Final TU

a) LINQ in C Definition: LINQ (Language Integrated Query) is a feature in C that allows querying collections, databases, XML, or objects using SQL-like syntax in a type-safe manner. Key Points: - P

What is an Exception? Write a program to generate divide by zero exception and index out of Range exception and also handle these exception.

Marks: 5

Year: 2021 Final TU

What is an Exception? Definition: An exception is an unexpected or runtime error that occurs during the execution of a program. It disrupts the normal flow of the program. Key Points: - Exception

What is a Query expression? Write a C program to select Students who are lived in Kirtipur and studied in Patan Multiple Campus using LINQ.

Marks: 5

Year: 2021 Final TU

What is a Query Expression? Definition: A query expression in C is a declarative way to retrieve data from collections (like arrays, lists) using LINQ (Language-Integrated Query). It allows writin

Explain difference between ExecuteReader and ExecuteNonQuery. Provided that a mysql database named "Company" with table named "Product" with following columns (ProductId as int, ProductName as varchar

Marks: 10

Year: 2021 Final TU

Difference Between ExecuteReader and ExecuteNonQuery | Feature | ExecuteReader() | ExecuteNonQuery() | |---------|----------------|-----------------| | Purpose | Retrieves multiple rows of data from

What is web server control in ASP.NET? List five web server control used in ASP.NET. Write a program to create student registration form in one ASP.NET page and display the filled data within another

Marks: 10

Year: 2021 Final TU

Web Server Control in ASP.NET Definition: A web server control is a UI control in ASP.NET that runs on the server and generates HTML markup for the client browser. It provides rich functionality,

a) What is System Exception? Write a C program that will read balance and withdraw amount from keyboard and display the remaining balance on screen. if balance is greater than withdrawal amount otherw

Marks: 10

Year: 2022 Final TU

Definition: - A System Exception is an exception that is thrown by the .NET runtime system during program execution. - It occurs due to runtime errors such as divide by zero, null reference, overflow,

What are different type of delegate in C? Write a C Program to create a class 'Time' which represents time. The class should have three fields for hours, minutes and seconds. It should have constructo

Marks: 10

Year: 2022 Final TU

Different types of Delegates in C A delegate is a type-safe object that refers to a method. Types of Delegates in C: 1. Single Delegate - Refers to one method at a time. 2. Multicast Delegat

What is difference between executeScalar() and executeReader() method? Write a C program to connect database Bank and insert 5 customer record (Accountno, Name, Address, Balance) in Customer table and

Marks: 10

Year: 2022 Final TU

Difference between ExecuteScalar() and ExecuteReader() | Feature | ExecuteScalar() | ExecuteReader() | |-------|----------------|----------------| | Purpose | Returns a single value | Returns multipl

What is virtual method? Write a program to illustrate multi-level inheritance with virtual method.

Marks: 5

Year: 2022 Final TU

Virtual Method - A virtual method is a method in a base class that can be overridden in a derived class using the override keyword. - It allows runtime polymorphism, meaning the method called is det

What are keyword used in exception handling? Write a C program to handle IndexOutOfRangeException and InvalidCastException.

Marks: 5

Year: 2024 Final TU

Keywords Used in Exception Handling 1. try – Block where code that may cause an exception is placed. 2. catch – Block that handles the exception if it occurs. 3. finally – Block that executes alw

What is query syntax in LINQ? Explain the standard query operators "select", "contains", "orderBy" and "where" in LINQ with suitable examples.

Marks: 5

Year: 2024 Final TU

1. What is Query Syntax in LINQ? Query syntax in LINQ is a SQL-like declarative way to query data from collections such as arrays, lists, or databases. - It uses keywords like from, where, select,

a) What is an event? Explain with suitable program, how event is handled in C. b) What is Lambda expression? Explain the concept of generic delegates with suitable program.

Marks: 10

Year: 2024 Final TU

a) What is an Event? An event in C is a way for a class to provide notifications to clients of that class when something interesting occurs. - Events are based on delegates. - They provide loosel

What are component of ASP.NET? Explain various validation server control in ASP.NET with suitable program.

Marks: 10

Year: 2024 Final TU

1. Components of ASP.NET ASP.NET provides a framework for building web applications and includes the following components: 1. Server Controls: Prebuilt UI controls like TextBox, Button, DropDownList,

About Unit 4: Advanced C# (14Hrs) Questions

This page contains comprehensive questions from the Unit 4: Advanced C# (14Hrs) chapter of DotNet Technology, part of the BCA Semester 5 curriculum. All questions include detailed model answers from past TU exam papers.

Study Tips

  • Review concepts before attempting questions
  • Practice writing complete answers
  • Compare your answers with model solutions
  • Focus on questions from recent years
  • Use direct links (#question-ID) to bookmark and share specific questions

Related Resources

← Back to DotNet Technology Chapters

Unit 4: Advanced C# (14Hrs) chapter questions with answers for DotNet Technology (BCA Semester 5). Prepare for TU exams with our comprehensive question bank and model answers.

H
Hami IT

Empowering IT students with quality education resources and comprehensive exam preparation materials.

Programs

  • Flutter
  • Java
  • DevOps

Company

  • About Us
  • Contact

Contact

  • 📧hamiit.dev@gmail.com
  • 📞+977 9813706443
  • 📍Kathmandu, Nepal

© 2026 Hami IT. All rights reserved.