PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you use?

You are implementing a method named ProcessFile that retrieves data files from web
servers and FTP servers. The ProcessFile () method has the following method signature:
Public void ProcessFile(Guid dataFileld, string dataFileUri)
Each time the ProcessFile() method is called, it must retrieve a unique data file and then
save the data file to disk.

You need to complete the implementation of the ProcessFile() method. Which code segment
should you use?

How should you complete the relevant code?

DRAG DROP
You are developing a C# application. The application includes a class named Rate. The
following code segment implements the Rate class:

You define a collection of rates named rateCollection by using the following code segment:
Collection<Rate> rateCollection = new Collection<Rate>() ;
The application receives an XML file that contains rate information in the following format:

You need to parse the XML file and populate the rateCollection collection with Rate objects.
How should you complete the relevant code? (To answer, drag the appropriate code
segments to the correct locations in the answer area. Each code segment 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 two sets of method signatures can you use to achieve this goal?

You are developing an application that will manage customer records. The application
includes a method named FindCustomer.

Users must be able to locate customer records by using the customer identifier or customer
name.
You need to implement the FindCustomer() method to meet the requirement.
Which two sets of method signatures can you use to achieve this goal? (Each correct
answer presents a complete solution. Choose two.)

Which code segment should you use?

You are modifying an existing application.
The application includes a Loan class and a Customer class. The following code segment
defines the classes.

You populate a collection named customer-Collection with Customer and Loan objects by
using the following code segment:

You create a largeCustomerLoans collection to store the Loan objects by using the following
code segment:
Collection<Loan> largeCustomerLoans = new Collection<Loan>();
All loans with an Amount value greater than or equal to 4000 must be tracked.
You need to populate the largeCustomerLoans collection with Loan objects.
Which code segment should you use?

Which code segment should you insert at line 05?

You are developing a Windows Store app. The app includes a handler for the datarequested event.
A portion of the code for the event handler is shown in the following code segment:

The app must meet the following requirements:
• The app must share an order tracking link with target apps.
• The app must share URI-type data only.
You need to ensure that the app meets the requirements.
Which code segment should you insert at line 05?