System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q891: C library file processing functions are suitable for ________ systems.
- A: only Windows
- B: only Linux
- C: multiple operating
- D: most embedded
View Answer
D
Q892: The portability of C library file processing functions means they can work on ________.
- A: only Windows
- B: only Linux
- C: other than Windows
- D: only DOS
View Answer
C
Q893: Which C library function category is convenient for string processing?
- A: Binary functions
- B: Line and character-oriented functions
- C: Windows-specific functions
- D: Hardware functions
View Answer
B
Q894: Windows OS can lock ________ or part of a file.
- A: Only entire files
- B: Only file headers
- C: Only file footers
- D: Complete files or parts
View Answer
D
Q895: Which function is used to lock files in Windows?
- A: LockFile
- B: UnlockFileEx
- C: LockFileEx
- D: OpenFile
View Answer
C
Q896: The function LockFileEx returns a value of type ________.
- A: BOOL
- B: INT
- C: VOID
- D: HANDLE
View Answer
A
Q897: The parameter hFile in LockFileEx represents the ________.
- A: File handle
- B: File size
- C: File name
- D: File pointer
View Answer
A
Q898: The dwFlags parameter in LockFileEx is used to specify ________.
- A: Locking options
- B: File size
- C: Memory address
- D: Buffer size
View Answer
A
Q899: To unlock a locked file, the function ________ is used.
- A: LockFile
- B: UnlockFileEx
- C: LockFileEx
- D: CloseFile
View Answer
B
Q900: The number of bytes to lock is specified by which parameters in LockFileEx?
- A: dwFlags and dwReserved
- B: nNumberOfBytesToLockLow and nNumberOfBytesToLockHigh
- C: hFile and lpOverlapped
- D: None of these
View Answer
B