February 2011 Master of Computer Application

download February 2011 Master of Computer Application

of 4

Transcript of February 2011 Master of Computer Application

  • 8/3/2019 February 2011 Master of Computer Application

    1/4

    F e br ua ry 2 01 1M a s t e r o f C o m p u t e rA 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 1 (40 Marks)Answer al l Quest ions Each quest ion carr ies

    TEN marks

    1. Describe the steps involved in creating classes andobjects with the help of a program in C#002E

    2. With the help of a suitable example, explain the

    steps involved in editing, compiling and running aC# program.

    3. Discuss the following:Web.config fileGlobal.asax Application File

    4. Discuss the following:

    IIS ArchitectureIIS Request Processing Models

  • 8/3/2019 February 2011 Master of Computer Application

    2/4

    1F e br ua ry 2 01 1M 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 al l Quest ions Each quest ion carr ies TEN marks1. With a labeled diagram, explain the ASP.NETArchitecture 2.Discuss the following:ASP.NET Compilation system

    Components of ASP.NET Web pages

    3. Describe the following Web Services:A) Web Service Discovery DISCOB) Web Service Discovery UDDI

    4. Describe the theory of creating application pools in IIS6.0.

    2

  • 8/3/2019 February 2011 Master of Computer Application

    3/4

    Assignment Set 1(answer - 1)

    A class is a construct that enables you to create your owncustom 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 isnotdeclared as static, client code can use it by creatingobjects or instances which are assigned to a variable.

    Thevariable remains in memory until all references toit go out of scope. At that time, the CLR marks it aseligible forgarbage collection. If the class is declared asstatic, then only one copy exists in memory and client

    code can onlyaccess it through the class itself, not aninstance variable. For more information, see Static Classesand Static ClassMembers (C# Programming Guide).Unlikestructs, classes support inheritance, a fundamentalcharacteristic of object-oriented programming.Declaringclassespublic class Customer{ //Fields, properties,methods and events go here...}Creating objectCustomer object1 = new Customer();Class

    Inheritancepublic class Manager : Employee{ // Employeefields, properties, methods and events are inherited // NewManager fields, properties, methods and events gohere...}EXAMPLEpublic class Person{ // Fieldpublic stringname; // 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.SetName("John Smith");Console.WriteLine(person.name); // Keepthe console window open in debug mode.

  • 8/3/2019 February 2011 Master of Computer Application

    4/4