Q.1
____ system call is used for renaming a file, directory or symbolic link.
  • a) renam
  • b) rename
  • c) ren
  • d) change
Q.2
S_IFxxx macros are used for checking the file types.
  • a) True
  • b) False
Q.3
Which of the following macro returns true if the file type is a directory?
  • a) S_ISREG
  • b) S_ISDIR
  • c) S_ISCHR
  • d) S_ISFIFO
Q.4
For checking a file access rights, ___ system call is used.
  • a) acc
  • b) access
  • c) axs
  • d) filert
Q.5
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_OK
Q.6
chmod and fchmod calls are used for changing file permissions.
  • a) True
  • b) False
Q.7
Both the owner and group owner can be changed by ____ call.
  • a) chown
  • b) chgrp
  • c) chuser
  • d) ch
Q.8
For changing the time stamps, _____ system call is invoked.
  • a) atime
  • b) utime
  • c) mtime
  • d) ch
Q.9
System calls and library functions are same.
  • a) True
  • b) False
Q.10
Which of the following system call uses file descriptor as an argument?
  • a) read
  • b) write
  • c) close
  • d) read, write, close
0 h : 0 m : 1 s