Certification Practice Test Sample Questions For Developing ASP.NET MVC Web Applications (MS-20486)
QuickStart is now offering sample questions for Developing ASP.NET MVC Web Applications (MS-20486). Whether you are deciding which exam to sign up for, or simply want to practice the materials necessary to complete certification for this course, we have provided a practice test to better aid in certification. 100% of the questions are real test questions; from a recent version of the Developing ASP.NET MVC Web Applications (MS-20486) exam.
![Arrow](https://di3xp7dfi3cq.cloudfront.net/media/wysiwyg/infortis/ultimo/custom/icons/arrow-point-to-down-3.png)
![](https://di3xp7dfi3cq.cloudfront.net/media/wysiwyg/infortis/ultimo/custom/practice-exam/angular_typescript.jpg)
Building web apps with Angular and TypeScript (MS-55266)
Enroll now today and get 30% off using discount code PRACTICE30 at checkout.
Developing ASP.NET MVC Web Applications (MS-20486) Sample Exam Questions
You need to make the "Distance" header of the table bold in the Views/RunLog/GetLog.cshtm| view.
Which code segment should you use?
- A. table>tr{font-weight: bold;}
-
Incorrect.
- B. table>thflasbcth{fontANeight:bold;}
-
Incorrect.
- C. table+first-child{font-weight: bold;}
-
Incorrect.
- D. table>tr>th2nth-child (2) {font-weight: bold;}
-
Correct!
If the canvas element is supported by the client browser, the application must display "London 2012" in the footer as text formatted by JavaScript at the end of the _Layout.cshtml file. You need to modify the layout to ensure that "London 2012" is displayed as either formatted text or as plain text, depending on what the client browser supports.
Which code segment should you add?
- A. <canvas id="myFooter">
@(Request,BrowserJavaApplets ? new HtmlString("London 2012") : null)
</canvas> -
Incorrect.
- B. <ca nvas id="myFooter">London 2012</canvas>
-
Incorrect.
- C. <ca nvas id="myCanvas">London 2012</ca nvas>
-
Correct!
- D. <canvas id="myCanvas"></canvas> <p>London 2012</p>
-
Incorrect.
You need to make all of the rows in the table bold in the Views/RunLog/GetLog.cshtm| view.
Which code segment should you use?
- A. Table > thzlast-child { font-weight: bold;}
-
Incorrect.
- B. Table+first-child{ font-weight: bold;}
-
Incorrect.
- C. Table>tr>th2nth-chi|d{2){font-weight: bold;}
-
Incorrect.
- D. Table > tr {font-weight: bold;}
-
Correct!
You need to display the "miles" unit description after the distance in the GetLog view. Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)
- A. @log.Distance miles
-
Correct!
- B. @Htrml.DisplayFor(model => log.Distance) miles
-
Correct!
- C. @log.Distance.ToString() @Html.TextArea("miles")
-
Incorrect.
The date of the run must be displayed in Views\Runlog\GetLog.cshtml. The timestamp must not be displayed. You need to display the date of the run according to the business requirements.
Which code segment should you use?
- A. @Html.DisplayFor(model => log.ShortDate)
-
Correct!
- B. @log.RunDate.ToString()
-
Incorrect.
- C. @log.RunDate.ToShortDateString()
-
Incorrect.
- D. @Html.DisplayFor(model => log.RunDate)
-
Incorrect.
You are designing a Windows Communication Foundation (WCF) service that uses the Product class. You need to update the class to meet the storage requirement.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
You need to modify the application to meet the productld requirement. What should you do?
- A. Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows.
Contract.Assume(productld != O); -
Incorrect.
- B. Modify the GetDealPrice method of ProductController as follows.
Contract.Requires(product|d > O); -
Correct!
You need to implement the business requirements for managing customer data. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
- A. Add a class named Customer-Controller to the Controllers folder. Then add a method named Edit to the class.
-
Correct!
You updated the web.config file with the HTTP run-time value required to display an alternative version of the site. You need to ensure that the correct page displays to the users. Which code segment should you use to update the controller?
- A. If (Request.|sTabletDevice)
-
Incorrect.
- B. If (Request.Browser.|sBrowser("Mobi|e"))
-
Incorrect.
- C. If (Request.UserAgent["Tablet"])
-
Incorrect.
- D. If (Request.Browser.|sMobileDevice)
-
Correct!
You need to implement client-side animations according to the business requirements. Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
- A. $("body h1:nth-child(1)").fadeIn(1000);
-
Incorrect.
- B. $("body h1:nth-child(1)")-fadeOut(1000);
-
Correct!
- D. $("body h1:nth-child(1)").animate({ opacity: 1 });
-
Incorrect.
You need to implement client-side animations according to the business requirements. Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
- A. $ ("hl: first") .animate ({ opacity: O });
-
Correct!
- B. $("hl:first").fade|n(lOOO);
-
Incorrect.
- C. $("hl:first").animate({ opacity: l });
-
Incorrect.
- D. $("hl:first").fadeOut(lOOO);
-
Correct!
You need to configure session storage in the web.config file to meet the technical requirements for scalability. Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.)
You need to implement the business requirements for managing customer data. What should you do? Each correct answer presents part of the solution. Choose all that apply.
- A. Add a folder named Customer to the Views folder. Then create a view inside this folder named Edit.aspx.
-
Correct!
- B. Add a folder named EditCustomer to the Views folder. Then create a view inside this folder named Catalog.aspx.
-
Incorrect.
You updated the web.config file with the HTTP run-time value required to display an alternative version of the site. You need to ensure that the correct page displays to the users. Which code segment should you use to update the controller?
- A. If (Request.|sTabletDevice)
-
Incorrect.
- B. If (Request.Browser.|sBrowser("Mobi|e"))
-
Incorrect.
- C. If (Request.UserAgent["Tablet"])
-
Incorrect.
- D. If (Request.Browser.|sMobileDevice)
-
Correct!
You need to implement client-side animations according to the business requirements. Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
- A. $("body h1:nth-child(1)").fadeIn(1000);
-
Incorrect.
- B. $("body h1:nth-child(1)").fadeOut(1000);
-
Correct!
- D. $("body h1:nth-child(1)").animate({ opacity: 1 });
-
Incorrect.
You need to implement client-side animations according to the business requirements. Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
- A. $ ("hl: first") .animate ({ opacity: 0});
-
Correct!
- B. $("hl:first").fade|n(lOOO);
-
Incorrect.
- C. $("hl:first").animate({opacity: 1});
-
Incorrect.
- D. $("hl:first").fadeOut(lOOO);
-
Correct!
You need to configure session storage in the web.config file to meet the technical requirements for scalability. Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.)
You need to ensure that developers can connect to a Windows Azure role by using RDP. What should you do?
Tell Us About You:
- Home
- Practice Exam - Developing ASP.NET MVC Web Applications
Practice Exam - Developing ASP.NET MVC Web Applications
More Information:
- Learning Style: On Demand
- Learning Style: Practice Exam
- Difficulty: Beginner
- Course Duration: 1 Hour
- Course Info: Download PDF
- Certificate: See Sample
Contact a Learning Consultant
Need Training for 5 or More People?
Customized to your team's need:
- Annual Subscriptions
- Private Training
- Flexible Pricing
- Enterprise LMS
- Dedicated Customer Success Manager
Course Information