Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q841: lpPrefixString in GetTempFileName() represents a ________ string.
  • A: null-terminated
  • B: binary
  • C: hexadecimal
  • D: Unicode
View Answer
A

Q842: The first ________ characters of lpPrefixString are used as the prefix in the filename.
  • A: 3
  • B: 4
  • C: 5
  • D: 6
View Answer
A

Q843: uUnique parameter in GetTempFileName() is of type ________.
  • A: unsigned integer
  • B: integer
  • C: string
  • D: pointer
View Answer
A

Q844: lpTempFileName in GetTempFileName() is a pointer to a ________ that receives the temporary filename.
  • A: buffer
  • B: file
  • C: handle
  • D: pointer
View Answer
A

Q845: What type of value does GetTempFileName() return?
  • A: UINT
  • B: BOOL
  • C: DWORD
  • D: HANDLE
View Answer
A

Q846: The unique number uUnique helps to ________ the temporary filename.
  • A: ensure uniqueness
  • B: define file size
  • C: define file permissions
  • D: specify file path
View Answer
A

Q847: In GetTempFileName(), the prefix string is used at the ________ of the temporary filename.
  • A: beginning
  • B: middle
  • C: end
  • D: after extension
View Answer
A

Q848: Temporary files are primarily used to store ________.
  • A: intermediate results
  • B: final output
  • C: system logs
  • D: configuration data
View Answer
A

Q849: Which of the following is NOT a parameter of GetTempFileName()?
  • A: lpPathName
  • B: lpPrefixString
  • C: uUnique
  • D: lpFileSize
View Answer
D

Q850: The pointer lpTempFileName must point to a buffer large enough to hold ________.
  • A: the temporary filename
  • B: the full path
  • C: only the prefix
  • D: the file extension
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now