You are on page 1of 9

National Engineering College,K.R.

Nagar,Kovilpatti
(An Autonomous Institution Affiliated to Anna University Chennai)
Department of Computer Science and Engineering
15CS62 – C# and .Net Technologies

UNIT 1
PART A
Q.No Questions Knowlwdge Level
1. Define inter CO1 - K1
2. List the advantages of using .NET? CO1 - K1
3. How DLL hell is rectified in .NET? CO1 - K2
4. Why C# main method is static? CO1 - K2
5. Differentiate between managed and unmanaged code? CO1 - K4
6. List out the different types of applications that can be created on .NET. CO1 - K2
7. What is a metadata? How is it viewed in C# code? CO1 - K2
8. How is c# better than java? Justify your answer CO1 - K2
9. Write about JIT Compiling. CO1 - K2
10. List out the applications of .NET Programming. CO1 - K2
11. Expand : CLR,CTS. CO1 - K2
12. Define Type Distinction. CO1 - K2
13. What is the use of namespaces in c#. CO1 - K2
14. List out the activities of CLR & CTS. CO1 - K2
PART-B
1. What are the building blocks of .NET platform? Give the relationship CO1 - K2
between .NET runtime layer and the base class library. What is the role of
.NET type Metadata? Give an example.
2. Explain the architecture of .NET Framework with neat diagram. CO1 - K2
3. Explain the CLR. Illustrate the workflow that takes place between the CO1 - K2
source code, given .NET compiler and the .NET execution engine.
4. a. Explain the role of Common Intermediate Language (CIL). CO1 - K2
b. Write a note on .NET namespaces. CO1 - K2
5. Describe the components of the .Net framework and explain the features CO1 – K2
of each component.
UNIT 2
PART-A
1. How to create array with non-default value in C#? CO2 – K2
2. Write the difference between Array and Array List? CO2 – K4
3. Write a C# code to find the sum of all the elements of a jagged array CO2 – K3
4. What is the output of the following. CO2 – K3
public static void Main(string[] args)
{
int x = 0;
int y = 0;
for (short z = 0; z < 3; z++)
{
if ((++x > 1) || (++y > 1))
{
x++;
}
}
Console.WriteLine(x + "" + y);
}
5. Distinguish boxing and unboxing . CO2 – K3
6. What is exception? How it is handled in .NET? CO2 – K2
7. Indentify the Output of the following. CO2 – K3
public class Program
{
public static void Main(string[] args)
{
String s = "ONE" + 1 + 2 + "TWO" + "THREE"
+ 3 + 4 + "FOUR" + "FIVE" + 5;
Console.WriteLine(s);
}
}
8. Distinguish between method overloading and operator overloading with an CO2 – K4
example code.
9. Compare new with override modifier. CO2 – K4

10. Indentify the Output of the following. CO2 – K3


public class Program
{
public static void Main(string[] args)
{
Boolean b1 = true, b2 = false;
if ((b2 = true) | (b1 ^ b2))
{
Console.WriteLine("success");
}
}
}
11. What is Inheritance; does C# support Multiple inheritance? CO2 – K2

12. Can we Overload main() method in C#? CO2 – K2

13. Write the c# code for calculating the area of rectangle and circle using CO2 – K4
method overloading.
14. Define mutable string. CO2 – K2
15. Write the output for the following program CO2 – K3
public class Program
{
public static void Main(string[] args)
{
int i = 10 + + 11 - - 12 + + 13 - - 14 + + 15;
Console.WriteLine(i);
}
}
16. Write a C# code to compare two strings and numbers using equals and == CO2 – K4
methods. Distinguish the same.
17. What are multicast delegates? CO2 – K2
18. What are indexers in C# .NET? What is the difference between property & CO2 – K3
indexers?
19. Define delegate and its functionalities? CO2 – K2

20. What is a verbatim string? CO2 – K2

PART-B
1. a. What is a jagged array? Explain its use with simple example. (8) CO2 – K2
b. Discuss about indexers and delegates in detail (8) CO2 – K2
2. Write a C# program for String operations, illustrates the use of some of CO2 – K2
these methods including compare(), concat(), copy(), lnsert(), Endswith(),
and indexOf(),
3. Write a c# console application to find the number appears more than three CO2 – K3
times in an unsorted array given below. {1,2,3,4,5,2,2,2,2}
4. Create a class called distance which stores the distance values in kilometer CO2 – K3
and meter. Overload the plus ( + ) operator to add two distance object.
5. Develop a C# Console application to find the area and volume of different CO2 – K3
shapes such as circle, rectangle, triangle, square using interface concept.
6. Consider a student class with feet and inches as attributes which describes CO2 – K3
the height of the student. Write a C# program to overload the + operator
and to find the average of N Students.
7. Develop a library system and handle all the possible exceptions which CO2 – K3
occur in cataloging and circulation of books, journals, CDs.
8. Develop C# application for Insurance which calculates interest of an CO2 – K3
applicant under various insurance policy schemes like pension plans,
health plans, individual plans, group schemes and also choose the best
insurance policy according to the customer requirement. Allow the
applicant to join in more than one scheme and calculate his premium on
yearly basis or monthly basis using multiple inheritance.
9. Develop a C# program for calculating Simple Interest of different banks CO2 – K3
(any three banks) with different rate of interest. Consider the three banks
as derived classes and ‘Bank’ as base class and display the name of the
bank which offers high rate of interest.
10. What is meant by inheritance? Explain types of inheritance with example CO2 – K2
and also justify the use of interface.
UNIT-3
PART-A
1. List out the properties of File System Info class. CO3 – K2
2. How to Creating Subdirectories with the DirectoryInfo Type. Write a C# CO3 – K3
code for it.
3. Categories the methods and properties of directory info class. CO3 – K2
4. Construct a program in C# to create a blank file in the disk if the same file CO3 – K3
already exists.
5. Write a C# function to Read the data from a Text File. CO3 – K3
6. Build a C# File method to get list of file names from a particular folder? CO3 – K3
7. Write a C# Syntax for Creating a new File. CO3 – K3
8. Develop a C# application to create a Directory and sub Directory. CO3 – K3
9. Write a program in C# Sharp to remove a file from the disk. CO3 – K3
10. Construct the C# application to Copy the Contents from one File to CO3 – K3
another File.
11. Create C# Console application to View the Date and time of Access of a CO3 – K3
File and Existence of a File.
12. Build a C# application to Illustrate Methods of FileInfo Class. CO3 – K3
13. Define Object Serialization. CO3 – K2
14. Write a program in C# application to create and read the last line of a file. CO3 – K3
15. List the types of formatter available in serialization. CO3 – K2
16. Write a program in C# Sharp to count the number of lines in a file. CO3 – K3
17. What is the need of binary formatter? Justify your answer with comparing CO3 – K2
other formatters.
18. Write a program in C# Sharp to create and write some line of text into a CO3 – K3
file which does not contain a given string in a line.
19. Compare and contrast XML formatter and binary formatter. CO3 – K2
20. Develop C# application to create a file and move the file into the same CO3 – K3
directory to another name.
PART-B
1. Write a console application for reading student name, Reg.no, Dept, CO3 – K3
Gender, Native place from the user and write the details into file in binary
format use appropriate reader and writer class?
2. Write a c# program to create a file and directory and also write the CO3 – K3
appropriate methods to get the following details in run time?
 Copy the string
 Get last Access time
 Open methods
 Create directory
 Append the string
 Delete the string
 Get Attributes
 Get creation time
 Display path, parent and root
 Get files and Directory list
3. Develop a C# Console Application to get the employee details such as CO3 – K3
name, ID, Basic Pay, DA from the user and calculate the net salary of the
employee and also write these information into a file using StreamWriter
Class and read the same data using StreamReader Class.
4. What is serialization? List the types of Serialization Formatter and explain CO3 – K2
it with an example program also define deserialization.
5. Develop a C# program for writing the given sentence into a file using CO3 – K3
StreamWriter Class and read the same data using StreamReader Class.
6. Write a program to demonstrate file conversion. Convert a binary file to a CO3 – K3
text file.
7. Develop C# application to create a file and write and read an array of CO3 – K3
strings to and from the file.
UNIT-4
PART A
1. State the advantages in using a dataset? CO4 – K2

2. Define ADO.NET. CO4 – K2

3. What are the uses of server side controls? CO4 – K2

4. Write a SQL Query to create a student table with the name and roll CO4 – K3
number.
5. Describe the use of data source and initial catalog in creating the database. CO4 – K2

6. What is disconnected data architecture? List is the advantage of it. CO4 – K2

7. Given a table dbo.users where the column user_id is a unique numeric CO4 – K3
identifier, how can you efficiently select the first 100 odd user_id values
from the table? (Assume the table contains wel=l over 100 records with
odd user_id values.)
8. Differentiate between data reader and data set. CO4 – K4

9. How does ADO.NET connected and disconnected models differ from each CO4 – K2
other?
10. What is a dataset? CO4 – K2

11. List the members of DbConnection Type. CO4 – K2

12. Write a SQL query to remove duplicates from a table without using CO4 – K2
temporary table.
13. Give an example for the SQL Execute Non Query statement. CO4 – K3

14. Assume a schema of Emp ( Id, Name, DeptId ) , Dept ( Id, Name). If there CO4 – K3
are 10 records in the Emp table and 5 records in the Dept table, how many
rows will be displayed in the result of the following SQL query: Select *
From Emp, Dept Explain your answer.
15. How to obtain multiple Result Sets using a Data Reader? CO4 – K2

16. Write syntax for connection in ADO.NET? CO4 – K2

17. List out the objects available in data provider. CO4 – K2

18. Write a SQL query to find the 10th highest employee salary from an CO4 – K4
Employee table. Explain your answer.(Note: You may assume that there
are at least 10 records in the Employee table.)
19. Given a table TBL with a field Nmbr that has rows with the following CO4 – K4
values: 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1 .Write a query to add 2
where Nmbr is 0 and add 3 where Nmbr is 1.
20. Given a table SALARIES, such as the one below, that has m = male and f CO4 – K4
= female values. Swap all f and m values (i.e., change all f values to m and
vice versa) with a single update query and no intermediate temp table.
Id Name Sex Salary
1 A m 2500
2 B f 1500
3 C m 5500
4 D f 500

PART-B
1. Explain in detail about ADO.NET connected layer with a program to CO4 – K4
illustrate select, insert, update and delete command objects.
2. Write a C# application using ADO.NET to connect to the northwind CO4 – K3
database and read the names of the employees. The employee table has 2
fields namely first name and lastname.
3. Explain ADO.NET Architecture in terms of connection oriented and CO4 – K4
connection less service with neat diagram.
4. Build a windows based applications to accept the reservation details of a CO4 – K3
train ticket and to store the details in a database table. Use drop down list
box to choose the train number and name. Accept source and destinations
in text boxes. Allow the user to enter the date of journey one month in
advance. Assume that in each train, there are thirty tickets and every
booking should have a unique number.
5. Develop an employee database for an organization to store information CO4 – K3
about employees, departments and project associated with the employees.
Employees work in departments and each department is managed by an
employee. When a project is completed the associated employees table
should be updated accordingly. Design a normalized table to perform the
described actions. Use database wizards and tools that read, display, and
allow viewing and editing a specific table in a database.
6. Write a C# Application for Student’s Registration form using windows CO4 – K3
form. (Note: In form1 contains username, password and Form2 Contains
student id, name, address, mail id and family details). Create appropriate
database and table for the same.
7. Create your own student database and apply different data manipulation CO4 – K4
like select, insert, update, delete operations.
8. Create your own database and table in SQL sever and write the suitable CO4 – K4
Quesy to implement the following actions.
i. Adding a row
ii. Adding a new data column
iii. Deleting a row
iv. Updating a row
9. Develop an employee payroll processing application which calculates the CO4 – K4
wages of employees at all level. Calculation includes Overtime Rate,
Gross Pay and Net Pay of employees and displays all the necessary
information of an employee in the user interface. Use standard Windows
controls to create a user interface.
10. Create a Student database with fields Name, RollNo, Department, Place, CO4 – K4
Mobile_No, email, DOB etc and perform the operations SELECT,
INSERT, UPDATE and DELETE by implementing ADO.NET database
connectivity.
UNIT-5
PART-A
1. List out the server side state management options supported by ASP.NET. CO5 – K2

2. What are postback events. Give example. CO5 – K2

3. Define marshaling. CO5 – K2

4. List out server side state management options supported by ASP.NET. CO5 – K2

5. What are the advantages of using server controls? CO5 – K2

6. Discuss the AutoPostBack property in terms of implementation in CO5 – K4


ASP.NET web page?
7. State the main functionalities of Data Adapter. CO5 – K2

8. How can you assign page specific attributes in an ASP.NET application? CO5 – K3
Write a C# coding for the same.
9. Write the method to display all validation messages in one control? CO5 – K4

10. How can we apply themes in ASP.NET application? CO5 – K2

11. Describe client side scripting with an example. CO5 – K2

12. Write the c# code to store the values in the text box to database. CO5 – K3

13. Compare the List Box and Combo Box. CO5 – K4

14. Write the HTML Coding in C# application to design the web site using CO5 – K3
two Text box and label box.
15. What is popup menu? How it is created in C#? CO5 – K2

16. Write a C# program to create a simple Form using two or three controls. CO5 – K3
(Use button,Text and label etc).
PART B
1. Explain in detail about various ASP.NET web form controls with C# and CO5 – K1
HTML Coding.
2. Develop C# Website application to create a client login page for a voter CO5 – K3
ID registration system which has name, ID, Ward Number and address as
data members. Design a SQL server database which stores the above
information and write the c# coding for adding and deleting the contents in
database.
3. Build simple web application with consistent look on all the pages, forms CO5 – K4
controls and Database.
4. Create a ‘bank’ database having two tables namely ‘Customer’ and’ CO5 – K4
Account’. Perform the operations 1.Checkbalanc 2. Credit 3.Debit
4.Interest Calculation using C# web Application.
5. Develop online objective type test application in the first form get name, CO5 – K3
register, address, number of the candidate. In the Second form Questions
and answer should be displayed. In the bottom of the form Finish and exit
button should be displayed. When clicking the finish button the score
should be displayed in message box. Create appropriate database in SQL
Server.
6. Write a HTML program and student database in SQL Server to create a CO5 – K3
form that contains the following details rollno, name, age, department, and
year. Validate the form such that no entry should be empty.
7. Design a webpage for online banking system using ASP.Net web controls CO5 – K4
and apply themes in the created web page. Explain with sample code.
8. Create an ASP.Net login page and validate the username and password by CO5 – K4
comparing the data stored in the SQL Server database using ADO.NET
connectivity.
9. Develop a web application for online registration form with consistent CO5 – K4
look on all the pages, forms and controls and validate the fields using
different validation controls.
10. Create a website for online shopping using different controls available in CO5 – K4
ASP.NET and use SQL server to store the data.

You might also like