exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 5 question 5 discussion

Actual exam question from Microsoft's 70-487
Question #: 5
Topic #: 5
[All 70-487 Questions]

You need to compile CarBusinesLogic.dll by using Microsoft Visual Studio.
Which attribute should you add before you compile the dynamic-link library (DLL)?

  • A. System.Reflection.AssemblyConfigurationAttribute
  • B. System.Reflection.AssemblyKeyFileAttribute
  • C. AssemblyFlagsAttribute
  • D. System.Reflection.AssemblyAlgorithmIdAttribute
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Scenario: The CarBusinessLogic.dll assembly must be strongly-named.
One way to sign an assembly with a strong name is by using assembly attributes to insert the strong name information into your code. You can use either the
AssemblyKeyFileAttribute or the AssemblyKeyNameAttribute attribute, depending on where the key file to be used is located.
Note: To sign an assembly with a strong name by using attributes
✑ Add the System.Reflection.AssemblyKeyFileAttribute or AssemblyKeyNameAttribute attribute to your source code file, and specify the name of the file or container that contains the key pair to use when signing the assembly with a strong name.
✑ Compile the source code file normally.
References:
https://msdn.microsoft.com/en-us/library/xc31ft41(v=vs.110).aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zimzimzimma
4 years, 8 months ago
I think this question is complete and missing info that the assembly must be strongly named. If that was listed, only solution would be B.
upvoted 1 times
rad1s
4 years, 5 months ago
Question is complete. Information is here.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago