System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 31
Q681:
What data type represents the entire 64-bit value in LARGE_INTEGER?
A. double
B. INT64
C. LONGLONG
D. FLOAT
Correct Answer:
C
Chapter: 31
Q682:
In the LARGE_INTEGER structure, the low-order 32 bits are represented by ______.
A. HighPart
B. QuadPart
C. LowPart
D. BytePart
Correct Answer:
C
Chapter: 31
Q683:
The high-order 32 bits in LARGE_INTEGER are stored in the ______ field.
A. LowPart
B. HighWord
C. HighPart
D. TopBits
Correct Answer:
C
Chapter: 31
Q684:
The complete 64-bit integer in LARGE_INTEGER is accessed through ______.
A. DoubleWord
B. WholeWord
C. QuadPart
D. FullInt
Correct Answer:
C
Chapter: 31
Q685:
What type of function is SetFilePointerEx()?
A. File closing function
B. Pointer arithmetic macro
C. File pointer positioning API
D. File encryption utility
Correct Answer:
C
Chapter: 31
Q686:
The `liDistanceToMove` parameter in SetFilePointerEx() specifies ______.
A. number of bytes to move
B. permission level
C. pointer to function
D. buffer size
Correct Answer:
A
Chapter: 31
Q687:
The `lpNewFilePointer` parameter in SetFilePointerEx() receives ______.
A. old pointer value
B. number of bytes moved
C. new pointer value
D. API status
Correct Answer:
C
Chapter: 31
Q688:
Which parameter in SetFilePointerEx() represents the reference point for pointer movement?
A. hFile
B. lpNewFilePointer
C. dwMoveMethod
D. liDistanceToMove
Correct Answer:
C
Chapter: 31
Q689:
SetFilePointerEx supports pointer movement based on which constants?
A. FILE_APPEND
B. FILE_HEADER
C. FILE_BEGIN
D. FILE_SIZE
Correct Answer:
C
Chapter: 31
Q690:
To move the file pointer from the beginning of the file, which flag is used?
A. FILE_BEGIN
B. FILE_CURRENT
C. FILE_END
D. FILE_START
Correct Answer:
A
Chapter: 31
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
Correct Answer:
C
Chapter: 31
Q692:
SetFilePointerEx returns a value of type ______.
A. BOOL
B. INT
C. DWORD
D. VOID
Correct Answer:
A
Chapter: 31
Q693:
The `hFile` parameter in SetFilePointerEx must be obtained using ______.
A. CreateHandle()
B. SetHandle()
C. CreateFile()
D. OpenFile()
Correct Answer:
C
Chapter: 31
Q694:
liDistanceToMove is of type ______.
A. LONG
B. INT
C. LARGE_INTEGER
D. QUADWORD
Correct Answer:
C
Chapter: 31
Q695:
lpNewFilePointer is a pointer to a variable of type ______.
A. BOOL
B. DWORD
C. PLARGE_INTEGER
D. FILEINFO
Correct Answer:
C
Chapter: 31
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
Correct Answer:
B
Chapter: 31
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
Correct Answer:
C
Chapter: 31
Q698:
The data type of HighPart inside the LARGE_INTEGER struct is ______.
A. DWORD
B. LONGLONG
C. LONG
D. ULONG
Correct Answer:
C
Chapter: 31
Q699:
The union LARGE_INTEGER is primarily used to support arithmetic with ______.
A. network buffers
B. memory stacks
C. file pointers
D. image data
Correct Answer:
C
Chapter: 31
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
Correct Answer:
D