AMIETE
– CS/IT (NEW SCHEME) - Code: AC73/AT73
NOTE: There are 9 Questions in all.
· Question 1 is compulsory and
carries 20 marks. Answer to Q.1 must be written in the space provided for it in
the answer book supplied and nowhere else.
· Out of the remaining EIGHT
Questions, answer any FIVE Questions. Each question carries 16 marks.
· Any required data not
explicitly given, may be suitably assumed and stated.
Q.1 Choose
the correct or the best alternative in the following: (210)
a. What
is an abstract class?
(A) Whenever a class is not providing full information then
that class is called as Abstract Class.
(B) A method without body is
called as Abstract Class.
(C) When a class contains at least one abstract method also,
then that class must be declared as Abstract Class
(D) All the above
b. Derivation
of Base Class from Derived Class is
(A) Abstraction (B) Inheritance
(C) Encapsulation (D)
None of the above
c. Name the
three layers in a three-tier application.
(A) Presentation (UI), Business (logic and underlying code)
and Data (from storage or other
sources).
(B) Application
Layer, Business Layer and Data (from storage or other sources).
(C) Presentation
Layer, Transport Layer and Data Link layer.
(D) None of the above
d. What is .NET?
(A) a programming language
(B) an operating system
(C) a layer between the operating system and the programming
language
(D) None of the
above
e. The namespace that defines a
number of stock container objects (Array List, Queue etc) as well as base types
and interfaces that allow you to build customized collections – is called:
(A) System.Data (B) System.IO
(C) System.Net (D) System.Collections
f. Expansion for acronyms CTS, CLS and CLR are:
(A) Common Technology System,
Common Language Specification and Common
Language Runtime
(B) Common Type System, Common Language Specification and
Common Language Runtime
(C) Common Type System, C#
Language Specification and Common Language Runtime
(D) Common Type System, Common Language Specification and
Common Language Routines
g. The ECMA standard that
describes the core libraries of the .Net universe is called:
(A) Common Language Specification
(B) Common Type System
(C) Common Language Runtime
(D) Common Language Infrastructure
h. This Windows based
application allows you to browse the underlying c# type definition in the base
class libraries.
(A) wincv.exe (B) wincv.dll
(C) ildasm.exe (D) TestApp.exe
i. Once you load an assembly
into ildasm.exe, press Ctrl+________ to view generated type metadata.
(A) S (B) C
(C) M (D) D
j. The ____________ is a set of guidelines that describe in
vivid detail, the minimal and complete
set of features a given .Net aware compiler must produce to code that
can be hosted by the CLR, while at the same time be accessed in a uniform
manner by all languages that target the .Net platform.
(A) CTS (B) CLS
(C) CLI (D) CIL
Answer any FIVE Questions out
of EIGHT Questions.
Each question carries 16 marks.
Q.2 a. Explain the role of the .NET Base Class
Libraries and make a diagram to depict the relationship between the .NET
runtime layer and the corresponding base class library. (9)
b. Draw a workflow diagram for the workflow that
takes place between your source code (which is making use of base class library
types), a given .NET compiler, and the .NET execution engine. (7)
Q.3 a. Provide
reasons which explain the importance of Command Line Compiler (csc.exe) (9)
b. Why XML is used to document type definitions rather than
HTML? (7)
Q.4 a. Describe the core members of System.Object
with meanings. (9)
b. What is the
purpose of Boxing and Unboxing? Explain with the help of an example (7)
Q.5 a. Differentiate between the pillar of OOPS
(C++) and C#. (9)
b. What do you
understand by the keyword “protected”? Illustrate with example and provide at
least one benefit and one disadvantage of using protected members of a base
class. (7)
Q.6 a. Write
a program that will read a name from the keyboard and display it on the screen.
The program should throw an exception when the length of the name is more than
15 characters. Design your own exception mechanism. (8)
b. How is the garbage collection handled in
.NET? How does the runtime determine when an object is “no longer needed”?
Illustrate with example. (8)
Q.7 a. What
do you understand by the term Interface? Build IComparable interface of an
object car using array to maintain internal ID and perform the sort method. (9)
b. Describe any
three systems, collections, specified namespace from .NET bare class libraries. (7)
Q.8 a. Define
“delegate” keyword in C#. What are the three pieces of information maintained
by a delegate? What purpose does delegate serve? (8)
b. What is the
purpose of an Event? Where is it used? How is it established? (8)
Q.9 a. Describe an overview of .NET Assemblies. What
are the names of five major elements of a .NET binary? (8)
b. What do you
understand by “shared” assembly? Create a new C# Class Library named Shared
Assembly. (4+4)