PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-483 (update July 21th, 2017)

Exam 70-483: Programming in C# (update July 21th, 2017)

Which collection type should you use?

You are developing an application that includes a class named Order. The application will store a collection of
Order objects.
The collection must meet the following requirements:
Internally store a key and a value for each collection item.
Provide objects to iterators in ascending order based on the key.Ensure that item are accessible by zero-based index or by key.
You need to use a collection type that meets the requirements.
Which collection type should you use?

Which code segment should you insert at line 20?

You are developing an application. The application converts a Location object to a string by using a methodnamed WriteObject.
The WriteObject() method accepts two parameters, a Location object and an XmlObjectSerializer object.
The application includes the following code. (Line numbers are included for reference only.)

You need to serialize the Location object as XML.
Which code segment should you insert at line 20?

How should you complete the relevant code?

DRAG DROP
You are developing an application that includes a class named Customer.
The application will output the Customer class as a structured XML document by using the following code
segment:

You need to ensure that the Customer class will serialize to XML.
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.)
Select and Place:

Which code segment should you insert at line 04?

An application will upload data by using HTML form-based encoding. The application uses a method named
SendMessage.
The SendMessage() method includes the following code. (Line numbers are included for reference only.)

The receiving URL accepts parameters as form-encoded values.
You need to send the values intA and intB as form-encoded values named a and b, respectively.
Which code segment should you insert at line 04?

Which two actions should you perform?

You are developing an application that includes the following code segment. (Line numbers are included for
reference only.)

The GetCustomers() method must meet the following requirements:
Connect to a Microsoft SQL Server database.
Populate Customer objects with data from the database.
Return an IEnumerable<Customer> collection that contains the populated Customer objects.
You need to meet the requirements.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

How should you complete the relevant code?

DRAG DROP
You are developing a class named ExtensionMethods.
You need to ensure that the ExtensionMethods class implements the IsEmail() extension method on string
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.)
Select and Place:

Which code segment should you insert at line 07?

You are developing an application by using C#. The application includes the following code segment. (Line
numbers are included for reference only.)

The DoWork() method must throw an InvalidCastException exception if the obj object is not of type
IDataContainer when accessing the Data property.
You need to meet the requirements. Which code segment should you insert at line 07?

Which four code segments should you use in sequence?

DRAG DROP
You are developing an application by using C#. The application will output the text string “First Line” followed by
the text string “Second Line”.You need to ensure that an empty line separates the text strings.
Which four code segments should you use in sequence? (To answer, move the appropriate code segments to
the answer area and arrange them in the correct order.)
Select and Place:


Page 19 of 24« First...10...1718192021...Last »