Microsoft.SelfTestEngine.70-515.v2012-08-29.by.Martin.172q.vcehttps://www.examcollection.com/microsoft/Microsoft.CertifyMe.70-515.v2012-08-29.by.Martin.172q.vce.file.htmlMicrosoft.SelfTestEngine.70-515.v2012-08-29.by.Martin.172q.vcekphttps://www.examcollection.com/microsoft/Microsoft.CertifyMe.70-515.v2012-08-29.by.Martin.172q.vce.file.html#comment-348656In A - (int)Cache["ActiveBugs"] will throw an exception if there is no ActiveBugs in cache and besides int doesnt have property HasValue and Value<br /> B - will throw an exception for the same reason as A<br /> C - they wrote to much of "Cache.NoSlidingExpiration, CacheItemPriority.Normal, null);", but anyway the code that retrives the value from cache is executed only if the ActiveBugs exist in cache<br /> D - exception as in A and B<br /> So as you can see, no answer is correct here, but some time ago I googled up some post that said that in the answer A there should be int? numOfActiveBugs instead of int (they missed a question mark) and if you think about that you will indeed see that they use the numOfActiveBugs as if it was int?, not int.Saturday, December 01, 2012 9:39 AM UTvijayhttps://www.examcollection.com/microsoft/Microsoft.CertifyMe.70-515.v2012-08-29.by.Martin.172q.vce.file.html#comment-339547Answer is a,<br /> A. int numOfActiveBugs = (int)Cache["ActiveBugs"]; <br /> if (!numOfActiveBugs.HasValue) <br /> { <br /> int result = GetActiveBugs(); <br /> Cache.Insert("ActiveBugs", result, null, <br /> DateTime.Now.AddSeconds(30), Cache.NoSlidingExpiration); <br /> numOfActiveBugs = result; <br /> } <br /> ActiveBugs = numOfActiveBugs.Value;Thursday, November 01, 2012 4:06 PM UTNikitahttps://www.examcollection.com/microsoft/Microsoft.CertifyMe.70-515.v2012-08-29.by.Martin.172q.vce.file.html#comment-322822Question. You are implementing an ASP.NET application that includes the following requirements. Retrieve the<br /> number of active bugs from the cache, if the number is present. If the number is not found in the cache,<br /> call a method named GetActiveBugs, and save the result under the ActiveBugs cache key. Ensure that<br /> cached data expires after 30 seconds. You need to add code to fulfill the requirements. Which code<br /> segment should you add?<br /> <br /> <br /> A. int numOfActiveBugs = (int)Cache["ActiveBugs"];<br /> if (!numOfActiveBugs.HasValue)<br /> {<br /> int result = GetActiveBugs();<br /> Cache.Insert("ActiveBugs", result, null,<br /> DateTime.Now.AddSeconds(30), Cache.NoSlidingExpiration);<br /> numOfActiveBugs = result;<br /> }<br /> ActiveBugs = numOfActiveBugs.Value;<br /> <br /> <br /> <br /> <br /> <br /> B. int numOfActiveBugs = (int) Cache.Get("ActiveBugs");<br /> if (numOfActiveBugs != 0)<br /> {<br /> int result = GetActiveBugs();<br /> Cache.Insert("ActiveBugs", result, null,<br /> DateTime.Now.AddSeconds(30), Cache.NoSlidingExpiration);<br /> numOfActiveBugs = result;<br /> }<br /> ActiveBugs = numOfActiveBugs;<br /> <br /> <br /> <br /> <br /> <br /> C. int numOfActiveBugs = 0;<br /> if (Cache["ActiveBugs"] == null)<br /> {<br /> int result = GetActiveBugs();<br /> Cache.Add("ActiveBugs", result, null, DateTime.Now.AddSeconds(30), Cache.NoSlidingExpiration,<br /> CacheItemPriority.Normal, null); Cache.NoSlidingExpiration, CacheItemPriority.Normal, null);<br /> numOfActiveBugs = result;<br /> }<br /> ActiveBugs = numOfActiveBugs;<br /> <br /> <br /> <br /> <br /> <br /> D. int numOfActiveBugs = (int?)Cache["ActiveBugs"];<br /> if (!numOfActiveBugs.HasValue)<br /> {<br /> int result = GetActiveBugs();<br /> Cache.Insert("ActiveBugs", result, null,<br /> Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(30));<br /> numOfActiveBugs = result;<br /> }<br /> ActiveBugs = numOfActiveBugs.Value;<br /> <br /> Whats the answer?<br /> <br /> ThanksMonday, September 03, 2012 4:10 AM UTXiaohttps://www.examcollection.com/microsoft/Microsoft.CertifyMe.70-515.v2012-08-29.by.Martin.172q.vce.file.html#comment-322638What is the difference between this exam and <br /> <br /> Microsoft certkey 70-515 v2012-08-10 by josap 170q.vce<br /> <br /> they look like they have the same questions.Saturday, September 01, 2012 10:52 PM UTS.https://www.examcollection.com/microsoft/Microsoft.CertifyMe.70-515.v2012-08-29.by.Martin.172q.vce.file.html#comment-322381Answer D is wrong. The runat="server" attribute is missing in the RegularExpresionValidator. So the right answer is C.Friday, August 31, 2012 4:37 PM UTomazzumhttps://www.examcollection.com/microsoft/Microsoft.CertifyMe.70-515.v2012-08-29.by.Martin.172q.vce.file.html#comment-322150Can anyone confirm Q55?<br /> You are implementing an ASP.NET page that includes a text box. You need to validate values that are typed by users to ensure that only numeric values are submitted. Which control markup should you use?<br /> <br /> I would have thought the answer would have been D:<br /> &lt;asp:TextBox ID="txt1" runat="server" /&gt; &lt;asp:RegularExpresionValidator ID="val1" enableClientScript="true" ControlToValidate="txt1" ValidationExpression="[0-9]*" ErrorMessage="Invalid Input Value"/&gt;<br /> <br /> According to the dump the answer is C, which is the same as D but with EnableClientScript="true" missing.<br /> <br /> Apparently the default value is true anyway, so why would D be wrong? essentially D and C are actually going to result in the same thing? <br /> <br /> CheersFriday, August 31, 2012 2:07 AM UT