System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q691: The file handle used with SetFilePointerEx must have which access rights?
- A: GENERIC_EXECUTE
- B: GENERIC_DELETE
- C: GENERIC_READ or GENERIC_WRITE
- D: GENERIC_ALL
View Answer
C
Q692: SetFilePointerEx returns a value of type ______.
- A: BOOL
- B: INT
- C: DWORD
- D: VOID
View Answer
A
Q693: The `hFile` parameter in SetFilePointerEx must be obtained using ______.
- A: CreateHandle()
- B: SetHandle()
- C: CreateFile()
- D: OpenFile()
View Answer
C
Q694: liDistanceToMove is of type ______.
- A: LONG
- B: INT
- C: LARGE_INTEGER
- D: QUADWORD
View Answer
C
Q695: lpNewFilePointer is a pointer to a variable of type ______.
- A: BOOL
- B: DWORD
- C: PLARGE_INTEGER
- D: FILEINFO
View Answer
C
Q696: QuadPart in LARGE_INTEGER allows working directly with the entire ______.
- A: 4-bit address
- B: 8-byte value
- C: 32-bit block
- D: high memory
View Answer
B
Q697: The field `u` in LARGE_INTEGER contains ______.
- A: pointer to memory
- B: location of API call
- C: duplicate structure with LowPart and HighPart
- D: alignment check
View Answer
C
Q698: The data type of HighPart inside the LARGE_INTEGER struct is ______.
- A: DWORD
- B: LONGLONG
- C: LONG
- D: ULONG
View Answer
C
Q699: The union LARGE_INTEGER is primarily used to support arithmetic with ______.
- A: network buffers
- B: memory stacks
- C: file pointers
- D: image data
View Answer
C
Q700: The QuadPart member of LARGE_INTEGER is typically used when ______.
- A: splitting values is needed
- B: reading byte stream
- C: direct 64-bit operations are needed
- D: formatting console
View Answer
D