Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q801: GetFileTime() returns FALSE if the file handle is ________.
  • A: invalid
  • B: valid
  • C: opened
  • D: closed
View Answer
A

Q802: FILE_ATTRIBUTE_NORMAL indicates a file with no special ________.
  • A: attributes
  • B: size
  • C: flags
  • D: permissions
View Answer
A

Q803: SetFileTime() with NULL parameters means the corresponding file time will ________.
  • A: be unchanged
  • B: be reset
  • C: to zero
  • D: be set to current time
View Answer
A

Q804: FindNextFile() continues a search started by ________.
  • A: FindClose
  • B: FindFirstFile
  • C: GetFileTime
  • D: CompareFileTime
View Answer
B

Q805: LocalFileTimeToFileTime() converts local file time to ________.
  • A: UTC
  • B: system
  • C: time
  • D: file time
View Answer
B

Q806: The cFileName member in WIN32_FIND_DATA holds the ________.
  • A: alternate filename
  • B: filename
  • C: file size
  • D: file attributes
View Answer
B

Q807: DWORD is a data type representing a ________.
  • A: 32-bit unsigned integer
  • B: 16-bit integer
  • C: 64-bit float
  • D: Character
View Answer
A

Q808: Which API converts system time into file time?
  • A: FileTimeToSystemTime
  • B: SystemTimeToFileTime
  • C: GetFileTime
  • D: FindFirstFile
View Answer
B

Q809: Which function closes the search handle returned by FindFirstFile()?
  • A: FindClose
  • B: FindNextFile
  • C: GetFileTime
  • D: CompareFileTime
View Answer
A

Q810: FindFirstFile() returns ________ on failure.
  • A: INVALID_HANDLE_VALUE
  • B: INVALID_FILE_ATTRIBUTES
  • C: NULL
  • D: -1
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now