View Count: 0
Duration: 32 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Sorry!For this module there is no Assignments.
Question No: 1 of 13
Which of the following are required properties of OutputCache attribute 
Options:
  1. Duration
  2. VaryByParam
  3. VaryByHeader
  4. Location
View Answer/Explanation:
a
Explanation:
Rest of the properties have default value.

Question No: 2 of 13
OutputCache of a give action method is shared between 
Options:
  1. All the clients
  2. A particular client
  3. All the browsers but from same machine
  4. A particular browser
View Answer/Explanation:
a
Explanation:
OutputCache is global and is shared between all the clients irrespective of the browser they send the request from.

Question No: 3 of 13
In OutputCache, VaryByParam value can be fetched from 
Options:
  1. Form element Name
  2. QueryString
  3. Cookie
  4. Session object
View Answer/Explanation:
a b c
Explanation:
The value of "VaryByParam" can be either QueryString parameter, Cookie Name or Form element Name

Question No: 4 of 13
For every value of the parameter (parameters) mentioned in VaryByParam,  ___________ cache copy of the response is maintained on the server and same is ___________ for those values of parameters for subsequent requests. 
Options:
  1. different, not reused
  2. same, not reused
  3. different, reused
  4. same, reused
View Answer/Explanation:
c
Explanation:

Question No: 5 of 13
What should be the value of VaryByParam if the same cache copy of a given action method must be used for all client request irrespective of the value of query string and form parameters sent from client to server 
Options:
  1. none
  2. *
  3. ?
  4. ~
View Answer/Explanation:
a
Explanation:

Question No: 6 of 13
Based on the type of browser used on the client, the cache copy used on server must be different for every request. Which property of OutputCacheAttribute is used to achieve this. 
Options:
  1. VaryByHeader
  2. VaryByBrowser
  3. VaryByParam
  4. VaryByCustom
View Answer/Explanation:
d
Explanation:
VaryByCustom="Browser" ? For different browser types a different cache is created.

Question No: 7 of 13
[Outputcache(Duration=10)]
public ActionResult GetTime()
{
  object time=DateTime.Now.ToLongTimeString();
  return View(time);
}
which of the following is correct about given snippet. 
Options:
  1. Any user will get same time up to 10min.
  2. Different users will get their own server time
  3. Time will increase normally.
  4. The page will be available only for 10 mins for every user.
View Answer/Explanation:
a
Explanation:

Question No: 8 of 13
[HttpPost]
[Outputcache(Duration=10),VaryByParam="Name"]
public ActionResult GetTime(string Name)
{
  object time=DateTime.Now.ToLongTimeString()+ " "+Name;
  return View(time);
}
which of the following is correct if  multiple users are using the above snippet. 
Options:
  1. Same output for Every user up to 10min.
  2. Name changes Output also changes.
  3. Compilation Error.
  4. Name changes but time remains same.
View Answer/Explanation:
b
Explanation:
If we mention VaryByParam="none" and one user given name is "Deccansoft" and another user given "DSS".but both will get Deccansoft only.To avoid this problem we have to write VaryByParam="Parameter Name".

Question No: 9 of 13
What should be the value of Location property of OutputCacheAttribute so that the cache copy of saved on client machine and in proxy server 
Options:
  1. Server
  2. Downstream
  3. Client
  4. ServerAndClient
View Answer/Explanation:
b
Explanation:
Location="Downstream": Cache can be located either on browser (client) or proxy

Question No: 10 of 13
Which of the following can be used for connecting the Cache Profile to OutputCacheAttribute 
Options:
  1. [OutputCache(Profile="CacheInConfig")]
  2. [OutputCache(Cache="CacheInConfig")]
  3. [OutputCache(CacheProfile="CacheInConfig")]
  4. [OutputCache(Name="CacheInConfig")]
View Answer/Explanation:
c
Explanation:

  1