Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q561: Which API sets the mode for console input and output?
  • A: SetFileMode()
  • B: SetMode()
  • C: SetConsoleMode()
  • D: ModeConsole()
View Answer
C

Q562: The SetConsoleMode function requires a console handle and
  • A: a color code
  • B: a permission mask
  • C: a mode flag
  • D: an error handler
View Answer
C

Q563: The ENABLE_ECHO_INPUT flag causes characters to
  • A: be hidden from screen
  • B: be logged to file
  • C: be displayed as typed
  • D: be ignored
View Answer
C

Q564: ENABLE_LINE_INPUT causes ReadConsole to return only after
  • A: a bell sound is triggered
  • B: a space is entered
  • C: a carriage return is entered
  • D: an EOF character is found
View Answer
C

Q565: Which mode enables automatic handling of backspace and line feed?
  • A: ENABLE_DIRECT_INPUT
  • B: ENABLE_MANUAL_MODE
  • C: ENABLE_PROCESSED_INPUT
  • D: ENABLE_FILE_INPUT
View Answer
C

Q566: Which mode processes characters like tab, carriage return, and backspace?
  • A: ENABLE_PROCESSED_OUTPUT
  • B: ENABLE_LINE_FEED_MODE
  • C: ENABLE_RAW_INPUT
  • D: ENABLE_WRITE_MODE
View Answer
A

Q567: Line wrapping at end-of-line is handled by which mode?
  • A: ENABLE_WRAP_AT_EOL_OUTPUT
  • B: ENABLE_LINE_WRAP_MODE
  • C: ENABLE_NEWLINE_WRAP
  • D: ENABLE_STRING_WRAP
View Answer
A

Q568: Which handle access right is required to use SetConsoleMode properly?
  • A: GENERIC_WRITE
  • B: GENERIC_READ
  • C: GENERIC_EXECUTE
  • D: GENERIC_DELETE
View Answer
A

Q569: ReadConsole requires a handle with which type of access?
  • A: GENERIC_EXECUTE
  • B: GENERIC_READ
  • C: GENERIC_WRITE
  • D: GENERIC_ALL
View Answer
B

Q570: The lpBuffer parameter in ReadConsole is used to
  • A: store handle name
  • B: store file path
  • C: receive console input characters
  • D: send error message
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now