Caching Application Pages And Data MCQ
Correct Answer:
You can store any type of data in the Cache collection
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Web server, any proxy servers, and browser
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The VaryByParam attribute determines which versions of the page output are actually cached
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All
Note: This Question is unanswered, help us to find answer for this one
How will you specifying the Cache Location?
Correct Answer:
You can use the Location attribute of the <%@ OutputCache %> directive to specify where a page is cached
Note: This Question is unanswered, help us to find answer for this one
If you want to cache the page according to the browser, then what will you do?
Correct Answer:
Write the given below code in aspx page. <%@ OutputCache Duration=”500” VaryByParam=”none” VaryByCustom=”browser” %>
Note: This Question is unanswered, help us to find answer for this one
According to the given below statements, choose the correct option.
Statement 1: Application caching is the process of storing data (and not pages) in a cache object.
Statement 2: Page output caching stores a rendered page, portion of a page, or version of a page in memory.
Statement 3: Caching reduces the time required to render cached page in future requests
Correct Answer:
All statements are correct
Note: This Question is unanswered, help us to find answer for this one
What code you will write for using the cache object?
Correct Answer:
// Storing the value. Cache["name"]="CareerRide"; // Retrieving the value on any webpage within the application. if (Cache["name"] != null) Label1.Text= Cache["name"].ToString();
Note: This Question is unanswered, help us to find answer for this one
You want to enable Page Output Caching in ASP.NET. What code you will write in ASPX page.
Correct Answer:
<%@ OutputCache Duration="30" VaryByParam="none" %>
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Response
Note: This Question is unanswered, help us to find answer for this one
Programming Languages MCQs | Topic-wise