1.
You need to ensure that dates and numbers are displayed correctly for each user based on location.
Which code segment should you add to line GL08 of the Global.asax file?
2.
You need to store Product, MainProduct, and SecondaryProduct instances that end users place in the shopping cart by using a collection. Which code segment should you use to initiate the collection?
3.
You need to read the content of the XML log file. Which code segment should you add to line LO04 of the Login.aspx.cs file?
4.
You need to implement the for loop of the Start() method contained in the Poller.cs file. Which code segments should you insert at line PO11 of the Poller.cs file? (Each correct answer presents part of the solution. Choose three.)
5.
Each order-processing step is a method that takes an Order object. Each method returns true if the step completes successfully or false if the step does not complete.
To support a custom set of steps specific to each client, the steps have been added to an event that is called
when an order is processed.
Vou need to ensure that the error property of the Order object is set to true if any method returns false.
With which code segment should you replace line OP48 in the OrderProcessor.es file?
6.
A BooleanSwitch instance has been created in the OrderProcessingSteps.es file to enable detailed logging during testing.
You need to ensure that the order-processing service logs all steps.
Which code segment should you add to the order-processing service' s configuration?
7.
The ProcessPayment step in the OrderProcessingSteps.es file uses a cornmand-line executable to process payments. The command-line executable accepts a credit card information string on its input stream, submits
the credit card charge, and then returns "Approved" if the charge is accepted.
You need to ensure that the ProcessPayment step returns true when a charge is approved and otherwise returns false.
With which code segment should you replace line OS26 in the OrderProcessingSteps.es file?
8.
You need to write a code segment that will add a string named strConn to the connection string section of the application configuration file. Which code segment should you use?
9.
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?
10.
You develop an application that appends text to existing text files. You need to write a code segment that enables the application to append text to a file named C:\MyFile.txt. The application must throw an exception if
the file does not exist. You need to ensure that the other applications can read but not modify the file. Which code segment should you use?