Home » [Free] Get all latest Microsoft 70-483 Actual Tests 191-200

[Free] Get all latest Microsoft 70-483 Actual Tests 191-200

Ensurepass

QUESTION 191

You are creating a class named Loan.

 

The Loan class must meet the following requirements:

 

clip_image002Include a member that represents the rate for a Loan instance.

clip_image002[1]Allow external code to assign a value to the rate member.

clip_image002[2]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

 

Correct Answer: B

 

 

QUESTION 192

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 the csc.exe /target:Library option when building the application.

B.

use the AL.exe command-line tool.

C.

use the aspnet_regiis.exe command-line tool.

D.

use the EdmGen.exe command-line tool.

 

Correct Answer: B

Explanation:

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

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

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

Note:

* A strong name consists of the assembly’s identity–its simple text name, version number, and culture information (if provided)–plus a public key and a digital signature. It is generated from an assembly file (the file that contains the assembly manifest, which in turn contains the names and hashes of all the files that make up the assembly), using the corresponding private key. Microsoft?Visual Studio?.NET and other development tools provided in the .NET Framework SDK can assign strong names to an assembly. Assemblies with the same strong name are expected to be identical.

 

 

QUESTION 193

You are creating a console application named App1.

 

App1 retrieves data from the Internet by using JavaScript Object Notation (JSON).

 

You are developing the following code segment (line numbers are included for reference only):

 

clip_image004

 

You need to ensure that the code validates the JSON string.

 

Which code should you insert at line 03?

 

clip_image005

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

Explanation:

The JavaScriptSerializer Class Provides serialization and deserialization functionality for AJAX-enabled applications.

 

The JavaScriptSerializer class is used internally by the asynchronous communication layer to serialize and deserialize the data that is passed between the browser and the Web server. You cannot access that instance of the serializer. However, this class exposes a public API. Therefore, you can use the class when you want to work with JavaScript Object Notation (JSON) in managed code.

 

 

QUESTION 194

You are developing an application that includes methods named EvaluateLoan, ProcessLoan, and FundLoan. The application defines build configurations named TRIAL, BASIC, and ADVANCED.

 

You have the following requirements:

 

clip_image002[3]The TRIAL build configuration must run only the EvaluateLoan() method.

clip_image002[4]The BASIC build configuration must run all three methods.

clip_image002[5]The ADVANCED build configuration must run only the EvaluateLoan() and ProcessLoan() methods.

 

You need to meet the requirements. Which code segment should you use?

 

clip_image006

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: C

 

 

QUESTION 195

You are creating an application that processes a list of numbers.

 

The application must define a method that queries the list and displays a subset of the numbers to the user. The method must not update the list.

 

You need to create an extendable query by using LINQ.

 

What should you do?

 

clip_image008

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: C

 

 

 

 

 

QUESTION 196

You are developing an application that will be deployed to multiple computers. You set the assembly name. You need to create a unique identity for the application assembly. Which two assembly identity attributes should you include in the source code? (Each correct answer presents part of the solution. Choose two.)

 

A.

AssemblyDelaySignAttribute

B.

AssemblyCompanyAttribute

C.

AssemblyProductAttribute

D.

AssemblyCultureAttribute

E.

AssemblyVersionAttribute

 

Correct Answer: DE

Explanation:

The AssemblyName object contains information about an assembly, which you can use to bind to that assembly. An assembly’s identity consists of the following:

 

Simple name.

Version number.

Cryptographic key pair.

Supported culture.

 

D: AssemblyCultureAttribute

Specifies which culture the assembly supports.

The attribute is used by compilers to distinguish between a main assembly and a satellite assembly. A main assembly contains code and the neutral culture’s resources. A satellite assembly contains only resources for a particular culture, as in [assembly:AssemblyCultureAttribute(“de”)]

 

E: AssemblyVersionAttribute

Specifies the version of the assembly being attributed. The assembly version number is part of an assembly’s identity and plays a key part in binding to the assembly and in version policy.

 

 

QUESTION 197

You are developing an application that contains a class named TheaterCustomer and a method named ProcessTheaterCustomer. The ProcessTheaterCustomer() method accepts a TheaterCustomer object as the input parameter.

 

You have the following requirements:

 

clip_image002[6]Store the TheaterCustomer objects in a collection.

clip_image002[7]Ensure that the ProcessTheaterCustomer() method processes the TheaterCustomer objects in the order in which they are placed into the collection.

 

You need to meet the requirements.

 

What should you do?

 

A.

Create a System.Collections.Stack collection. Use the Push() method to add TheaterCustomer objects to the collection, Use the Peek() method to pass the objects to the ProcessTheaterCustomer() method.

B.

Create a System.Collections.Queue collection. Use the Enqueue() method to add TheaterCustomer objects to the collection. Use the Dequeue() method to pass the objects to the ProcessTheaterCustomer() method.

C.

Create a System.Collections.SortedList collection. Use the Add() method to add TheaterCustomer objects to the collection. Use the Remove() method to pass the objects to the ProcessTheaterCustomer() method.

D.

Create a System.Collections.ArrayList collection. Use the Insert() method to add TheaterCustomer objects to the collection. Use the Remove() method to pass the objects to the ProcessTheaterCustomer() method.

 

Correct Answer: B

 

 

QUESTION 198

You are debugging a 64-bit C# application. Users report System.OutOfMemoryException exceptions. The system is attempting to use arrays larger than 2 GB in size. You need to ensure that the application can use arrays larger than 2 GB. What should you do?

 

A.

Add the /3GB switch to the boot.ini file for the operating system.

B.

set the IMAGE_FILE_LARGE_ADDRESS_AWARE flag in the image header for the application executable file.

C.

set the value of the gcAllowVeryLargeObjects property to true in the application configuration file.

D.

Set the value of the user-mode virtual address space setting for the operating system to MAX.

 

Correct Answer: C

 

 

QUESTION 199

You develop an application by using C#. The application counts the number of times a specific word appears within a set of text files. The application includes the following code.

(Line numbers are included for reference only.)

 

clip_image010

 

You have the following requirements:

clip_image002[8]Populate the _wordCounts object with a list of words and the number of occurrences of each word.

clip_image002[9]Ensure that updates to the ConcurrentDictionary object can happen in parallel.

 

You need to complete the relevant code.

 

Which code segment should you insert at line 23?

 

clip_image011

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 200

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

 

clip_image013

 

When the loanTerm value is 5 and the loanAmount value is 4500, the loanRate must be set to 6.5 percent. You need to adjust the loanRate value to meet the requirements.

 

What should you do?

 

A.

Replace line 15 with the following code segment:

loanRate = 0.065m;

B.

Replace line 07 with the following code segment:

loanRate = 0.065m;

C.

Replace line 17 with the following code segment:

interestAmount = loanAmount * 0.065m * loanTerm;

D.

Replace line 04 with the following code segment:

decimal loanRate = 0.065m;

 

Correct Answer: A

 

Instant Access to Download Testing Software & PDF File for Microsoft 70-483 Real Exam

Instant Access to Try Microsoft 70-483 Free Demo

HOT EXAM!

Name of author

Name: admin