Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q711: Which variable type is typically used to store 64-bit file positions before assigning to OVERLAPPED?
  • A: LONGLONG
  • B: LARGE_INTEGER
  • C: DWORD
  • D: INT64
View Answer
B

Q712: In which structure are Offset and OffsetHigh fields found?
  • A: BUFFER
  • B: OVERLAPPED
  • C: FILEINFO
  • D: HANDLE
View Answer
C

Q713: What does the Pointer field inside OVERLAPPED typically hold?
  • A: Unused or custom pointer
  • B: File handle
  • C: File descriptor
  • D: Event pointer
View Answer
A

Q714: The OVERLAPPED structure can be used even in ______ operations.
  • A: blocked
  • B: single-threaded
  • C: non-overlapped
  • D: unbuffered
View Answer
C

Q715: The field ‘hEvent’ in OVERLAPPED structure is used for
  • A: event handling
  • B: buffer size assignment
  • C: file locking
  • D: priority setting
View Answer
A

Q716: The correct way to assign file pointer position using LARGE_INTEGER is
  • A: filePos.Offset = x
  • B: filePos.Part1 = x
  • C: filePos.QuadPart = x
  • D: filePos.Pointer = x
View Answer
C

Q717: To set Offset fields from LARGE_INTEGER, you extract
  • A: QuadWord and DoubleWord
  • B: HighPart and LowPart
  • C: HighByte and LowByte
  • D: LowBit and HighBit
View Answer
B

Q718: What kind of pointer is used with OVERLAPPED in ReadFile or WriteFile?
  • A: *INT
  • B: *HANDLE
  • C: *LPOVERLAPPED
  • D: *FILEINFO
View Answer
C

Q719: The OVERLAPPED structure allows multitasking by enabling
  • A: parallel execution
  • B: ofstream support
  • C: parallel buffering
  • D: separate file threads
View Answer
A

Q720: You can perform asynchronous file operations using
  • A: OVERLAPPED
  • B: QUADWORD
  • C: STRINGBUFFER
  • D: FILEINFO
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now