System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q601: ENABLE_LINE_INPUT mode ensures input is read only after ______.
- A: a space is entered
- B: enter key is pressed
- C: tab is pressed
- D: output is written
View Answer
B
Q602: PrintStrings returns FALSE if ______.
- A: va_list is NULL
- B: console handle is invalid
- C: WriteConsole and WriteFile both fail
- D: Console is not created
View Answer
C
Q603: PrintMsg() is a utility function that ______.
- A: reads user input
- B: writes multiple messages
- C: writes a single message
- D: creates a console handle
View Answer
C
Q604: To prevent input echoing in ConsolePrompt, which flag is omitted?
- A: ENABLE_LINE_INPUT
- B: ENABLE_PROCESSED_OUTPUT
- C: ENABLE_WRAP_AT_EOL_OUTPUT
- D: ENABLE_ECHO_INPUT
View Answer
D
Q605: In ConsolePrompt, what does the function ReadConsole do?
- A: Reads input from buffer
- B: Writes to console
- C: Closes console
- D: Allocates memory
View Answer
A
Q606: The PrintStrings function uses va_arg to ______.
- A: end loop over arguments
- B: access next argument
- C: initialize argument list
- D: handle file output
View Answer
B
Q607: To start processing variable arguments in PrintStrings, ______ is used.
- A: va_start
- B: va_arg
- C: va_end
- D: none of these
View Answer
A
Q608: The prompt displayed by ConsolePrompt is stored in ______.
- A: hIn
- B: pResponse
- C: pPromptMsg
- D: hOut
View Answer
C
Q609: ConsolePrompt uses which input function to read from user?
- A: ReadFile
- B: ReadConsole
- C: ReadLine
- D: ScanConsole
View Answer
B
Q610: Which function is used to get the current working directory in Windows API?
- A: GetDirectory()
- B: GetCurrentDirectory()
- C: GetPath()
- D: CurrentDirectory()
View Answer
B