Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q291: Which statement is true about CopyFile()?
  • A: It deletes the source file
  • B: It reads binary only
  • C: It supports Unicode paths
  • D: It compresses the file
View Answer
C

Q292: The program allocates memory for file names using
  • A: new()
  • B: GlobalAlloc()
  • C: malloc()
  • D: LocalAlloc()
View Answer
C

Q293: If incorrect arguments are passed, the program prints
  • A: Error: File not found
  • B: Usage: cp file1 file2
  • C: Error: Access denied
  • D: Error: Buffer overflow
View Answer
B

Q294: The return value 2 indicates that
  • A: CopyFile succeeded
  • B: The file was not found
  • C: CopyFile failed
  • D: File was locked
View Answer
C

Q295: The CopyFile() function belongs to which programming interface?
  • A: C Standard Library
  • B: POSIX API
  • C: Windows API
  • D: UNIX Shell
View Answer
C

Q296: The CopyFile() function returns FALSE when
  • A: File copied successfully
  • B: Function is not called
  • C: Copy fails
  • D: Function is undefined
View Answer
C

Q297: _________ function is a Windows convenience function for file copy.
  • A: ReadFile()
  • B: WriteFile()
  • C: CopyFile()
  • D: OpenFile()
View Answer
C

Q298: Windows convenience functions improve performance by
  • A: Reducing code size
  • B: Using threading
  • C: Combining multiple operations
  • D: Running in kernel mode
View Answer
C

Q299: The CopyFile function is defined in which header file?
  • A: windows.h
  • B: copyfile.h
  • C: stdio.h
  • D: winapi.h
View Answer
A

Q300: Which file system is known for providing security by restricting user access without privileges?
  • A: NTFS
  • B: FAT32
  • C: CDFS
  • D: UDF
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now