Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q741: Which structure is used to hold file size returned by GetFileSizeEx()?
  • A: FILEINFO
  • B: HANDLE
  • C: LARGE_INTEGER
  • D: READWRITE
View Answer
C

Q742: CreateFile must be used before calling
  • A: GetFileSizeEx
  • B: CloseFile
  • C: SetFilePointer
  • D: FlushFileBuffers
View Answer
A

Q743: SetEndOfFileEx can be used to
  • A: truncate or extend a file
  • B: copy a file
  • C: delete a file
  • D: read a file
View Answer
A

Q744: Increasing a file’s size before writing large data improves
  • A: memory usage
  • B: file handle management
  • C: performance
  • D: file locking
View Answer
C

Q745: If GetFileSizeEx fails, it returns
  • A: NULL
  • B: 1
  • C:
  • D: Zero
View Answer
C

Q746: GetFileSizeEx takes how many arguments?
  • A: 1
  • B: 2
  • C: 3
  • D: 4
View Answer
B

Q747: To receive the file size, a pointer is passed to a ________ structure.
  • A: DWORD
  • B: QUADWORD
  • C: FILE_HANDLE
  • D: LARGE_INTEGER
View Answer
D

Q748: File size in bytes is received via which parameter of GetFileSizeEx()?
  • A: hFile
  • B: lpFileSize
  • C: fileName
  • D: offset
View Answer
B

Q749: What does a DWORD represent in the RECORD structure?
  • A: A 32-bit unsigned integer
  • B: A 16-bit signed integer
  • C: A 64-bit floating number
  • D: A character array
View Answer
A

Q750: In the given code, what does a referenceCount of 0 indicate in a RECORD?
  • A: The record is empty
  • B: The record is locked
  • C: The record is deleted
  • D: The record is full
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now