ASP.NET question answers test

What namespace does the Web page belong in the .NET Framework class hierarchy ?
System.Web.UI.PageHandlerFactory
System.Web.UI.PageTheme
System.Web.UI.Page
System.Web.UI.PropertyEntry
Which kind Of data we can store in viewstate ?
Viewstate can store only serilizable object
Viewstate can store anything
Viewstate can store only string
Viewstate can store only numerics
What is object locking?
To make a class private
To make a class sealed
To make a constructor private
None of the above
What is/are the predefined TraceListener(s) in ASP.Net?
TextWriterTraceListener
EventLogTraceListener
DefaultTraceListener
All the above 1, 2,3
None of the above 1,2,3
How to implement authentication via web.config?
Include the authentication element.
Include the authorization element.
Include the identity element
Include the deny element.
How to Set Focus to Web Form Controls By Using Client-Side Script?
txt2.focus();
document.Id('txt2').focus();
document.ClientId('txt2').focus();
document.getElementById('txt2').focus();
How to get the IP address of the host accessing my site?
Response.Write (IPAddress.ToString ());
Response.Write (Request.UserHostAddress.ToString ());
Response.Write (UserHostAddress.ToString ());
Response.Write (Request.UserHostAddress.IPAddress.ToString ());
How to find out what version of ASP.NET I am using on my machine?
Response.Write(System.Environment.Version.ToString());
Response.Write(Version.ToString());
Response.Write(System.Version.ToString());
not possible
Which will work in release Mode?
Debug.Write
Trace.write
none
both
Name two properties common in every validation control?
ControlToValidate property and Max Value
ControlToValidate property and Range
ControlToValidate property and Text property
ControlToValidate property and Custom Script
Join the .NETCommunity
Description:

Containts test about asp.net concepts, interview question answers, tricky concepts

Discussion

Ramesh Babu B

Answer for Question 5 also wromg. Because you asked about only "Authentication" and not restricting user in accessing specific resources. Related to restricting the user from accessing specific resources the element is "Authorization".

1840 days 18 hours 56 minutes ago

Ramesh Babu B

Question 2 answer you have given was wrong. Because you asked "What type of data we can store?" and not "In which format Viewstate stores data?". Hence the answer should be "can store anything"

1840 days 18 hours 58 minutes ago

Sushil

good.........

2517 days 23 hours 42 minutes ago

rashmi

very nice

3413 days 20 hours 29 minutes ago

pankaj

Please check Que3 also, object locking is used for threading and all, why there is constructors in picture. It is little confusing for me.

3416 days 20 hours 30 minutes ago

pankaj

Please check the answer of ques 5 again.
http://msdn.microsoft.com/en-us/library/aa291347(v=vs.71).aspx

3416 days 20 hours 32 minutes ago

Jyotirmay Mohanty

its really good test.I scored only 3%.

3481 days 16 hours 28 minutes ago

Pradeep

I hav scored 70%

3488 days 20 hours 14 minutes ago

carlos

mm

3532 days 16 hours 32 minutes ago

khan

good collection

3539 days 16 hours 58 minutes ago

Harjeet Singh
Microsoft .NET technologies consultant
User
1 Member Recommends
166 Followers

Your Facebook Friends on WizIQ

More Tests By Author

ASP.NET INTERVIEW QUESTION ANSWERS QUIZ (BASIC + ADVANCE )
20 Questions | 26473 Attempts

.NET FRAMEWORK, ASP.NET, C# BASICS
20 Questions | 28605 Attempts