Microsoft.Net Framework, ASP.NET Interview Online Test

ASP. NET uses ____________ to maintain state of controls across the consecutive round trips to the server.
JavaScript
Cache
Session State
View State
The CLR provides the _____________ that defines the data types that are used by all the .NET languages.
DL
BCL
CTS
MSIL
The __________ manages the execution of .NET programs by coordinating essential functions such as memory management, code execution, security and other services.
IL
BCL
CLR
CTS
Find any errors in the following Bank Account constructor: public int Bank Account() { balance = 0; }
No errors
Return type
No parameters
Name
In order for a class to implement an interface, it must
None of the above
A and B
Implement at least one method of the interface
Implement all methods of the interface
In C# Thread. Sleep (time) measures time in:
All of the above
Nanoseconds
Milliseconds
seconds
Class String Builder exists in which of the following namespaces:
System
System.Chars
System.Text
System.Strings
Which of the following is used to prompt users with messages and at the same time requesting user inputs?
Confirm()
Prompt()
Display()
Alert()
Which property would you use to redirect visitor to another page?
link.redirect.href
java.redirect.url
document.href
window.location.href
Which of the following is an XML-based service IDL that defines the service interface and its implementation characteristics?
Path
SOAP
WSDL
UDDI
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.Exit()
Session.End()
Session.Abandon()
Session.Discard( )
Session.Close( )
System.Web.UI.Page Class Implements which of the following interfaces
IHttpApplication
IHttpModule
IHttpHandler
What is the appropriate place to include JS file in web page for better page performance?
At the end of document
Starting of body tag
Head tag
What is the appropriate place to include CSS file in web page for better page performance?
At the end of document
Starting of body tag
Head tag
______ is the name of the Microsoft IIS process
inetinfo.exe
aspnet_wp.exe
aspnet_isapi.dll
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
None
1 and 2
2
1
Which of following is not a valid method of Data Set?
AcceptChanges()
HasChanges()
FetchChanges()
GetChnages()
The Global.asax file is derived from the ________ class
HttpContext
HttpHandler
HttpModule
HttpApplication
________ checks that the value in controls should match the value in other control.
CompareValidator
RegularExpressionValidator
RangeValidator
Where is View State information stored?
Application Object
Html Hidden Fields
IIS
_______________directive informs the compiler of any custom server control added to the page.
@Register
@Using
@Control
@Page
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?
Cookies
Session
Cache
Application
Using statement in C# automatically calls ________ on the object allocated inside the using block
Finalize
Dispose
Close
What is web garden?
Multiple Worker processes on multiple servers
Multiple Worker processes on single server
What is the default connection pool size in Ado.Net?
100
20
5
Where does ASP.NET store SessionIDs by default?
In URL strings or in a database
In a global variable
In cookies
In cache
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";
/
Error
Level 1,Level 2,Leve2 finished,Level1 finished
Level,Leve2,Leve2 finished
Leve1,Level 2,Level 1 finished
When a user views a page containing a JavaScript program, which machine actually executes the script?
None of the above
A central machine within Netscape's corporate offices
The Web server
The User's machine running a Web browser
How to get value from the following textbox
window["txt"].value;
window.getElementById("txt").value;
document.getElementById("txt").value;
window.getElementsByName("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.?
14 kmph
12 kmph
11 kmph
8 kmph
You need to obtain performance information about your Web Application. You should use which of the following?
Data Performance Counters
Web Performance Counters
Data Readers
Performance Counters
If a method is marked as protected internal who can access it?
Access is limited to the current assembly or types derived from the containing class.
Access is limited to the containing type
Access is limited to the containing class or types derived from the containing class.
Access is limited to the current assembly
To get metadata information about the types you can use mechanism called __________
Compilation
Reflection
Serialization
.NET DLLs are compiled into ___________
C#
MSIL
Machine Language
What are the methods and properties that web service supports? You can find that information in _________ file.
ASPX
DISCOMAP
WSDL
DISCO
_________ can be used as a container of other controls. This control is rendered as an HTML
element.
Container
Panel
Label
____________ cannot be instantiated on its own, it must be inherited.
Internal
Abstract
Sealed
Protected
Which is the recommended object to pass data in different tiers?
DataAdapter
DataSet
DataReader
Join the .NET Community
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

37 days 20 hours 27 minutes ago

Patel Devang

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

52 days 21 hours 50 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

85 days 15 hours 38 minutes ago

Saraju

hii, Test is very helpful.

91 days 23 hours 55 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.

142 days 21 hours 30 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

285 days 13 hours 14 minutes ago

John ">

Hi, Test is really very good

299 days 2 hours 2 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. ?

299 days 13 hours 46 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.

317 days 18 hours 31 minutes ago

Dipty

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

364 days 1 hours 38 minutes ago

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

Your Facebook Friends on WizIQ

More Tests By Author

SQL Server Interview
17 Questions | 18074 Attempts