1.

There are ___ modes of opening a file.(a) 4(b) 3(c) 2(d) 1I got this question during an interview.Enquiry is from System Calls Basics topic in chapter System Programming I – Files of Unix

Answer»

Right option is (b) 3

For EXPLANATION: There are THREE modes of opening a FILE, out of which only one MODE is required to be specified while opening the file. The three modes are, O_RDONLY, O_WRONLY, O_RDWR.



Discussion

No Comment Found

Related InterviewSolutions