Live Help (Start Chat)
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 Sample Code.
Question No: 1 of 13
OutputCache of a given 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 among all the clients irrespective of the browser they send the request from.

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

Question No: 3 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: 4 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. ?
View Answer/Explanation:
a
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. ?
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 the 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
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
View Answer/Explanation:
b
Explanation:
If we mention VaryByParam="none" and one user given name is "Deccansoft" and another user is 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 the client machine and in the proxy server? 
Options:
  1. Server
  2. Downstream
  3. Client
  4. ServerAndClient
View Answer/Explanation:
b
Explanation:
If Location="Downstream": Cache can be located either on the 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