Vous êtes sur la page 1sur 8

C#Question

http://www.dotnetspider.com/exams/Mcsd
-mcse-mcp-4155.aspx
c# static constructors supports
Select Answer:

1. access modifiers

2. static variables

3. instance variables

4. pass parameters list

5. overloading

Does C# support multiple-inheritance?


Select Answer:

1. No

2. Yes

3. Don't Say

Can you store multiple data types in


System.Array?
Select Answer:

1. Yes

2. No

3. ..

What’s the top .NET class that everything


is derived from?
Select Answer:

1. System.web

2. System.net

3. System.configuration

4. System.object

NHibernate mapping files

What should the build action be for Nhibernate Xml files?

Select Answer:

1. content

2. embedded resource

3. text

4. xml
2

Which tool can you use to precompile a


Windows application?

Which tool can you use to precompile a Windows application?


A. mscorcfg.msc
B. ngen.exe
C. caspol.exe

Select Answer:

1. A

2. B

3. C

Whats is the sequence of execution of


static and instance constructors of base
and derived class when you assign a base
class object with a derieved class instance
a. Base Class Static Constructor
b. Base class Instance Constructor
c. Derieved class Static Constructor
d. Derieved class Instance Constructor
Select Answer:
1. abcd

2. cabd

3. dbac

4. bcda

5. acbd

Interfaces provide implementation of


methods
Select Answer:

1. Interfaces are pure virtual methods.

2. Interfaces can't implement.

3. it cannot be implemented of methods

Can we access static members from the


non-static ( normal ) constructors?

Can we access static members from the non-static ( normal ) constructors?

Select Answer:

1. No

2. Yes

3. Can't say
2

Can we access static members from the


non-static ( normal ) constructors?

Can we access static members from the non-static ( normal ) constructors?

Select Answer:

1. No

2. Yes

3. Can't say

Static Constructor.....

How many Static Constructors can we create for a single class?

Select Answer:

1. 2

2. 1

3. More than 1

4. 3

Can you inherit multiple interfaces?


Select Answer:

1. Yes

2. No

3. Can't Say

What is the garbage collector?


Select Answer:

1. Recover the memory from variable

2. Recover the memory from objects

3. Recover the memory from classes

4. Recover the memory from methods

what are the modelling tools available for


modelling in .net

In the present context modelling is UML

Select Answer:

1. RME for .net with RSA

2. Visual studio

3. RME for .net with RSA and Visual studio


4. eclipse

5. none of the above

What is the Interface?


Select Answer:

1. Collection of Functions & Methods

2. Collection of Classes

3. Collection of Virtual Classes

4. Collection of Pure Abstract Classes

What is the size of an empty class..?


Select Answer:

1. 0

2. 1

3. 2

4. 4

5. 8

2
Why should you close all database objects
and set them to NULL before leaving the
method where the objects were created?

Why should you close all database objects and set them to NULL before leaving the
method where the objects were created?
A. To ensure that the object’s destructors are called.
B. To ensure that the connection to the database is closed as soon as possible.
C. To ensure that the objects can be reused.
D. Good coding practice.

Select Answer:

1. A

2. B

3. C

4. D

Vous aimerez peut-être aussi