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?
You are developing a .NET Framework 2.0 application that will be used to manipulate graphics files in GIF, JPG and PNG formats.
You are required to choose an appropriate data type to store graphic files whilst your solution must use the least amount of code.
What should you do?
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?
You write the code segment to do this:
You work as the application developer at Domain.com.
You have to create a new security policy for an application domain which must enforce the new Domain.com security policy.
You write the code segment to do this:
PolicyLevel policy = PolicyLevel.CreateAppDomainLevel();
PolicyStatement noTrustStatement =new PolicyStatement(policy.GetNamedPermissionSet(“Nothing”));
PolicyStatement fullTrustStatement =
new PolicyStatement(
policy.GetNamedPermissionSet(“FullTrust”));
You must now ensure that all loaded assemblies default to the Nothing permission set.
In addition to this, when an assembly comes from a trusted zone, your security policy must grant the assembly the FullTrust permission set. You must create the code groups to do this.
Choose the code segment which will achieve this objective.