[Free] New Updated (October) Microsoft 70-483 Real Exam 151-160

Ensurepass

 

QUESTION 151

You are modifying an application that processes loans. The following code defines the Loan class. (Line numbers are included for reference only.)

 

clip_image002

 

Loans are restricted to a maximum term of 10 years. The application must send a notification message if a loan request exceeds 10 years.

 

You need to implement the notification mechanism.

 

Which two actions should you perform? (Each correct answer presents part of the solution.

Choose two.)

 

clip_image003

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

F.

Option F

 

Correct Answer: BD

Explanation:

B: Raise the event.

D: Declare the event handler.

 

 

 

 

 

QUESTION 152

An application contains code that measures reaction times. The code runs the timer on a thread separate from the user interface. The application includes the following code. (Line numbers are included for reference only.)

 

clip_image005

 

You need to ensure that the application cancels the timer when the user presses the Enter key.

 

Which code segment should you insert at line 14?

 

A.

tokenSource.Token.Register( () => tokenSource.Cancel() );

B.

tokenSource.Cancel();

C.

tokenSource.IsCancellationRequested = true;

D.

tokenSource.Dispose();

 

Correct Answer: B

 

 

QUESTION 153

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

 

clip_image006

 

You need to ensure that code generated by the GenerateCode() method represents a class that can be accessed by all objects in its application domain.

 

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

 

clip_image007

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: AC

 

 

QUESTION 154

You are developing an application that will process personnel records. The application must encrypt highly sensitive data. You need to ensure that the application uses the strongest available encryption. Which class should you use?

 

A.

System.Security.Cryptography.DES

B.

System.Security.Cryptography.Aes

C.

System.Security.Cryptography.TripleDES

D.

System.Security.Cryptography.RC2

 

Correct Answer: B

 

 

QUESTION 155

You are developing an application that uses a .config file.

 

The relevant portion of the .config file is shown as follows:

 

clip_image008

 

You need to ensure that diagnostic data for the application writes to the event log by using the configuration specified in the .config file. What should you include in the application code?

 

clip_image010

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: C

 

 

QUESTION 156

You are developing an application that includes a class named Employee and a generic list of employees. The following code segment declares the list of employees:

 

List<Employee> employeesList = new List<Employee>();

 

You populate the employeesList object with several hundred Employee objects.

 

The application must display the data for five Employee objects at a time.

 

You need to create a method that will return the correct number of Employee objects.

 

Which code segment should you use?

 

clip_image012

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

QUESTION 157

DRAG DROP

You create an assembly named Assembly1.dll. You need to ensure that Assembly1.dll can be deployed to the global assembly cache (GAC). Which commands should you run? (To answer, drag the appropriate programs to the correct locations. Each program 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.)

 

clip_image013

 

Correct Answer:

clip_image014

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 158

DRAG DROP

You have an application that accesses a Microsoft SQL Server database.

 

The database contains a stored procedure named Proc1. Procl accesses several rows of data across multiple tables.

 

You need to ensure that after Proc1 executes, the database is left in a consistent state. While Proc1 executes, no other operation can modify data already read or changed by Proc1. (Develop the solution by selecting and ordering the required code snippets. You may not need all of the code snippets.)

 

clip_image016

 

Correct Answer:

clip_image018

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 159

DRAG DROP

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

 

clip_image020

 

Correct Answer:

clip_image022

 

 

 

 

 

 

QUESTION 160

DRAG DROP

You have a method that will evaluate a parameter of type Int32 named Status.

 

You need to ensure that the method meets the following requirements:

 

clip_image024If Status is set to Active, the method must return 1.

clip_image024[1]If Status is set to Inactive, the method must return 0.

clip_image024[2]If Status is any other value, the method must return -1.

 

What should you do? (To answer, drag the appropriate statement to the correct location in the answer area. Each statement 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.)

 

clip_image025

 

Correct Answer:

clip_image026

Free VCE & PDF File for Microsoft 70-483 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…