1.

Which of the following is used with access call for checking the owner’s permissions?(a) R_OK(b) W_OK(c) X_OK(d) R_OK, W_OK, X_OKThis question was addressed to me in an internship interview.I want to ask this question from File Handling System Calls topic in section System Programming I – Files of Unix

Answer»

Right choice is (d) R_OK, W_OK, X_OK

To explain: By using the ACCESS system call, we can CHECK the FILE’s access RIGHTS. We’ve to specify one of the FOLLOWING four values to define the permission which is needed to be tested.



Discussion

No Comment Found

Related InterviewSolutions