Microsoft.Net Framework, ASP.NET Interview Online Test

ASP. NET uses ____________ to maintain state of controls across the consecutive round trips to the server.
View State
Session State
Cache
JavaScript
The CLR provides the _____________ that defines the data types that are used by all the .NET languages.
MSIL
CTS
BCL
DL
The __________ manages the execution of .NET programs by coordinating essential functions such as memory management, code execution, security and other services.
CTS
CLR
BCL
IL
Find any errors in the following Bank Account constructor: public int Bank Account() { balance = 0; }
Name
No parameters
Return type
No errors
In order for a class to implement an interface, it must
Implement all methods of the interface
Implement at least one method of the interface
A and B
None of the above
In C# Thread. Sleep (time) measures time in:
seconds
Milliseconds
Nanoseconds
All of the above
Class String Builder exists in which of the following namespaces:
System.Strings
System.Text
System.Chars
System
Which of the following is used to prompt users with messages and at the same time requesting user inputs?
Alert()
Display()
Prompt()
Confirm()
Which property would you use to redirect visitor to another page?
window.location.href
document.href
java.redirect.url
link.redirect.href
Which of the following is an XML-based service IDL that defines the service interface and its implementation characteristics?
UDDI
WSDL
SOAP
Path
For the XML parser to allow special characters in your XML document, which syntax is correct?


Sample Text
Sample Text
How do you explicitly kill a user session?
Session.Close( )
Session.Discard( )
Session.Abandon()
Session.End()
Session.Exit()
System.Web.UI.Page Class Implements which of the following interfaces
IHttpHandler
IHttpModule
IHttpApplication
What is the appropriate place to include JS file in web page for better page performance?
Head tag
Starting of body tag
At the end of document
What is the appropriate place to include CSS file in web page for better page performance?
Head tag
Starting of body tag
At the end of document
______ is the name of the Microsoft IIS process
aspnet_isapi.dll
aspnet_wp.exe
inetinfo.exe
Which of the following statements are true? 1)You need to explicitly open connection to execute DataReader 2)You need to explicitly open connection to fill DataSet
1
2
1 and 2
None
Which of following is not a valid method of Data Set?
GetChnages()
FetchChanges()
HasChanges()
AcceptChanges()
The Global.asax file is derived from the ________ class
HttpApplication
HttpModule
HttpHandler
HttpContext
________ checks that the value in controls should match the value in other control.
RangeValidator
RegularExpressionValidator
CompareValidator
Where is View State information stored?
IIS
Html Hidden Fields
Application Object
_______________directive informs the compiler of any custom server control added to the page.
@Page
@Control
@Using
@Register
You want to keep country list in application server memory and refresh it after every 30 minutes. What is appropriate object to perform this type of operation?
Application
Cache
Session
Cookies
Using statement in C# automatically calls ________ on the object allocated inside the using block
Close
Dispose
Finalize
What is web garden?
Multiple Worker processes on single server
Multiple Worker processes on multiple servers
What is the default connection pool size in Ado.Net?
5
20
100
Where does ASP.NET store SessionIDs by default?
In cache
In cookies
In a global variable
In URL strings or in a database
Which of these string definitions will prevent escaping on backslashes in C#?
string s = #"Test string";
string s = ."Test string";
string s = @"Test string";
string s = &"Test string";
/
Leve1,Level 2,Level 1 finished
Level,Leve2,Leve2 finished
Level 1,Level 2,Leve2 finished,Level1 finished
Error
When a user views a page containing a JavaScript program, which machine actually executes the script?
The User's machine running a Web browser
The Web server
A central machine within Netscape's corporate offices
None of the above
How to get value from the following textbox
window.getElementsByName("txt").value;
document.getElementById("txt").value;
window.getElementById("txt").value;
window["txt"].value;
Robert is travelling on his cycle and has calculated to reach point A at 2 P.M. if he travels at 10 kmph. He will reach there at 12 noon if he travels at 15 kmph. At what speed must he travel to reach A at 1 P.M.?
8 kmph
11 kmph
12 kmph
14 kmph
You need to obtain performance information about your Web Application. You should use which of the following?
Performance Counters
Data Readers
Web Performance Counters
Data Performance Counters
If a method is marked as protected internal who can access it?
Access is limited to the current assembly
Access is limited to the containing class or types derived from the containing class.
Access is limited to the containing type
Access is limited to the current assembly or types derived from the containing class.
To get metadata information about the types you can use mechanism called __________
Serialization
Reflection
Compilation
.NET DLLs are compiled into ___________
Machine Language
MSIL
C#
What are the methods and properties that web service supports? You can find that information in _________ file.
DISCO
WSDL
DISCOMAP
ASPX
_________ can be used as a container of other controls. This control is rendered as an HTML
element.
Label
Panel
Container
____________ cannot be instantiated on its own, it must be inherited.
Protected
Sealed
Abstract
Internal
Which is the recommended object to pass data in different tiers?
DataReader
DataSet
DataAdapter
Join the .NETCommunity
Description:

Objective type Microsoft.Net Framework, ASP.NET interview questions for .Net web Developer or Software Engineer.

Discussion

Sumit

Hi Friends,
I found an interesting and awesome site for the .Net Interview Questions.
Visit www.lazyquestion.com

64 days 11 hours 20 minutes ago

Patel Devang

http://studyoverflow.com/asp-mvc/

79 days 12 hours 43 minutes ago

Ihead Go

Found a site (http://www.iheadgo.com) that offers tons of practice exams for multiple subjects. They offer practice exams for almost anything possible. Check it out.
Checking out this site and looks interesting...a lot of different Exams TI.
http://www.iheadgo.com

112 days 6 hours 31 minutes ago

Saraju

hii, Test is very helpful.

118 days 14 hours 48 minutes ago

Parthasarathy Raja

Answer for Question Number 36 is wrong. Actually .Net code is compiled into MSIL (ie .Net DLLs/EXEs).
.Net DLLs are compiled into machine language by a Just In Time compiler.

169 days 12 hours 23 minutes ago

Navaneeth

Good Questions...sir
Can u Suggest me which book i have to refer , to get through mcsd exam
Thank you in Advance

312 days 4 hours 7 minutes ago

LokeshSharma

Hi, Test is really very good

325 days 16 hours 55 minutes ago

Yunus Emre

very good test. thank you so much. i need more and more tests. I am preparing to take mcsd exam. could you suggest me any document, book etc. ?

326 days 4 hours 40 minutes ago

Mathew

I am planning to write my MCPD exams next year June. So i have scored 90% (36 out of 40) here. Looking forward for more good questions. Thank you.

344 days 9 hours 25 minutes ago

Dipty

its a good one to brush up ur knowledge. i scored 25 out of 40

390 days 16 hours 32 minutes ago

Gurjinder Singh Brar
Director of Product – WizIQ.Com
User
2 Members Recommend
194 Followers

Your Facebook Friends on WizIQ

More Tests By Author

SQL Server Interview
17 Questions | 18480 Attempts