filesystem and directory functions

mcqspedia.com has 4 Question/Answers about Topic filesystem and directory functions

Fileperms ( ) function returns what?

Fileperms ( ) function returns what?
  • A. Returns file permission level
  • B. Returns file parameters
  • C. Returns file modification time
  • D. None of them
  • Correct Answer: Option A

Rmdir (directory) function is used for

Rmdir (directory) function is used for
  • A. Removing files directory
  • B. Removing empty directory
  • C. Removing all old directories
  • D. All of them
  • Correct Answer: Option B

Which function returns and caches size of a file in bytes?

Which function returns and caches size of a file in bytes?
  • A. feof ( )
  • B. filesize ( )
  • C. f_size ( )
  • D. file_e ( )
  • Correct Answer: Option B

Which function is used to set a modification time, and creates a file if it is not exist

Which function is used to set a modification time, and creates a file if it is not exist
  • A. unlink ( )
  • B. stat ( )
  • C. touch ( )
  • D. symlink ( )
  • Correct Answer: Option C