Tuesday 17 January 2017

M4.1-R4 Application of .NET Technology January 2016

January, 2016 M4.1-R4: APPLICATION OF .NET TECHNOLOGY


PART ONE

(Answer all the questions)


1. Each question belo w gives a mu ltiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein . (1x10)

1.1 Which of the follo wing utilities can be used to compile managed assemblies in to processorspecific
native code?
A) Gacutil
B) nge n
C) dumpbin
D) ildasm
View Answer

1.2 Which of the following jobs are NOT performed by Garbage Collector?
i) F reeing memory on the stack.
ii) Avoiding memory leaks.
iii) F reeing memory o ccupied by unreferenced objects.
iv) Closing unclosed database collection.
v) Closing unclosed files.
A) i), ii), iii)
B) iii), v)
C) i), iv), v)
D) iii), iv)
View Answer
1.3 Which of the following constitutes the .NET F ramewo rk?
i) ASP.NET Applications
ii) CLR
iii) F ramework Class Library
iv) WinForm Applications
v) Windows Services
A) i), ii)
B) ii), iii)
C) iii), iv)
D) ii), v)
View Answer
1.4 Which of the following is the root of the .NET type hierarchy?
A) System.Object
B) System.Type
C) System.Base
D) System.Parent
View Answer
1.5 If in an ASP.NET application one want to create http handlers which of the interface is used
A) None of the above
B) pipeline
C) Handler
D) IHttpHandlerFactory
View Answer
1.6 Which of the following is not a .NET compatible language?
A) C#
B) VB.NET
C) COBOL.NET
D) Java
View Answer

1.7 In ASP.NET page framework an automatic way to associate page events and methods is
A) AutoEventWireup attribute of the Page directive is set to true
B) AutoEventWireup attribute of the Page directive is set to False
C) It is not possible to set automatically page events and methods
D) None of the Above
View Answer

1.8 The Following are the minimum requirement to run Asp .net pages
A) Java Virtual Machine
B) Common Language Runtime
C) Windows explo rer
D) None of the above
View Answer

1.9 Which of the following is true?
A) IsPostBack is a method of System.UI.Web.Page class
B) IsPostBack is a method of System.Web.UI.Pa ge class
C) IsPostBack is a readonly property of System.Web.UI.Page class
D) None of the above
View Answer

1.10 Why is Global.asax is u sed?
A) Implement applica tion and session level events
B) Declare Global va riables
C) No use
D) All of the above
View Answer

2. Each statement below is either TRUE o r FALSE. Choose the most appropriate one and ENTER in the “OMR” answer sheet supplied with the question paper, following instructions therein . (1x10)

2.1 Can we have a web application running without web.Config file?
2.2 It is possible to set Maximum length for a text box through code.
2.3 Does the “EnableViewState” allows the page to save the users input on a form.
2.4 There can be more than 1 machine.config file in a system.
2.5 A property can be declared inside a namespa ce or a procedure.
2.6 ASP makes a website more interactive and dynamic.
2.7 C# does not allow multiple inheritances.
2.8 There does not exist a way to print an element of an enum as a string.
2.9 A function can be used in an exp ression, whereas a subroutine cannot be.
2.10 Can static procedures access instance data?

View Answer

3. Match words and phrases in column X with the closest related meaning/wo rd(s)/phrase(s) in column Y. Enter your selection in the “OMR” answer sheet supp lied with the question paper, following instructions therein. (1x10) 
                         X                                                                       Y
3.1 From which base class all Web Forms are                      A. Managed Code
inherited?
3.2 What is the default Session modes                                B. System.StackOverflowException
 in asp.net?
3.3 Which of the following is the necessary                       C. Entrypoint
 condition for implementing de legates?
3.4 Code that targets the Common Language                    D. F ileInfo
Runtime is known as
3.5 Which of the following should be used to                    E. Page class
implemen t a 'Has a' relationship between two
entities?
3.6 Which of the following CANNOT occur                    F. CRE
 multiple number of time s in a program?
3.7 String s1 = "ALL MEN ARE CREATED EQUAL";  G. Persistent
String s2;
s2 = s1.Substring (12, 3);
Console.WriteLine(s2);
3.8 Handle s errors gene rated from stack                           H. Encapsulation
overflow.
3.9 Used for performing operations on files.                        I. CR
3.10 Cookies a re generally used to store                            J. Containership
 information that identifie s a returning user 
to a Web site.
                                                                                                K. InProc
                                                                                               L. F ile
                                                                                              M. Class declaration

View Answer


4. Each statement be low has a b lank space to fit one o f the word(s) or phrase (s) in the list
below. Enter your choice in the “OMR” answer sheet supp lie d with the question paper,
following instructions therein. (1x10)

A. “as”                              B. Reflection                                   C. Panels
D. Ctype                           E. “throw”                                        F. Serialization
G. delegates                      H. “throw ex”                                  I. System.Globalization
J. sealed                            K. Dispose()                                    L. structure ,classes        
             M. Direct Cast

4.1 ___ _____ is a process of converting an object into a stream of bytes.
4.2 The ________ modifier is used to prevent derivation from a class.
4.3 ___ _____ is the ability to find the information about types contained in an assembly at runtime.
4.4 ___ _____ operates deterministically due to which it is generally preferred.
4.5 ___ _____ operator is used for casting of object to a type or a class.
4.6 ___ _____ is used for conversion where the conversion is defined between the expression and
the type.
4.7 It is always a dvised to use ________ because it provides more accurate error in formation .
4.8 Both ________ and ________ can implement interfaces to use multiple-inherita nce in code.
4.9 The developer can define cu ltu re specific information usin g the ________ name space.
4.10 ___ _____ acts as a container to group other controls.

View Answer


PART TWO
(Answer any FOUR questions)
5.
a) What is th e difference between Server.Transfer and Response.Redirect? Why would I choose
one over the other?
b) What’s the C# equivalen t of C++ catch (…), which was a catch-all sta tement for any possible
exception?
c) What is the difference between early-binding and late-binding?
(5+5+5)
6.
a) What are various types of directives in .NET?
b) What is the difference between typeof(foo) and myFoo.GetT yp e()?
c) What is difference between MetaData and Manifest in .Net frame work?
(5+5+5)
7.
a) How does the generational garbage collector in the .NET CLR manage object lifetime? What
isnon-deterministic finalization?
b) What is the difference between IEn umerable<T> and List<T>?
c) Exp lain the importan ce and use of each, Version, Culture and PublicKeyToken for an assembly.
(6+4+5)
8.
a) Describe the role of ine tinfo.exe, aspne t_isapi.dll and aspnet_wp.exe in the page loading
pro cess.
b) Is it possible to add custom object as a key in HashTable, if so ho w to retrieve the stored value?
c) Why to use “Nullable Coalescing Operator” (??) in C#?
d) What is the difference between “as” and “is” operators in C#?
(5+4+3+3)
9.
a) Exp lain what a diffgram is and its u sage?
b) What is DLL Hell, and how does .NET solve it?
c) Exp lain Indexers in C#?
d) Exp lain Anonymous type in C#?
(5+4+3+3)
Download PDF

No comments:

Post a Comment