Sie sind auf Seite 1von 6

.

NET TEST PAPER

Time: 30 Mins
Name:_________________________
Instrcuctor: Kamal

1) The crux of CLR is physically represented by a library named


a) mscorlib.dll
b) mscorsvr.dll
c) mscoree.dll
d) mscorwks.dll

2) Default access modifier for a class in c#.net is


a) public
b) internal
c) private
d) none of above

3) Queue class defined in System. Collection namespace implements following


interfaces
a) ICollection
b) IEnumerable
c) ICloneable
d) All of above

4) To display [Newton Said: “There Exists law of gravity”] on screen, following is


correct
a)Console. Writeline(“Newton Said:” + “There Exists law of gravity”);
b)Console. Writeline(“Newton Said: There Exists law of gravity”);
c)Console. Writeline(@ “ ” “Newton Said:” “There Exists law…” “ “);
d) Console. Writeline(@”Newton Said: “ “There Exists law of …” “ “);

5) Following is a member of System. Object type


a) Equals( );
b) Add( );
c) Count( );
d) SyncRoot( );

6) The default wire protocol for remote XML web service invocation is
a) HTTP POST
b) SOAP
c) HTTP GET
d) None of the above
7) To enable HTTP GET and HTTP POST bindings in web service scenario, setting
are established in
a) machine.config
b) web.config
c) Global.asax
d) app.config

8) ParameterizedThreadStart delegate has following signature


a) void method (object data);
b) void method( object sender, EvenHendler e);
c) void method (void);
d) Non of above

9) To generate the proxy class using some WSDL of a web service such that class is
generated in VB.NET, under namespace sample, and url is taken from client-side
*.config file, the command set would be
a) wsdl /out:proxy.cs /n:sample /urlkey: serviceurl [wsdl link]
b) wsdl /out:proxy.Vb /language:vb /urlkey: serviceurl [wsdl link]
c) wsdl /out: proxy.vb /language:vb /n:sample /urlkey: serviceurl [wsdl link]
d) wsdl /out: proxy.vb [wsdl link]

10) A remote object using BinaryFormatter for Serialization & Deserialization is a


candidate to be hosted by
a) IIS
b) Window service
c) Both a & b
d) neither a nor b

11) Consider a remote object hosted by window service. The server-activated object is
created when
a) a method call is placed through proxy
b) window service is started
c) proxy is created
d) either a or c depending upon activation mode

12) Consider a c# file named testapp.cs having a class named testapp which has entry
point Main( ), to compile this file to generate testapp.exe following command set is
valid
a) csc /target:exe testapp.cs
b) csc /t:exe testapp.cs
c) csc testapp.cs
d) all above are valid

13) in connected model of ADO.NET , assuming SQL data provider ,consider


following code
sqlcommand mycommand = new sqlcommand (strSQL, con);
(where strSQL is command string and con is valid connection object)
mycommand. BeginExecuteReader (CommandBehavior. CloseConnection)
considering above statement I would collect the return value in following type
a) sqlDataReader type
b) IAsyncResult type
c) Data TableReader type
d) Non of above

14) in connected model of ADO.NET following member of DbCommand is designed


specifically for singleton queries
a) prepare( )
b) ExecuteReader( )
c) ExecuteNonQuery( )
d) ExecuteScalar( )

15) in a disconnected model of ADO.NET, consider that you have created a DataRow
instance, before adding it to the DataRowCollection , it would be in following state
a) Unchanged
b) Deleted
c) Detached
d) Modified

16) following data-provider is third party data-provider. It is not shipped with


Microsoft ADO.NET
a) MySQL
b) ODBC
c) OLEDB
d) SQL

17) A thread would be in following state when it is first created until start( ) method
called on it .
a) Stopped
b) Aborted
c) Unstarted
d) Suspended

18) The following property of Filelnfo class gets the path of the specified file .
a) Directory
b) FullName
c) DirectoryName
d) Extension

19) The use-defined control class is derived from


a) UserControl class
b) Control class
c) Form class
d) WinControl class

20) The basic interface that must be supported by a collection class is


a) ICloneable
b) IComparer
c) IComparable
d) IEnumarable

21) Following is not a c# parameter modifier


a) in
b) out
c) ref
d) params

22) To get the list of methods hold by delegate object, you will can the following
method
a) Invoke( )
b) Combine( )
c) BeginInvoke ( )
d) GetInvocationList( )

23) To manage the state of application-wide data, with expiration time, so that it can
be updated again, the best suited state-management technique provided by ASP.NET
2.0 for above case is
a) Application State
b) Application Cache
c) Session State
d) Cookie

24) consider the following code


enum color {red, green= 8, blue, yellow}
the value of yellow will be
a) 3 b) 4 c) 10 d) 2

25) Out-Proc session state object is hosted by


a) aspnet_wp.exe
b) aspnet_state.exe (ASP.NET state service)
c) Alerter.exe
d) Non of above

26) Following Serialization format demands for default constructor in all the classes
involved in object graph to be serialized
a) XmlSerializer
b) SoapFormatter
c) BinayFormatter
d) All of above
27) suppose a web service is there represented by a class named Mathametics. The
code also contains the public helper class named FixedValues. It also contains a
private class named calculations. If we are adding the web reference in client project,
the following classes will be there in Reference.cs file.
a) Mathemetics & calculations
b) Mathemetics, FixedValues & calculation
c) Mathemetics
d) Mathemetics & FixedValues.

28) Default access modifier for methods declared in an interface is


a) internal
b) public
c) private
d) none of above

29) C# language is said to be supporting aspect-oriented programming techniques


because of it’s following feature
a) Interface-based programming support
b) Automatic memory management
c) generics
d) attributes

30) following is not a CLR component


a) Class Loader
b) C# compiler
c) Garbage Collector
d) JIT compilers

Das könnte Ihnen auch gefallen