Which class should you use?
You are an enterprise application developer. You are developing a distributed application that contains a business object. The client applications must be able to access the business object from another process. The business object implementation must minimize serialization. You need to extend a class to implement the business object.
Which class should you use?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
The application performs multiple read/write operations to the file system by using asynchronous delegate
invocation.
You discover that the read/write operations are abruptly terminated when the application exits. The files
either remain open or are corrupted.
You need to ensure the application completes all read/write operations successfully before it exits.
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. You plan to deploy the application.
The .NET Framework 3.5 is not installed on all client computers.
You need to deploy the application only on client computers that have the .NET Framework 3.5 installed.
What should you do?
Which code segment should you use?
You are creating a Windows Forms application that has the print functionality by using the .NET Framework 3.5. You implement the PrintPage page event for the form. You associate an instance of the PrintDocument control along with an instance of the PrintPreviewDialog control named prevDialog1. You want to set the
default size of the PrintPreviewDialog class to full screen. You need to provide a print preview for the user by adding a code segment to the Click event of the button on the form. Which code segment should you use?
Which code segment should you use?
You are an enterprise application developer. You create an application to provide an enterprise- wide barcode printing solution. You are developing a component that contains a method named InitializePrinter. The method will call a private function named IsPrinterLicensed to verify the license of the printer for the application. You need to ensure that the exceptions raised by the IsPrinterLicensed function bubble up to the application that calls the InitializePrinter method.
You
also need to ensure that the exceptions contain contextual information. Which code segment should you use?
Which set of commands should you insert at line 02?
You are creating a Windows application by using the .NET Framework 3.5.
You create an installer package that deploys the following elements:
The PageLayout.exe tool
The ImageImporter.exe tool
A shared DLL named Graphics.dll
Resource files
You use the NGen Windows service and write the script package commands in the following manner.
(Line numbers are included for reference only.)
01 ngen queue pause
03 ngen executequeueditems 1
04 ngen queue continue
You need to ensure that the following installation requirements are met:
The just-in-time (JIT) compilation of the PageLayout.exe tool is completed during installation.
The Graphics.dll file is installed to the global assembly cache.
The script package commands are placed in a sequence for precompilation of the ImageImporter.exe tool
after installation.
Conflicts between the installer package and the NGen Windows service are avoided during installation.
The script package commands are arranged in the sequence of their execution.
Which set of commands should you insert at line 02?
What should you do?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application includes a class that contains several public methods that modify the object state.
Object state is encapsulated in private data members. You need to ensure that your unit tests meet the following requirements:
– Call public methods.
– Validate the expected behavior by checking the values of private data members.
– Fail to compromise object security or encapsulation.
What should you do?
What should you do?
You create Windows Forms applications by using the .NET Framework 3.5. You plan to use the Windows Installer to deploy a new application. The application must meet the following requirements:
* Support deployment to 32-bit and 64-bit operating systems.
* Use the 64-bit Program Files folder when deployed to 64-bit platforms.
You need to ensure that the application is deployed appropriately.What should you do?
Which monitoring mechanism should you use?
You are an enterprise application developer. You are designing a monitoring mechanism for an enterprise application. You need to ensure that the monitoring mechanism meets the following requirements: Logs errors and warningsConfigures source for eventsEnables logging for particular countersTraces the execution path of a process through multiple physical tiers.
Which monitoring mechanism should you use?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
An existing application uses functionality provided by an unmanaged dynamic-link library (DLL) to validate
user inputs. The application contains a wrapper class that uses Platform Invoke to access the required
DLL functions.
The application has the following deployment and security requirements:
ClickOnce deployment is used to publish the application to an Internet Web site.
The application is available online only.
The application does not require protected storage.
Users can access the application without requiring the elevated permission.
You need to ensure that the deployment and security requirements are met without affecting the
application validation performance.
What should you do?