Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q501: Security attributes in CopyHardLink API apply to
  • A: the existing file
  • B: the original file
  • C: the new file
  • D: both files
View Answer
C

Q502: The function DeleteFile(LPCTSTR lpFileName) deletes file from _______.
  • A: memory
  • B: clipboard
  • C: path specified
  • D: directory root
View Answer
C

Q503: MoveFileEx accepts _______ parameters.
  • A: 2
  • B: 3
  • C: 4
  • D: 5
View Answer
B

Q504: The second parameter in MoveFile API specifies
  • A: the destination path
  • B: the source path
  • C: the overwrite flag
  • D: the file size
View Answer
A

Q505: The MoveFile function can be used to move
  • A: files only
  • B: directories only
  • C: files and directories
  • D: temporary files
View Answer
A

Q506: CopyFile overwrites the existing file if
  • A: bFailIfExists is true
  • B: bFailIfExists is false
  • C: bFailIfExists is NULL
  • D: bFailIfExists is undefined
View Answer
B

Q507: The function CopyFile requires which of the following?
  • A: Source and destination paths only
  • B: Destination path and overwrite flag
  • C: Only source path
  • D: Source path, destination path, and overwrite flag
View Answer
D

Q508: The API used to move files that already exist at destination is
  • A: MoveFile
  • B: MoveFileEx
  • C: DeleteFile
  • D: CopyHardLink
View Answer
B

Q509: The function CopyHardLink creates a hard link between
  • A: networked files
  • B: remote systems
  • C: local files on same volume
  • D: removable drives
View Answer
C

Q510: MoveFileEx() is an extended version of which function?
  • A: CopyFile
  • B: MoveFile
  • C: DeleteFile
  • D: TransferFile
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now