Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q871: GetSystemTime() returns the current system date and time in ________ format.
  • A: Local time
  • B: Coordinated Universal Time (UTC)
  • C: Timestamp
  • D: ISO format
View Answer
B

Q872: GetSystemTimeAsFileTime() requires a ________ as an argument.
  • A: file pointer
  • B: handle
  • C: file descriptor
  • D: file path
View Answer
A

Q873: GetSystemTime() stores the current date and time in a ________ structure.
  • A: FILETIME
  • B: SYSTEMTIME
  • C: TIMESTAMP
  • D: DATETIME
View Answer
B

Q874: SetFileTime() is used to set the date and time for ________.
  • A: files or directories
  • B: only files
  • C: only directories
  • D: system events
View Answer
A

Q875: Which API is more convenient to get system time directly as file time?
  • A: GetSystemTime
  • B: GetSystemTimeAsFileTime
  • C: SystemTimeToFileTime
  • D: SetFileTime
View Answer
B

Q876: The header file sysinfoapi.h provides functions to retrieve ________.
  • A: system time
  • B: file attributes
  • C: file paths
  • D: directory info
View Answer
A

Q877: SetFileTime() can be used to set all except ________.
  • A: file size
  • B: creation time
  • C: last access time
  • D: last modified time
View Answer
A

Q878: The SetFileTime() API allows setting time for which of the following file timestamps?
  • A: Created, accessed, modified
  • B: Created only
  • C: Accessed only
  • D: Modified only
View Answer
A

Q879: GetSystemTimeAsFileTime() returns time in ________.
  • A: FILETIME format
  • B: SYSTEMTIME format
  • C: TIMESTAMP format
  • D: DATE format
View Answer
A

Q880: Which function converts system time to file time?
  • A: SystemTimeToFileTime
  • B: FileTimeToSystemTime
  • C: GetSystemTimeAsFileTime
  • D: SetFileTime
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now