|
Re:.Net Interview Questions
Sir,
I am sending some interview questions.I am remembering the entire thing.Please excuse if some rubbish questions are there.Please answer the questions .I am giving some options given to me from by memory.Not all options are there.If possible please explain in detail. so that it will help every one
Thanking you
Pramod.M
Qusetions
1.User is giving \"false\" as the second argument of Response.Redirect what will happen
a)not compile at all b)executes ....
2)which object is fastest when reading from database
a)dataset b)data reader c)xml clause.
3)while using the custom control if the user is putting the background property to blue in the on_init function.What will happen if he is viewing this in design mode
a)blue background b)white c)error
4)same question but the property will be taken from web.config what will happen in the design mode?
5)If the user is setting a session variable at session_onstatr and the loging mode is user authentication.What will happene when the application starts
a)session is started so no probs b)error c)only after loging in he will get this
6)one user custom control is there in the top.inside this we are defining one more user control.There we are defining the property of the controls what will happen?
7)what is the advantage of server control over all other controls
a)only for persistance of data b)fast...
8)where is the best place to declare an event so that it will not affect the view state?
a)on_Pageload b)on_init c)on_prerender
9)Refadd=null
if(calloffice(officeid,refadd)&&refadd!=null{
do some thing
}
what will happen here?
10)If same property or configuration is declared in the web.config and machine.config file what will happen?
a)web.config is taken b)machine.config is taken c)merge will happen d)error
11)if i want a particular property(style) to applecable to my web page where i have to define it?
a)session.cs file b)apllication.aspx.cs file..
12)If we want an application to start on start of windows and end on close of windows what we have to do?
a)build ordinary appln and put in the start menu
b)use windows service
..
13)If I am writing an element \"<web.usercontrols>\" in web.config what will happen
14)what is typed dataset
15)which is the best way to handle exception
a)throw every exception and catch it and throw it again and caught by user defined exception
b)catch at SystemGUI level
c)throw each exception and catch it
..
16)befor opening vs.net if we are deleting all the dlls in the bin directory what will happen?
17)User has got 5 forms and i am using same grid in all the 5 forms .If the reference for all these grids are in the base class for this pages what will happen?
18)How c# files are stored?
a)binary b)byte c)byte[],bit ..
19)for serializing an object the object must implement which interface?
a)Iuserserialize....
20)For asynchronously executing two processes what will we user?
a)thread ..
21)ForXML Clause is used for
|