Which code segment should you insert at line 05?

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

microsoft-exams

5 thoughts on “Which code segment should you insert at line 05?

  1. definitely answer D

    public byte[] ComputeHash(byte[] buffer, int offset, int count);
    // Summary:
    // Computes the hash value for the specified byte array.

  2. Both methods work fine, but as we don’t need to hash any special blocks in the message, we shall use the simpler method -> D.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.