C# and Dot Net Interview Questions I



Where does the version dependencies recorded

Inside an assembly’s manifest

 

How do you refer parent classes in C#

This keyword is used for reffering current object and Base keyword is used for referring parrent class. so ans. is C

 

Which attribute you generally find on top of main method

[ STAThread ]

 

How do you make a class not instantiable

Making class as Abstract

 

In a multilevel hierarchy how are the constructors are called

TopDown

Always a parent class constructor is executed before child class’ constructor does .. when u instantiate a child/derived class.

 

Which utility is used to create resource file

resgen

 

 

What is the extension of a resource file

.resx

 

A shared assembly must have a strong name to uniquely identify the assembly

True

 

Public policy applies to

Public policies are applied on Shared Assemblies.

 

Stream object can not be initialized

True

 

Which of the following has stream as the base class

BufferedStream,MemoryStream and FileStream all these 3 classes are inherited from System.IO.Stream class.

 



Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: