write system call returns -1 when ___________
A. if disk fills up while write is in progress
B. when file doesn’t exist
C. if the file size exceeds the system’s limit
D. if disk fills up while write is in progress and if the file size exceeds
Answer: d
Explanation: write system call returns the number of characters written. However, it will return -1 if if disk fills up while write is in progress or if the file size exceeds the system’s limit.