PAGETURNER
BOX
REVIEW
GO
A file that has read and write privileges for the OWNER,
and execute only for the GROUP and OTHERS, has a
protection code with an octal value of:
Answer here:
That is correct!
You've got it on the 2nd try.
You've got it finally!
Sorry, try again.
No, try one more time.
Please review File Protection in the UNIX User course.
FORGET1
The correct value is 611 !
If your program creates a new file, the
file protection descriptor for that file would
have an integer value of at least _______.
Answer here:
That is correct!
You've got it on the 2nd try.
You've got it finally!
Sorry, try again.
No, try one more time.
Please review Topic 2: Using Binary I/O Functions
FORGET2
The correct choice is 3 . The file descriptors
0, 1 and 2 are reserved for the standard input, output,
and error respectively. So the next one available is 3.
Which of the following statements is/are TRUE?
a The system call write() returns the
the number of bytes written.
b The system call lseek() returns 0
on success and -1 on a failure.
c The system call read() will read a
specified number of bytes. If the End of
File is reached before the specified number
of bytes is read, the reading will terminate!
d a and c
e all of the above
Select one:
That is correct!
You've got it on the 2nd try.
You've got it finally!
Sorry, try again.
No, try one more time.
Please review Topic 2: Using Binary I/O Functions
FORGET3
The correct choice is d . Statement b is wrong
because lseek() on success returns the distance in bytes
of the file pointer from the beginning of the file!