aiotestking uk

70-483 Exam Questions - Online Test


70-483 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. - (Topic 1) 

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: 

Use strongly typed members. 

Process Order objects in first-in-first-out order. 

Store values for each Order object. 

. Use zero-based indices. 

You need to use a collection type that meets the requirements. 

Which collection type should you use? 

A. Queue<T> 

B. SortedList 

C. LinkedList<T> 

D. HashTable 

E. Array<T> 

Answer:

Explanation: 

Queues are useful for storing messages in the order they were received for sequential processing. Objects stored in a Queue<T> are inserted at one end and removed from the other. http://msdn.microsoft.com/en-us/library/7977ey2c.aspx 

Q2. - (Topic 2) 

You are modifying an existing banking application. 

The application includes an Account class and a Customer class. The following code segment defines the classes. 

You populate a collection named customerCollection with Customer and Account objects by using the following code segment: 

You create a largeCustomerAccounts collection to store the Account objects by using the following code segment: 

Collection<Account> largeCustomerAccounts = new Collection<Account> (); 

All accounts with a Balance value greater than or equal to 1,000,000 must be tracked. 

You need to populate the largeCustomerAccounts collection with Account objects. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q3. - (Topic 2) 

You are evaluating a method that calculates loan interest- The application includes the following code segment. (Line numbers are included for reference only.) 

When the loanTerm value is 3 and the loanAmount value is 9750, the loanRate must be set to 8.25 percent. 

You need to adjust the loanRate value to meet the requirements. 

What should you do? 

A. Replace line 04 with the following code segment: decimal loanRate = 0.0325m; 

B. Replace line 17 with the following code segment: interestAmount = loanAmount * 0.0825m * loanTerm; 

C. Replace line 15 with the following code segment: loanRate = 0.0825m; 

D. Replace line 07 with the following code segment: loanRate = 0.0825m; 

Answer:

Q4. - (Topic 2) 

You need to write a method that retrieves data from a Microsoft Access 2013 database. The method must meet the following requirements: 

Be read-only. 

Be able to use the data before the entire data set is retrieved. 

Minimize the amount of system overhead and the amount of memory usage. 

Which type of object should you use in the method? 

A. DbDataReader 

B. DataContext 

C. unTyped DataSet 

D. DbDataAdapter 

Answer:

Explanation: DbDataReader Class 

Reads a forward-only stream of rows from a data source. 

Q5. - (Topic 2) 

You are creating a class library that will be used in a web application. You need to ensure that the class library assembly is strongly named. What should you do? 

A. Use assembly attributes. 

B. Use the csc.exe /target:Library option when building the application. 

C. Use the xsd.exe command-line tool. 

D. Use the EdmGen.exe command-line tool. 

Answer:

Explanation: The Windows Software Development Kit (SDK) provides several ways to sign an assembly with a strong name: 

* (A) Using assembly attributes to insert the strong name information in your code. You can use either the AssemblyKeyFileAttribute or the AssemblyKeyNameAttribute, depending on where the key file to be used is located. 

* Using the Assembly Linker (Al.exe) provided by the Windows SDK. 

* Using compiler options such /keyfile or /delaysign in C# and Visual Basic, or the /KEYFILE or /DELAYSIGN linker option in C++. (For information on delay signing, see Delay Signing an Assembly.) 

Q6. - (Topic 2) 

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

You need to ensure that the DoWork(Widget widget) method runs. 

With which code segment should you replace line 24? 

A. DoWork((Widget)o); 

B. DoWork(new Widget(o)); 

C. DoWork(o is Widget); 

D. DoWork((ItemBase)o); 

Answer:

Q7. - (Topic 1) 

You use the Task.Run() method to launch a long-running data processing operation. The data processing operation often fails in times of heavy network congestion. 

If the data processing operation fails, a second operation must clean up any results of the first operation. 

You need to ensure that the second operation is invoked only if the data processing operation throws an unhandled exception. 

What should you do? 

A. Create a TaskCompletionSource<T> object and call the TrySetException() method of the object. 

B. Create a task by calling the Task.ContinueWith() method. 

C. Examine the Task.Status property immediately after the call to the Task.Run() method. 

D. Create a task inside the existing Task.Run() method by using the AttachedToParent option. 

Answer:

Q8. - (Topic 2) 

You have the following code: 

You need to retrieve all of the numbers from the items variable that are greater than 80. Which code should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: Enumerable.Where<TSource> Method (IEnumerable<TSource>, 

Func<TSource, Boolean>) 

Filters a sequence of values based on a predicate. 

Example: 

List<string> fruits = 

new List<string> { "apple", "passionfruit", "banana", "mango", 

"orange", "blueberry", "grape", "strawberry" }; 

IEnumerable<string> query = fruits.Where(fruit => fruit.Length < 6); 

foreach (string fruit in query) 

Console.WriteLine(fruit); 

/* 

This code produces the following output: 

apple 

mango 

grape */ 

Q9. - (Topic 1) 

You are developing a C# application that includes a class named Product. The following code segment defines the Product class: 

You implement System.ComponentModel.DataAnnotations.IValidateableObject interface to provide a way to validate the Product object. 

The Product object has the following requirements: 

. The Id property must have a value greater than zero. 

. The Name property must have a value other than empty or null. You need to validate the Product object. Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q10. - (Topic 2) 

You are developing an application by using C#. The application includes a method named SendMessage. The SendMessage() method requires a string input. 

You need to replace "Hello" with "Goodbye" in the parameter that is passed to the SendMessage() method. 

Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B,C 

Explanation: * The first parameter should be Hello. 

* String.Replace Method (String, String) 

Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string. 

This method does not modify the value of the current instance. Instead, it returns a new string in which all occurrences of oldValue are replaced by newValue.