Microsoft PRO: Design & Develop Wndws Apps Using MS .NET Framework 4 - 70-518 Exam Practice Test
You are modifying an existing Windows Presentation Foundation (WPF) application that uses .NET Framework 4. The WPF application uses a wizard to capture data and insert the data into a database. The database includes one parent table and many child tables.
Inserting captured data in the database locks many database tables and delays application access.
You have the following requirements:
-
Reduce delays when saving datA.
--
Ensure that other application users are not blocked from reading datA. Ensure that captured data is available only after all child tables are updated.
You need to recommend an approach for inserting captured data into the database.
What should you recommend?
Inserting captured data in the database locks many database tables and delays application access.
You have the following requirements:
-
Reduce delays when saving datA.
--
Ensure that other application users are not blocked from reading datA. Ensure that captured data is available only after all child tables are updated.
You need to recommend an approach for inserting captured data into the database.
What should you recommend?
Correct Answer: A
Vote an answer
You are designing a Windows Presentation Foundation (WPF) application.
The application calls methods that perform long-running computational tasks.
You need to recommend an approach for ensuring that the application remains responsive
while the tasks are executing What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
The application calls methods that perform long-running computational tasks.
You need to recommend an approach for ensuring that the application remains responsive
while the tasks are executing What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Correct Answer: A,B
Vote an answer
You are designing a Windows application by using Microsoft .NET Framework 4.
Remote users have limited network connectivity. Users will not have write permissions to
the local file system.
You plan to design the error logging strategy for the application.
You need to ensure that the application can collect error information. You also need to
ensure that the errors can be analyzed from a centralized location. What should you do?
Remote users have limited network connectivity. Users will not have write permissions to
the local file system.
You plan to design the error logging strategy for the application.
You need to ensure that the application can collect error information. You also need to
ensure that the errors can be analyzed from a centralized location. What should you do?
Correct Answer: A
Vote an answer
You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The business logic layer of the application is implemented by using Windows Communication Foundation (WCF).
You create a duplex bidirectional WCF service that contains a single operation. The service operation sends the result back to the client application by using a two-way callback operation.
You plan to design a service interaction strategy.
You need to ensure that deadlocks are prevented.
What should you do?
The business logic layer of the application is implemented by using Windows Communication Foundation (WCF).
You create a duplex bidirectional WCF service that contains a single operation. The service operation sends the result back to the client application by using a two-way callback operation.
You plan to design a service interaction strategy.
You need to ensure that deadlocks are prevented.
What should you do?
Correct Answer: D
Vote an answer
You are designing a Windows Presentation Foundation (WPF) application.
The WPF application must run against either Microsoft SQL Server 2008 or a third-party
database system without duplicating data access logiC.
You need to recommend a data access technology.
What should you recommend?
The WPF application must run against either Microsoft SQL Server 2008 or a third-party
database system without duplicating data access logiC.
You need to recommend a data access technology.
What should you recommend?
Correct Answer: B
Vote an answer
You are reviewing multiple Windows Presentation Foundation (WPF) applications that capture postal addresses. The WPF applications have different appearances and functionality. Each WPF application uses a different control to visualize the captured addresses.
You plan to modify all WPF applications to allow developers to visualize addresses by using a common template.
You need to recommend an approach for standardizing the visualization of captured addresses.
What should you recommend?
You plan to modify all WPF applications to allow developers to visualize addresses by using a common template.
You need to recommend an approach for standardizing the visualization of captured addresses.
What should you recommend?
Correct Answer: D
Vote an answer
You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application is used mostly in a disconnected scenario. The application requires offline data from a Microsoft SQL Server 2008 database. When the application connects to the network, data will be modified and synchronized.
You need to ensure that the application does not access the database server directly to synchronize data when online.
Which technology should you use?
The application is used mostly in a disconnected scenario. The application requires offline data from a Microsoft SQL Server 2008 database. When the application connects to the network, data will be modified and synchronized.
You need to ensure that the application does not access the database server directly to synchronize data when online.
Which technology should you use?
Correct Answer: C
Vote an answer
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
You create a control named HelpViewer to view the Help documentation of the application. The HelpViewer control must be available to all windows in the application.
You need to ensure that the application allows users to perform the following tasks:
- Bookmark their location in the documentation and return to the bookmark from any
window.
- Hide the HelpViewer control.
- Dock the HelpViewer control.
You create a main window as a base class.
What should you do next?
You create a control named HelpViewer to view the Help documentation of the application. The HelpViewer control must be available to all windows in the application.
You need to ensure that the application allows users to perform the following tasks:
- Bookmark their location in the documentation and return to the bookmark from any
window.
- Hide the HelpViewer control.
- Dock the HelpViewer control.
You create a main window as a base class.
What should you do next?
Correct Answer: B
Vote an answer
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
You create a control named HelpViewer to view the Help documentation of the application. The HelpViewer control must be available to all windows in the application.
You need to ensure that the application allows users to perform the following tasks:
- Bookmark their location in the documentation and return to the bookmark from any
window.
- Hide the HelpViewer control.
- Dock the HelpViewer control.
You create a main window as a base class.
What should you do next?
You create a control named HelpViewer to view the Help documentation of the application. The HelpViewer control must be available to all windows in the application.
You need to ensure that the application allows users to perform the following tasks:
- Bookmark their location in the documentation and return to the bookmark from any
window.
- Hide the HelpViewer control.
- Dock the HelpViewer control.
You create a main window as a base class.
What should you do next?
Correct Answer: B
Vote an answer
You are designing a Windows Presentation Foundation (WPF) application by using
Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application will consist of a user interface (UI) tier and a middle tier. The middle tier will
be implemented by using Windows Communication Foundation (WCF).
You plan to design the exception handling strategy for the application. Each method in the middle tier will contain the following catch block. Catch e AsArgumentNullException.
Throw e
When testing the application, you discover that all ArgumentNullExceptions that occur in
the middle tier do not contain accurate stack trace information.
What should you do?
Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application will consist of a user interface (UI) tier and a middle tier. The middle tier will
be implemented by using Windows Communication Foundation (WCF).
You plan to design the exception handling strategy for the application. Each method in the middle tier will contain the following catch block. Catch e AsArgumentNullException.
Throw e
When testing the application, you discover that all ArgumentNullExceptions that occur in
the middle tier do not contain accurate stack trace information.
What should you do?
Correct Answer: B
Vote an answer