Microsoft 70-492 - Upgrade your MCPD: Web Developer 4 to MCSD: Web Applications Exam
Page: 2 / 26
Total 129 questions
Question #6 (Topic: Topic 1)
You are developing an ASP.NET MVC web application that includes the following method.
[Microsoft-70-492-6.0/Microsoft-70-492-9_2.png]
You need to test the AccountBalance method.
Which unit test should you use?
[Microsoft-70-492-6.0/Microsoft-70-492-9_3.png]
[Microsoft-70-492-6.0/Microsoft-70-492-9_2.png]
You need to test the AccountBalance method.
Which unit test should you use?
[Microsoft-70-492-6.0/Microsoft-70-492-9_3.png]
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Question #7 (Topic: Topic 1)
You are developing an ASP.NET MVC application by using Visual Studio 2012.
The application throws and handles exceptions when it runs.
You need to examine the state of the application when exceptions are thrown.
What should you do?
The application throws and handles exceptions when it runs.
You need to examine the state of the application when exceptions are thrown.
What should you do?
A. From the Debug menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.
B. From the DEBUG menu in Visual Studio 2012, select Attach to Process. Select the IIS process.
C. From the Debug menu in Visual Studio 2012, select Exceptions. Disable the User- unhandled check box for Common Language Runtime Exceptions.
D. From the TOOLS menu in Visual Studio 2012, click Customize. Click Commands tab and select Debug.
Answer: A
Question #8 (Topic: Topic 1)
You are developing an ASP.NET MVC web application in Visual Studio 2012.
The application has a model named ReservationLocation that contains properties named
City and State.
The view that displays reservations has a single text box named loc for entering the
location information. The location is entered as city, state.
There are action methods that have ReservationLocation as a parameter type. You need to
ensure that the City and State properties are correctly populated.
How should you implement model binding for the ReservationLocation type? (To answer,
drag the appropriate code segment to the correct location or locations. Each code segment
may be used once, more than once, or not at all. You may need to drag the split bar
between panes or scroll to view content.)
[Microsoft-70-492-6.0/Microsoft-70-492-11_2.png]
The application has a model named ReservationLocation that contains properties named
City and State.
The view that displays reservations has a single text box named loc for entering the
location information. The location is entered as city, state.
There are action methods that have ReservationLocation as a parameter type. You need to
ensure that the City and State properties are correctly populated.
How should you implement model binding for the ReservationLocation type? (To answer,
drag the appropriate code segment to the correct location or locations. Each code segment
may be used once, more than once, or not at all. You may need to drag the split bar
between panes or scroll to view content.)
[Microsoft-70-492-6.0/Microsoft-70-492-11_2.png]
Answer: [Microsoft-70-492-6.0/Microsoft-70-492-12_2.png]
Question #9 (Topic: Topic 1)
You are developing an ASP.NET MVC web application in Visual Studio 2012. The
application requires several thousand content files. All content is hosted on the same IIS
instance as the application.
You detect performance issues when the application starts.
You need to resolve the performance issues.
What should you do?
application requires several thousand content files. All content is hosted on the same IIS
instance as the application.
You detect performance issues when the application starts.
You need to resolve the performance issues.
What should you do?
A. Implement HTTP caching in the ASP.NET MVC controllers.
B. Combine the content files by using ASP.NET MVC bundling.
C. Install a second IIS instance.
D. Move the content to a Windows Azure CDN.
Answer: B
Question #10 (Topic: Topic 1)
You are developing an ASP.NET MVC news aggregation application that will be deployed
to servers on multiple networks.
The application must be compatible with multiple browsers. A user can search the website
for news articles. You must track the page number that the user is viewing in search
results.
You need to program the location for storing state information about the user's search.
What should you do?
to servers on multiple networks.
The application must be compatible with multiple browsers. A user can search the website
for news articles. You must track the page number that the user is viewing in search
results.
You need to program the location for storing state information about the user's search.
What should you do?
A. Store search results and page index in Session.
B. Use Application state to store search terms and page index.
C. Use QueryString to store search terms and page index.
D. Store search results and page index in TempData
Answer: C