Placement papers on ASP.NET - Set 4

Placement papers on ASP.NET - Set 4


1. What ASP.NET object encapsulates the state of the client and the browser?

Application Object
Session Object
Response Object
Request Object
View Answer / Hide Answer

ANSWER: Session Object




2. You need to store state data that is accessible to any user who connects to your Web application. Which object should you use?

Session
Application
Response.Cookies
Response.ViewState
View Answer / Hide Answer

ANSWER: Application




3. Which of the following is a requirement when merging modified data into a DataSet?

A primary key must be defined on the DataTable objects
The DataSet schemas must match in order to merge
The destination DataSet must be empty prior to merging
A DataSet must be merged into the same DataSet that created it.
View Answer / Hide Answer

ANSWER: A primary key must be defined on the DataTable objects




4. Which Kind Of data we can store in viewstate

Viewstate can store only serilizable object
Viewstate can store anything
Viewstate can store onlys string
None
View Answer / Hide Answer

ANSWER: Viewstate can store only serilizable object




5. What is/are the predefined TraceListener(s) in ASP.Net

TextWriterTraceListener
EventLogTraceListener
DefaultTraceListener
All the above 1, 2,3
View Answer / Hide Answer

ANSWER: All the above 1, 2,3




6. We have defined one page_load event in aspx page and same page_load event in code behind who will run first?

page_laod event in aspx page
page_load event in code-behind
both will run simultaneously
None
View Answer / Hide Answer

ANSWER: page_load event in code-behind




7. Which of these classes maps to the tag <input type="checkbox"/>

HtmlCheckBox
HtlmInputCheckBox
HtmlControl
None
View Answer / Hide Answer

ANSWER: HtlmInputCheckBox




8. In order to prevent a browser from caching a page which of these xstatements should be written?

Response.Cache.SetNoStore();
Response.Cache.SetNoServerCaching();
Response.Cache.SetNoCaching();
None of these
View Answer / Hide Answer

ANSWER: Response.Cache.SetNoStore();




9. Which of these data source controls do not implement Caching?

LinqDataSource
ObjectDataSource
SqlDataSource
XmlDataSource
View Answer / Hide Answer

ANSWER: LinqDataSource




10. Which of these data source controls do not implement Caching?

LinqDataSource
ObjectDataSource
SqlDataSource
XmlDataSource
View Answer / Hide Answer

ANSWER: LinqDataSource


Post your comment