70-483 question 195 discussion

answered

You are developing a method named GetHash that will return a 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 fileBytes variable.
Which code segment should you insert at line 05?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Created 4 months, 1 week ago by behanp

behanp

So... to compute hash from 1MB byte[] array, I need to allocate another 1MB "output buffer"? I don't think so (and few other WTFs, like ArgumentException in TransformFinalBlock, code is trying to read beyond end of the array). D is correct.

NickSworD

B is correct answer

DmitryArt

D is a correct answer: https://msdn.microsoft.com/en-US/library/system.security.cryptography.hashalgorithm.hash(v=vs.110).aspx

steveobevo57

How can this be A?! D is the correct answer.

IbrahimShrourou

A

IbrahimShrourou

I have no idea, but i think it is A