Which keyword should you use?
You are developing a class named Account that will be used by several applications.
The applications that will consume the Account class will make asynchronous calls to the Account
class to execute several different methods.
You need to ensure that only one call to the methods is executed at a time.
Which keyword should you use?
Which code segment should you use?
You are developing an application by using C#. The application will write events to an event log. You
plan to deploy the application to a server.
You create an event source named MySource and a custom log named MyLog on the server.
You need to write events to the custom log.
Which code segment should you use?
You need to ensure that the passwords are stored in the database by using a hash algorithm, Which cryptographi
You plan to store passwords in a Windows Azure SQL Database database.
You need to ensure that the passwords are stored in the database by using a hash algorithm,
Which cryptographic algorithm should you use?
Which code segment should you use?
You create the following class that will be serialized:
HOTSPOT
You have an existing order processing system that accepts .xml files,
The following code shows an example of a properly formatted order in XML:
You create the following class that will be serialized:
For each of the following properties, select Yes if the property is serialized according to the defined
schem
a) Otherwise, select No.
Which code should you use?
You need to write a console application that meets the following requirements:
If the application is compiled in Debug mode, the console output must display Entering debug mode.
If the application is compiled in Release mode, the console output must display Entering release
mode.
Which code should you use?
You need to ensure that each value is appended to the Value property in the order that the Modify methods are
You have the following class (line numbers are included for reference only):
ServiceProxy is a proxy for a web service. Calls to the Update method can take up to five seconds.
The Test class is the only class the uses Class1.
You run the Execute method three times, and you receive the following results:
213
312
231
You need to ensure that each value is appended to the Value property in the order that the Modify
methods are invoked.
What should you do?
How should you complete the relevant code?
DRAG DROP
You are adding a method to an existing application. The method uses an integer named statusCode
as an input parameter and returns the status code as a string.
The method must meet the following requirements:
Return “Error” if the statusCode is 0.
Return “Success” if the statusCode is 1.
Return “Unauthorized” if the statusCode is any value other than 0 or l.
You need to implement the method to meet the requirements.
How should you complete the relevant code? (To answer, drag the appropriate statements to the
correct locations in the answer are
a. Each statement may be used once, more than once, or not at all. You may need to drag the split
bar between panes or scroll to view content.)
Which code segment should you insert at line 05?
You are developing a method named GetHash that will return a hash value for a file. The method
includes the following code. (Line numbers are included for reference only.)
You need to return the cryptographic hash of the bytes contained in the fileBytes variable.
Which code segment should you insert at line 05?
Which two code segments should you use?
You are developing an application that includes the following code segment:
You need to implement the Open() method of each interface in a derived class named UseResources
and call the Open() method of each interface.
Which two code segments should you use? (Each correct answer presents part of the solution.
Choose two.)