System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q361: If a file is not opened in concurrent mode, ReadFile() starts reading from _______.
- A: The beginning of the file
- B: The current file pointer position
- C: The end of the file
- D: The middle of the file
View Answer
B
Q362: What parameter does CloseFile() API take?
- A: File name
- B: File handle
- C: File path
- D: File size
View Answer
B
Q363: CloseFile() returns True when _______.
- A: The file handle is invalid
- B: The file is successfully closed
- C: The file is still open
- D: No file handle is passed
View Answer
B
Q364: Closing a file handle is necessary to _______.
- A: Delete the file
- B: Release system resources
- C: Open a new file
- D: Read data from file
View Answer
B
Q365: The value returned by CloseFile() API is of type _______.
- A: Boolean
- B: Integer
- C: String
- D: Pointer
View Answer
A
Q366: After closing a file, the file handle becomes _______.
- A: Valid
- B: Invalid
- C: Readable
- D: Writable
View Answer
B
Q367: Not closing a file handle properly can lead to _______.
- A: System crash
- B: Resource leak
- C: File corruption
- D: All of these
View Answer
D
Q368: CloseFile() returns False when the file handle is _______.
- A: Valid
- B: Already closed
- C: Open
- D: None of these
View Answer
B
Q369: The CloseFile() API is used to manage _______.
- A: File contents
- B: File handles
- C: File paths
- D: File extensions
View Answer
B
Q370: Windows supports which character encoding standards?
- A: ASCII and Unicode
- B: UTF-8 and ASCII
- C: Unicode and UTF-16
- D: ASCII and EBCDIC
View Answer
A