Question: please answer question 4,file size answer is not 100 or 200 X Question 1: Make the following assumptions: The descriptor of a file contains the

please answer question 4,file size

please answer question 4,file size answer is not 100 or 200 X

answer is not 100 or 200

X Question 1: Make the following assumptions: The descriptor of a file contains the values (700, 70, 30, and 0) The file is open at the OFT index 3 The current position within the file is 200 The next free block is block 40 Show the values after executing the function: write(3, m, 100) 1. Current Position: 2. Block currently in the r/w buffer: 3. Offset within the r/w buffer: 4. File size: Type: Fill In The Blank Points Awarded: 0.000/1.000 User Answer(s): 300 Answer 1 Rationale: the current position is advanced from 200 by 100 bytes 70 Answer 2 Rationale: the new position is still within the same block: 300/512 = 0, which is block 70 as shown in the descriptor 300 Answer 3 Rationale: 300 mod 512 = 300 & 100 Answer 4 Rationale: the file has not expanded; the 100 bytes have overwritten a portion of the existing contents

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!