Microsoft
70-515 · Question #115
You are implementing an ASP.NET application that includes the following requirements. Retrieve the number of active bugs from the cache, if the number is present. If the number is not found in the…
The correct answer is A. Dim numOfActiveBugs As Integer? =. See the full explanation below for the reasoning.
Question
You are implementing an ASP.NET application that includes the following requirements. Retrieve the number of active bugs from the cache, if the number is present. If the number is not found in the cache, call a method named GetActiveBugs, and save the result under the ActiveBugs cache key. Ensure that cached data expires after 30 seconds. You need to add code to fulfill the requirements. Which code segment should you add?
Options
- ADim numOfActiveBugs As Integer? =
- BDim numOfActiveBugs As Integer = CInt(Cache.Get("ActiveBugs"))
- CDim numOfActiveBugs As Integer = 0
- DDim numOfActiveBugs As Integer =
How the community answered
(28 responses)- A82% (23)
- B4% (1)
- C4% (1)
- D11% (3)
Community Discussion
No community discussion yet for this question.