System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q821: FileTimeToLocalFileTime() converts ________ file time to local file time.
- A: UTC
- B: system
- C: file
- D: network
View Answer
A
Q822: LocalFileTimeToFileTime() converts ________ file time to UTC file time.
- A: local
- B: system
- C: file
- D: network
View Answer
A
Q823: GetFileType() API provides information about the type of ________.
- A: file
- B: disk
- C: file or pipe
- D: process
View Answer
C
Q824: GetFileAttributes() returns FILE_ATTRIBUTE_READONLY if the file is ________.
- A: read-only
- B: hidden
- C: system
- D: temporary
View Answer
A
Q825: The value 0xFFFFFFFF returned by GetFileAttributes() indicates ________.
- A: failure
- B: success
- C: normal file
- D: temporary file
View Answer
A
Q826: FILE_ATTRIBUTE_NORMAL means the file has no special ________.
- A: attributes
- B: size
- C: flags
- D: permissions
View Answer
A
Q827: FILE_ATTRIBUTE_TEMPORARY indicates the file is intended to be ________.
- A: temporary
- B: permanent
- C: system
- D: file
View Answer
B
Q828: GetFileAttributes() requires the ________ of the file or directory.
- A: name
- B: handle
- C: descriptor
- D: path
View Answer
A
Q829: Which structure receives the file times in GetFileTime()?
- A: LPFILETIME
- B: LPWIN32_FIND_DATA
- C: HANDLE
- D: DWORD
View Answer
A
Q830: What type does GetFileAttributes() return?
- A: DWORD
- B: HANDLE
- C: LPCTSTR
- D: LPFILETIME
View Answer
A