Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

What is the difference between a property's use and its type?

Answered: 1 week ago