70-483 Exam - Programming in C#

certleader.com

Q1. DRAG DROP - (Topic 2) 

You have an application that uses paging. Each page displays 10 items from a list. 

You need to display the third page. (Develop the solution by selecting and ordering the required code snippets. You may not need all of the code snippets.) 

Answer:  

Q2. - (Topic 1) 

You are developing an application by using C#. 

The application includes an object that performs a long running process. 

You need to ensure that the garbage collector does not release the object's resources until 

the process completes. 

Which garbage collector method should you use? 

A. ReRegisterForFinalize() 

B. SuppressFinalize() 

C. Collect() 

D. WaitForFullGCApproach() 

Answer:

Q3. DRAG DROP - (Topic 1) 

You are creating a class named Data that includes a dictionary object named _data. 

You need to allow the garbage collection process to collect the references of the _data object. 

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.) 

Answer:  

Q4. - (Topic 2) 

You are creating a class named Loan. 

The Loan class must meet the following requirements: . Include a member that represents the rate for a Loan instance. . Allow external code to assign a value to the rate member. 

Restrict the range of values that can be assigned to the rate member. 

You need to implement the rate member to meet the requirements. 

In which form should you implement the rate member? 

A. public static property 

B. public property 

C. public static field 

D. protected field 

Answer:

Q5. - (Topic 2) 

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.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B,D 

Q6. - (Topic 1) 

You are implementing a method named FloorTemperature that performs conversions between value types and reference types. The following code segment implements the method. (Line numbers are included for reference only.) 

You need to ensure that the application does not throw exceptions on invalid conversions. Which code segment should you insert at line 04? 

A. int result = (int)degreesRef; 

B. int result = (int)(double)degreesRef; 

C. int result = degreesRef; 

D. int result = (int)(float)degreesRef; 

Answer:

Q7. DRAG DROP - (Topic 1) 

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.) 

Answer:  

Q8. - (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:

Q9. DRAG DROP - (Topic 1) 

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.) 

Answer:  

Q10. DRAG DROP - (Topic 1) 

You are developing an application by using C#. The application includes an array of decimal values named loanAmounts. You are developing a LINQ query to return the values from the array. 

The query must return decimal values that are evenly divisible by two. The values must be sorted from the lowest value to the highest value. 

You need to ensure that the query correctly returns the decimal values. 

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.) 

Answer: