PrepAway - Latest Free Exam Questions & Answers

Category: 70-483 (v.3)

Exam 70-483: Programming in C# (update March 8th, 2016)

Which code segment should you insert at line 08?

You are developing an application that uses the Microsoft ADO.NET Entity Framework to retrieve
order information from a Microsoft SQL Server database. The application includes the following
code. (Line numbers are included for reference only.)

The application must meet the following requirements:
Return only orders that have an OrderDate value other than null.
Return only orders that were placed in the year specified in the year parameter.
You need to ensure that the application meets the requirements. Which code segment should you
insert at line 08?

Which code segment should you use?

You are creating an application that manages information about your company’s products. The
application includes a class named Product and a method named Save.
The Save() method must be strongly typed. It must allow only types inherited from the Product class
that use a constructor that accepts no parameters.
You need to implement the Save() method.
Which code segment should you use?

Which two actions should you perform?

You are creating a class named Employee. The class exposes a string property named EmployeeType.
The following code segment defines the Employee class. (Line numbers are included for reference
only.)

The EmployeeType property value must meet the following requirements:
The value must be accessed only by code within the Employee class or within a class derived from
the Employee class.
The value must be modified only by code within the Employee class.
You need to ensure that the implementation of the EmployeeType property meets the
requirements.
Which two actions should you perform? (Each correct answer represents part of the complete
solution. Choose two.)

Which three actions should you perform in sequence?

DRAG DROP
You are developing an application by using C#. The application will process several objects per
second.
You need to create a performance counter to analyze the object processing.
Which three actions should you perform in sequence? (To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.)

Which code segment should you use?

You are developing an application. The application calls a method that returns an array of integers
named customerIds. You define an integer variable named customerIdToRemove and assign a value
to it. You declare an array named filteredCustomerIds.
You have the following requirements.
Remove duplicate integers from the customerIds array.
Sort the array in order from the highest value to the lowest value.
Remove the integer value stored in the customerIdToRemove variable from the customerIds array.
You need to create a LINQ query to meet the requirements.
Which code segment should you use?

Which code segment should you use?

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?

You need to create a method that returns a list of valid customer IDs

DRAG DROP
You have a method named GetCustomerIDs that returns a list of integers. Each entry in the list
represents a customer ID that is retrieved from a list named Customers. The Customers list contains
1,000 rows.
Another developer creates a method named ValidateCustomer that accepts an integer parameter
and returns a Boolean value. ValidateCustomer returns true if the integer provided references a
valid customer. ValidateCustomer can take up to one second to run.
You need to create a method that returns a list of valid customer IDs. The code must execute in the
shortest amount of time.
What should you do? (Develop the solution by selecting and ordering the required code snippets.
You may not need all of the code snippets.)


Page 8 of 23« First...678910...20...Last »