PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You use a Windwos XP Professional client computer named Certkiller -WS554 as your development computer.
You are developing a .NET Framework 2.0 application on Certkiller -WS554. The application will allow Domain.com users to send e-mails.
The Domain.com users must be able to send e-mail containing information like budget documents and images.
You decide to use the .NET Framework 2.0 Attachment class to create the e-mail attachments within your application.
You are required to specify the content in an attachment by using the attachment class constructors.
What should you do? (Choose two)

PrepAway - Latest Free Exam Questions & Answers

A.
The Stream object attachment class should be used.

B.
The String object attachment class should be used.

C.
The Image object attachment class should be used.

D.
The XmlDocument object attachment class should be used.

E.
The SqlDataReader object attachment class should be used.

Explanation:
In the scenario the Attachment constructors allow you to create attachments from a filename, a String object, or a Stream object.
Incorrect Answers:
C: This method is incorrect and should not be used in the scenario because the Image object Attachment class cannot directly use an Image object.
D: This method is incorrect and should not be used in the scenario because the XmlDocument Attachment class cannot directly use an XmlDocument object.
E: This method is incorrect and should not be used in the scenario because the SqlDataReader Attachment class cannot directly make use of a SqlDataReader object.

One Comment on “What should you do?


Leave a Reply