Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q721: OVERLAPPED helps in setting the file pointer during which kind of file access?
  • A: synchronous
  • B: random
  • C: parallel
  • D: asynchronous
View Answer
D

Q722: The internal fields in OVERLAPPED are mainly used by
  • A: the developer
  • B: the system API
  • C: file reader
  • D: debugger
View Answer
B

Q723: OVERLAPPED structure allows advanced control over
  • A: file compression
  • B: memory paging
  • C: network sockets
  • D: file reading and writing
View Answer
D

Q724: Setting both Offset and OffsetHigh to -1 will make the file pointer move to
  • A: the file header
  • B: the current position
  • C: the file end
  • D: random location
View Answer
C

Q725: Which function call demonstrates the use of OVERLAPPED in reading?
  • A: ReadConsole(hFile, …)
  • B: ReadFile(hFile, buf, sizeof(buf), &nRead, &ov)
  • C: ReadData(buf, hFile, &ov)
  • D: ReadInput(hFile, buf)
View Answer
B

Q726: The WriteFile API can be used with OVERLAPPED by passing which parameter last?
  • A: &hEvent
  • B: &buf
  • C: &ov
  • D: &FilePointer
View Answer
C

Q727: Which API function is used to get the size of a file in Windows?
  • A: GetFileSize
  • B: GetFileLength
  • C: GetFileSizeEx
  • D: GetFileEnd
View Answer
C

Q728: To get file size using pointer movement, the file pointer must be moved to
  • A: Beginning
  • B: First sector
  • C: End of file
  • D: Middle of file
View Answer
C

Q729: What data type is used with GetFileSizeEx to store the file size?
  • A: DWORD
  • B: LONGLONG
  • C: LARGE_INTEGER
  • D: UINT64
View Answer
C

Q730: What is required for the file handle used with GetFileSizeEx()?
  • A: FILE_WRITE_ACCESS
  • B: FILE_EXECUTE
  • C: FILE_READ_ATTRIBUTES
  • D: FILE_APPEND_DATA
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now