You are on page 1of 4

February 2011M a s t e r o f C o m p u t e r A p p l i c a t i o n ( M C A ) S e m e s t e r 5 MC0081 .

.(DOT) Net Technologies 4 Credits (Book ID: B0974) Assignm ent Set 1 (40 Marks) Answer all Questions Each question carries TEN marks
1.

Describe the steps involved in creating classes and objects with the help of a program in C#002E With the help of a suitable example, explain the steps involved in editing, compiling and running a C# program. Discuss the following: Web.config file Global.asax Application File

2.

3.

4. Discuss the following: IIS Architecture IIS Request Processing Models

February 2011M a s t e r o f C o m p u t e r A p p l i c a t i o n ( M C A ) S e m e s t e r 5 MC0081 .(DOT) Net Technologies 4 Credits (Book ID: B0974) Assignment Set 2 (40 Marks) Answer all Questions Each question carries TEN marks 1. With a labeled diagram, explain the ASP.NET Architecture 2. Discuss the following: ASP.NET Compilation system Components of ASP.NET Web pages 3. Describe the following Web Services: A) Web Service Discovery DISCO B) Web Service Discovery UDDI 4. Describe the theory of creating application pools in IIS 6.0.

Assignm ent Set 1 (answer - 1) A class is a construct that enables you to create your own custom types by grouping together variables of othertypes, methods and events. A class is like a blueprint. It defines the data and behavior of a type. If the class is notdeclared as static, client code can use it by creating objects or instances which are assigned to a variable. Thevariable remains in memory until all references to it go out of scope. At that time, the CLR marks it as eligible forgarbage collection. If the class is declared as static, then only one copy exists in memory and client code can onlyaccess it through the class itself, not an instance variable. For more information, see Static Classes and Static ClassMembers (C# Programming Guide).Unlike structs, classes support inheritance, a fundamental characteristic of object-oriented programming.Declaring classespublic class Customer{ //Fields, properties, methods and events go here...} Creating objectCustomer object1 = new Customer();Class Inheritancepublic class Manager : Employee{ // Employee fields, properties, methods and events are inherited // New Manager fields, properties, methods and events go here...}EXAMPLEpublic class Person{ // Fieldpublic string name; // Constructorpublic Person(){name = "unknown";} // Methodpublic void SetName(string newName){name = newName;}}class TestPerson{static void Main() {Person person = new Person();Console.WriteLine(person.name);person.SetNam e("John Smith");Console.WriteLine(person.name); // Keep the console window open in debug mode.

You might also like