Live Help (Start Chat)
View Count: 0
Duration: 45 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 12 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 28 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 19 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 28
Which object can be used to store frequently used items in the server’s memory for quick retrieval? 
Options:
  1. Cache
  2. Data
  3. System.Object
  4. Generic class
View Answer/Explanation:
a
Explanation:
Cache object can be used to store frequently used items in the server’s memory for quick retrieval.

Question No: 2 of 28
Is the cache object available for all web forms with in a web application? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
a
Explanation:
Yes, the Cache object is global, that is, data stored in the Cache object is available anywhere within a Web application. In this way, the Cache object is very similar to the intrinsic Application object.

Question No: 3 of 28
What are the different ways to store data in the Cache object? 
Options:
  1. Use the assignment
  2. Use the insert method
  3. Use the Add method
  4. Above All
View Answer/Explanation:
d
Explanation:
Use assignment. Assigning a value to an unused key in the Cache object automatically creates that key and assigns the value to that key. Assigning a value to a key that already exists replaces the cached value with the assigned value. Use the Insert method. The Insert method uses parameters rather than assignment to create or change cached data. Insert optionally accepts parameters to establish dependencies and set expiration policy. Use the Add method. The Add method is similar to insert; however, it requires all parameters and returns an object reference to the cached data.

Question No: 4 of 28
What are the parameters of the insert and add methods? 
Options:
  1. AbsoluteExpiration
  2. SlidingExpiration
  3. Both
  4. None
View Answer/Explanation:
c
Explanation:
AbsoluteExpiration: A DateTime objects that identifies when the data should be removed from the cache. If you’re using sliding expiration, specify Cache.NoAbsoluteExpiration for this parameter. SlidingExpiration: A TimeSpan object that identifies how long the data should remain in the cache after the data was last accessed. If you’re using absolute expiration, specify Cache.NoSlidingExpiration for this parameter.

Question No: 5 of 28
How do you retrieve the value of a cache item stored in the servers memory? 
Options:
  1. Item’s Key
  2. Index
  3. address of the object
  4. using pointer
View Answer/Explanation:
a
Explanation:
You can retrieve the value of a cache item stored in the servers memory through the item’s key, just as you do with the Application and Session objects. Because cached items might be removed from memory, you should always check for their existence before attempting to retrieve their value, as shown in the following code: private void Button1_Click(object sender, EventArgs e) { if (Cache["ChachedItem"] == null) { Lable1.Text = "Cached Item not found."; } else { Lable1.Text = Cache["ChachedItem"].ToString(); } }

Question No: 6 of 28
We can use the ___________ directive to control page output caching in ASP.NET. 
Options:
  1. @OutputCache
  2. @OutputCaching
  3. @CacheOutput
  4. @InputCaching
View Answer/Explanation:
a
Explanation:
Output caching is a user control contained in an Asp.net page

Question No: 7 of 28
We can Use the ____________ class to store arbitrary objects, such as datasets, to server memory. 
Options:
  1. HttpCaching
  2. HttpCacheServerPolicy
  3. HttpCachePolicy
  4. CacheMemoryPolicy
View Answer/Explanation:
c
Explanation:
HttpCachPolicy contains methods which are used for setting cache-specific HTTP header and for controlling the Asp.net page output cache.

Question No: 8 of 28
______________ is a technique of persisting the data in memory for immediate access to requesting program calls. 
Options:
  1. Caching
  2. Request
  3. Response
  4. Sessions
View Answer/Explanation:
a
Explanation:
.

Question No: 9 of 28
With ______________ caching one cannot cache objects between pages within an application. 
Options:
  1. Page level output caching
  2. Page fragment caching
  3. Data caching
  4. Application Level caching
View Answer/Explanation:
a
Explanation:
.

Question No: 10 of 28
The __________________method translates the @Output Cache directive into HttpCachePolicy class methods 
Options:
  1. Page.OutputCache
  2. Page.InitOutputCache
  3. Page.InitCache
  4. Page.InputOutputCache
View Answer/Explanation:
b
Explanation:
Page.InitOutputCache is Initializes the output cache for the current page request

  1