Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q401: The use of Unicode-only strategy is _______.
  • A: Decreasing in popularity
  • B: Increasing in popularity
  • C: No longer used
  • D: Only for legacy code
View Answer
B

Q402: Using generic code makes the program _______.
  • A: Less flexible
  • B: More flexible
  • C: Slower
  • D: Incompatible
View Answer
B

Q403: Which Windows function returns the code for the last system error?
  • A: GetErrorCode()
  • B: GetLastError()
  • C: FormatMessage()
  • D: LocalFree()
View Answer
B

Q404: The function that translates an error code into a readable message is _______.
  • A: GetLastError()
  • B: FormatMessage()
  • C: LocalFree()
  • D: ErrorTranslator()
View Answer
B

Q405: What is the purpose of LocalFree() in error reporting?
  • A: Allocate memory
  • B: Deallocate memory
  • C: Translate error code
  • D: Return error code
View Answer
B

Q406: Windows Operating System provides error reporting mainly for _______.
  • A: User convenience
  • B: System security
  • C: File management
  • D: Network monitoring
View Answer
A

Q407: GetLastError() returns _______.
  • A: The last system error code
  • B: A pointer to the error message
  • C: A boolean value
  • D: Error severity level
View Answer
A

Q408: FormatMessage() converts error codes into _______.
  • A: Binary code
  • B: Meaningful English or user language
  • C: Text file
  • D: Hexadecimal values
View Answer
B

Q409: A message string reference for an error code is stored in a _______ when using FormatMessage().
  • A: Error log file
  • B: Parameter
  • C: Function
  • D: Return value
View Answer
B

Q410: Windows error reporting helps to improve _______.
  • A: Program performance
  • B: User convenience
  • C: Internet speed
  • D: File size
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now