Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q591: ConsolePrompt uses which API to display messages on the console?
  • A: ReadFile()
  • B: ReadConsole()
  • C: PrintStrings()
  • D: WriteConsole()
View Answer
C

Q592: What type of handle does CreateFile with "CONIN$" return?
  • A: Console output handle
  • B: Console input handle
  • C: File stream handle
  • D: File descriptor
View Answer
B

Q593: Which API replaces CR-LF with a null character in ConsolePrompt?
  • A: WriteConsole()
  • B: PrintStrings()
  • C: pResponse modification
  • D: WriteFile()
View Answer
C

Q594: Which function is responsible for writing variable strings to console?
  • A: ConsolePrompt()
  • B: PrintMsg()
  • C: PrintStrings()
  • D: WriteConsole()
View Answer
C

Q595: Which API is called inside PrintStrings if WriteConsole fails?
  • A: ReadConsole()
  • B: WriteFile()
  • C: ReadFile()
  • D: Printf()
View Answer
B

Q596: The va_end() function is used to _______.
  • A: initialize variable arguments
  • B: end processing variable arguments
  • C: read a string from user
  • D: write string to file
View Answer
B

Q597: The “echoFlag” in ConsolePrompt determines _______.
  • A: output stream mode
  • B: input buffer size
  • C: if input is visible on console
  • D: if response is in lowercase
View Answer
C

Q598: In ConsolePrompt, the input handle is created using
  • A: _T("CONOUT$")
  • B: _T("STDOUT")
  • C: _T("CONIN$")
  • D: _T("STDIN")
View Answer
C

Q599: To ensure input is echoed to the screen, which mode is enabled?
  • A: ENABLE_LINE_INPUT
  • B: ENABLE_ECHO_INPUT
  • C: ENABLE_WRAP_AT_EOL_OUTPUT
  • D: ENABLE_PROCESSED_INPUT
View Answer
B

Q600: ENABLE_PROCESSED_OUTPUT allows processing of ______.
  • A: Unicode characters
  • B: low-level input
  • C: escape sequences like tab and bell
  • D: network messages
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now