Sunteți pe pagina 1din 3

SATHYABAMA UNIVERSITY

(Established under section 3 of UGC Act,1956)


Course & Branch :M.Tech - IT/W-IT
Title of the Paper :C# and .NET Max. Marks :80
Sub. Code :683E04-ITE01 Time : 3 Hours
Date :17/12/2009 Session :FN
______________________________________________________________________________________________________________________

PART - A (6 x 5 = 30)
Answer ALL the Questions

1. Explain about CLR and its components with its block diagram.

2. Write a C# program to create an array names using ArrayList


class. Use the following methods in it.
Add(), Clear(), Contains(), CopyTo(), Insert(), RemoveAt(),
Sort(), Capacity(), Count().

3. Write a C# program to design a structure for inventory record


consisting of item code, item name, cost, total items. Use an array
of items in tabular form as shown below.
Code Name Cost Total items

4. Develop a windows application for a calculator.

5. What are the namespaces provided by .NET and explain the


importance of each.

6. Write short notes on


(a) Directory Information classes and their properties.
(b) File information and file objects.
PART – B ( 5 x 10 = 50)
Answer All the Questions
7. Explain about properties and indexes with an example program
for each.
(or)
8. Explain the following with an example program.
(a) Operation polym orphism
(b) Regular expression.

9. Assume that a book maintains two kinds of accounts for


customers, one called savings account and the other current
account. The savings account provides compound interest and
withdrawal facilities but no cheque book facility. The current
account provides cheque book facility but no interest. Current
account holders should also maintain a minimum balance and if
the balance fails below this level, a service charge is imposed.
Create a class Account that stores customer name, account
number, and type of account. From this derive the classes Cur-
Acct and Sav – Acct to make them more specific to their
requirements. Include the necessary member methods in order to
accomplish the following tasks.
a) Accept deposit from a customer and update the balance.
b) Display the balance.
c) Compute and deposit interest
d) Permit withdrawal and update the balance.
e) Check for the minimum balance, impose penalty, if
necessary, and update the balance.
Do not use any constructors. Use member methods to initialize
the class members.
(or)

10. (a) What is the use of explicit interface implementation? Explain


with a simple program.
(b) Write a C# program to explain delegate declaration,
instantiation, delegate methods and delegate invocation.
11. How will you create a component class and control class? How
to use them in a Windows application? Explain them by
developing a simple windows application.
(or)
12. Write a program to create your own windows application which
contains following Controls:
1. Text box 2. List Box
3.Check Box 4.Combo Box
5. Radio Button 6. Group Box.

13. (a) Write a C# program to create a window application to display


all the information about a directory in a text box when you click
a button.
(b) Write short notes on Filestream Class and File class.
(or)
14. (a) Differentiate ADO and ADO.NET
(b) Write a program to develop a database application that
displays the details of computer hardware products in a data grid
control.

15. Develop a web application for an E-store with shopping chart. E-


store is an online store involved in sales of household products.
Users should be able to select a product and place it in the
shopping cart.
(or)
16. What are the steps involved in creating and invoking a web
service? Explain with an example.

S-ar putea să vă placă și