exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 16 discussion

Actual exam question from Microsoft's 70-483
Question #: 16
Topic #: 2
[All 70-483 Questions]

You are developing a method named GenerateHash that will create the hash value for a file. The method includes the following code. (Line numbers are included for reference only.)

You need to return the cryptographic hash of the bytes contained in the fileBuffer variable.
Which code segment should you insert at line 05?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
slobex
Highly Voted 5 years ago
D is answ. var signatureAlgo = HashAlgorithm Create(hashAlgorithm);//Creates an instance of an implementation of a hash algorithm. signatureAlgo.ComputeHash(Byte[]);//Computes the hash value for the specified byte array and returns the computed hash code => Byte[]. it is similar to B but it isn't B because: signatureAlgo.GetHashCode(); // returns Int32 and we need Byte[].
upvoted 9 times
...
AbeIndigo
Most Recent 4 years, 11 months ago
B returns the hash code of the instance of the Hashing Algorithm not the byte array
upvoted 2 times
...
nelaed
5 years, 1 month ago
https://docs.microsoft.com/pl-pl/dotnet/api/system.security.cryptography.hashalgorithm?view=netcore-3.1 Not sure but i think it's D.
upvoted 3 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 ...