0% found this document useful (0 votes)
21 views3 pages

Termworkc#net - Part B

Uploaded by

krn.rna.2003
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)
21 views3 pages

Termworkc#net - Part B

Uploaded by

krn.rna.2003
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/ 3

TERM WORK PART B TILL ENDTERM

Note: Use the following heads in making term work

Problem Statement 1: the given question.


Objective: What did you achieve after doing this problem.
Description: Brief detail about the problem statement.
Code: copied from visual studio with title.
Output: Screenshots.

Problem Statements
13. Write a program in C# to create a class, constructor and usage of this keyword.
14. Write a program in C# to demonstrate static and instance data members for calculating area of
circle
15. Write a program in C# to demonstrate inheritance in C# by creating PartTime Emp, FullTime
Emp and Emp Class.
16. Write a program in C# to demonstrate method Hiding in C# and how to invoke hidden base
class members.
17. Write a program to demonstrate polymorphism that enables you to invoke derived class
methods through base class reference variables at runtime.
18. Write a program to create properties in C# having get and set accessor with the following
business rule
(CA6)
• ID should always be non negative numbers
• Name cannot be set to null
• If student name is missing “No name should be returned”
• Passmarks should be read only

19. Write a Program in C# to demonstrate the automation of Unit Testing by creating 4 methods
and test cases in visual studio test project.
20. Write a Program in C# to demonstrate exception handling in C# by creating two operands and
one operator for performing basic mathematical operations using switch case having two
conditions:
A) if operator is / and operand2 is 0 then throw divide by zero exception.
B) if selection of operator is wrong then throw an exception of bad operation or invalid
operator selected (nesting of exceptions).
21. Create Master Page and Design pages with ASP.NET controls, Styling sites with ASP.NET
themes:
A. Single Master Page

B. Multiple Master Page

22. Create a registration form and show the working of all the validation controls used in it.
23. Demonstrate how to render user control in web form.
24. Use ADO.NET to
a. Establish connection and create a table
b. Insert Data into the Table
c. Retrieve Record
d. Deleting Record
25. Retrieve Data in GridView Control in ASP.Net

You might also like