PrepAway - Latest Free Exam Questions & Answers

Author: admin

What should you do?

You are creating a custom exception class named ProductDoesNotExistException so that custom exception
messages are displayed in a new application when the product specified by users is unavailable.
This custom exception class will take the ProductID as an argument to its constructor and expose this value through the ProductID.
You are now in the process of creating a method named UpdateProduct.
This method will be used to generate and manage the ProductDoesNotExistException exception if the ProductID variable contains the value 0.
You need to ensure that use the appropriate code for the UpdateProduct method.
What should you do?

Which two actions should you perform?

You are defining a class named Certkiller Class that contains several child objects.
Certkiller Class contains a method named ProcessChildren that performs actions on the child objects.
Certkiller Class objects will be serializable.
You need to ensure that the ProcessChildren method is executed after the Certkiller Class object and all its child objects are reconstructed.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What should you do to achieve your goal in these circumstances?

You work as the application developer at Domain.com. You create a new class named User.
The User class contains this code segment:
public class User {
string userId, userName, jobTitleName;
public string GetName() { return userName;
}
public string GetTitle() { return jobTitleName;
}
You want to expose the User class to COM in a type library.
You also want the COM interface to facilitate forward-compatibility across new versions of the User class.
What should you do to achieve your goal in these circumstances?

What should you do?

You are developing a large .NET Framework 2.0 application that is required to provide support for culture-specific information.
You are required to parse a date and time string generated for a custom culture and to help the success of the parse operation
you designate parse patterns that tare likely to succeed.
You must additionally prevent the operation from failing whilst you select the method to use for parsing the string.
What should you do?

What should you do?

You are developing a .NET Framework 2.0 Windows Forms application that will be used by several
Domain.com employees in several countries on a workstation used as collateral.
The application is required to fully support customization of the user interface based on the user’s preferences
like the language currency and date and time formats.
You are required to write code that will compare the name of two employees which are stored in variables named employee1 and employee2.
You are required to ensure correct comparisons whilst taking care of the regional settings selected.
What should you do?

What should you do?

You create the following variable in your code:
DateTime dateValue;
You additionally write code to store time in the local time to the dateValue variable.
You are required to serialize the value of the dateValue variable, if you serialize the DateTime object in one time zone and deserialized in a different time zone,
the local time represented as a result should be automatically adjusted to the second time zone.
You are to decide which expression to use.
What should you do?

What should you do?

You need to provide locale-specific services to employees with the application.
You must additionally ensure that you use a unique country identifier that can be used as a key
to access a database record that contains specific information about a country whilst you use the minimum storage for storing the key.
What should you do?

What should you do?

You are developing a .NET Framework 2.0 Windows Forms application on Certkiller -WS554.
The application must provide support for multiple languages and regional differences.
You are required to define a custom culture based on an existing culture and region.
An administrative user will install the custom culture on the end user’s computer prior to the applications deployment
and you are required to select which class to use.
What should you do?

What should you do?

You are developing a .NET Framework 2.0 Windows Forms application on Certkiller -WS554.
The Windows Forms application will be used by regional offices of Domain.com in various countries.
You are required to customize the application so that the language, calendar and cultural conventions are changed based on the user’s operating system settings.
You additionally are required to identify the .Net Framework class that should be used for this requirement.
What should you do?


Page 917 of 1,478« First...102030...915916917918919...930940950...Last »