What should you do?
You are an enterprise application developer. You are designing a data access component to meet the following criteria:
The data access component provides data to several business components. The data access component contains methods that retrieve data. The methods retrieve data from a Microsoft SQL Server database.
The data is modified infrequently.
You need to ensure that the data access component provides current data to the business components.
You also need to minimize the number of requests sent to the SQL Server database for this data.
What should you do?
Which attribute should you place on the method?
You are developing a method to call a COM component. You need to use declarative security to explicitly request the runtime to perform a full stack walk. You must ensure that all callers have the required level of trust for COM interop before the callers execute your method.
Which attribute should you place on the method?
What should you do?
You create Microsoft Windows-based applications. You create an application that accesses data on a Microsoft SQL Server 2005 database. You write the following code segment. (Line numbers are included for reference only.)
01 private void LoadData()
02 {
04 cn.Open();
05 daProducts.Fill(ds);
06 daCategories.Fill(ds);
07 cn.Close();
09 }
The cn variable points to a SqlConnection object. The SqlConnection object will be opened almost every time this code segment executes. You need to complete this code segment to ensure that the application continues to run even if the SqlConnection object is open. You also need to ensure that the performance remains unaffected.
What should you do?
What should you do?
You are an enterprise application developer. You create a Web application to call the Web services of different trucking companies. The application retrieves transit times for different routes. You create Web service proxy classes by using the Wsdl.exe utility. You need to call different Web services concurrently. You also need to ensure that the application can continue performing other tasks while the Web services are being called. You need to achieve this by using the least amount of code possible. What should you do?
Which code segment should you use?
You are developing an auditing application to display the trusted ClickOnce applications that are installed on a computer. You need the auditing application to display the origin of each trusted application. Which code segment should you use?
What should you do?
You create Microsoft Windows-based applications. You are creating an application that will monitor sales data.
The application must meet the following requirements:
Users must be able to customize display settings and the amount of data to monitor. Users must be able to log on to any computer on the network to use the application. User settings must be retrieved based on the logged-on user from any computer on the network.
You need to decide where to store the user settings. What should you do?
Which two actions should you perform?
You are an enterprise application developer. You are creating a medical application that permits surgeons to review previous recordings of surgeries. The application must meet the following requirements:
Surgeons must be able to view several videos concurrently. Users send only necessary portions of the files across the network. Transmission of videos to the application might be interrupted.
Videos must play instantly.
Users must be able to fast-forward, reverse, pause, and stop the video.
You need to ensure the application meets these requirements. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which code segment should you choose?
You are developing a utility screen for a new client application. The utility screen displays a thermometer that conveys the current status of processes being carried out by the application. You need to draw a rectangle on the screen to serve as the background of the thermometer as shown in the exhibit. The rectangle must be filled with gradient shading. (Refer to the Exhibit.) Which code segment should you choose?
Which component members should you test?
You create Microsoft Windows-based applications. Two of your Windows-based applications require the use of graphical progress indicators. These indicators are based on bitmap files. Such a component is not available in the .NET Framework.
To facilitate the search for a component, you identify the following requirements:
Component exposes a property to set a bitmap file that is used for the progress bar. Component permits the use of at least two types of progress bars. These progress bars are named percent progress and numeric progress.
Component exposes a method to increment the progress bar.
You find a component that fulfills all the requirements. You create a new component that extends the original component and overrides the Increment method. The Windows-based applications might use either the original component or the extended component. You write a test project to test the component. You need to ensure that all the requirements are met. You want to achieve this goal by using the minimum amount of programming effort.
Which component members should you test?
Which diagram should you choose?
You are an enterprise application developer. You create an order processing application.
The application must meet the following requirements:
The order is scheduled for delivery if all products are available.
The order is back-ordered if any one product is not available.
The customer can cancel the back-ordered order.
The order is scheduled for delivery if the customer does not cancel it.
The order is closed after delivery.
You need to select the state diagram that translates the requirements. Which diagram should you choose?