Quiz on Files and Directories

It's quiz time! Answer the following questions to test your knowledge and understanding of files and directories.

1

Why does the following call to open() return 3 when we try to read file using cat?

...
open("foo", O_RDONLY|O_LARGEFILE) =     4 
...
A)

4 is the code for successful execution

B)

4 is the code for execution failure

C)

0, 1, 2 and 3 represent the other files already opened

D)

None of the above

Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.