How should you complete the relevant code?

DRAG DROP
You are creating a method that will split a single input file into two smaller output files.
The method must perform the following actions:
• Create a file named header.dat that contains the first 20 bytes of the input file.
• Create a file named body.dat that contains the remainder of the input file.
You need to create the method.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct locations in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Select and Place:

microsoft-exams

2 thoughts on “How should you complete the relevant code?

    1. No. The given solution is correct. So it’s line 3, 4 and 6.

      Both Byte array variables “header” and “body” are written completely, that means their offset in the .Write methods start at 0.

      The Byte array “body” has been calculated to be 20 bytes smaller then the length of the source.

Leave a Reply

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


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