Which class diagram should you design?
You are an enterprise application developer. You develop a banking application by using Microsoft Visual Studio .NET 2005 and .NET Framework 2.0. During the design phase of the application, you identify three entities named Bank, BankAccount, and Person. You need to design a class diagram so that the entities meet the following requirements:
* A BankAccount entity must belong to only one Bank entity.
* A Bank entity must contain several BankAccount entities.
* A BankAccount entity must have one or more Person entities as account holders.
* A Person entity must exist independent of BankAccount entities.
Which class diagram should you design?
What should you do?
You create a Windows application by using the .NET Framework 3.5.
The application connects to a Microsoft SQL Server 2008 database table named Customer to retrieve and
display customer information.
Users of the application view and modify data from the Customers table. You plan to use a DataAdapter
object and a DataSet object to retrieve data.
You need to select an appropriate concurrency strategy that maintains data integrity and scalability.
What should you do?
What should you do?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application includes two namespaces named Contoso.Security and Contoso.Log.
Classes in the Contoso.Security namespace will be distributed for use in a data access layer component.
Classes in the two namespaces will be distributed for use by other client components in the application.
Not all client components will use both the Contoso.Security and Contoso.Log classes.
You plan to design a strategy for component reuse. You need to ensure that unnecessary code is not distributed to any client application.
You also need to ensure that all necessary code is available to dependent components.
What should you do?
Which code segment should you insert at line 03?
You are creating a Windows application by using the .NET Framework 3.5. You create an instance of the BackgroundWorker component named backgroundWorker1 to asynchronously process time-consuming reports in the application. You write the following code segment in the application. (Line numbers are included
for reference only.)
01 private voidbackgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
02 {
03
04 }
You need to write a code segment that reports to the application when the background process detects any of the following actions:
* An exception is thrown.
* The process is cancelled.
* The process is successfully completed.
Which code segment should you insert at line 03?
What should you do?
You are an enterprise application developer. You are creating a set of three middle-tier Web services. Each Web service is deployed as a separate ASP.NET application. The Web services will include shared custom configuration settings. You are implementing an application configuration strategy. Your strategy must allow an administrator to do the following:
* Configure the default settings for all three Web services in a single XML file.
* Override any setting for any of the Web services.
You need to implement a component to store the custom configuration settings. You also need to ensure that the configuration settings can be read by using the minimum amount of development effort.
What should you do?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
You can use data manipulation operations on the entities stored in a database. You are designing a data
access layer for the application.
The database schema can change.
You need to ensure that the application is minimally affected by the changes made to the database
schema.
What should you do?
Which method should you use?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
You are deploying the application on your company network. The deployment must meet the following requirements:
– Supports post-installation rollback.
– Supports deployment through Active Directory Group Policy.
– Ensures that the application is added to the Start menu.
You need to identify a deployment method that meets the requirements by using the minimum amount of administrative effort.
Which method should you use?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5. You add a BackgroundWorker component to a Windows form to handle a time-consuming operation. You add a Cancel button to the form. You need to ensure that when the Cancel button is pressed, the background task is cancelled. What should you do?
Which class should you use?
You are an enterprise application developer. You are creating a component to load data from Microsoft SQL Server database tables into combo boxes. The retrieved data has a numeric ID column and a description column. You need to select a .NET class that allows you to load the data. You also need to ensure minimal effect on the database server performance.
Which class should you use?
Which data access technology should you use?
You create a Windows application by using the .NET Framework 3.5.
The application will connect to a Microsoft SQL Server 2008 database on the network. You are creating
the data access layer for the application.
The database schema will change regularly.
You need to ensure that the schema changes can be applied with minimum possible development effort.
Which data access technology should you use?