System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q791: Which member of WIN32_FIND_DATA stores the last time a file was accessed?
- A: ftLastAccessTime
- B: dwFileAttributes
- C: nFileSizeLow
- D: ftCreationTime
View Answer
A
Q792: The FindNextFile() API requires a handle returned by which function?
- A: FindClose
- B: FindFirstFile
- C: GetFileType
- D: GetFileTime
View Answer
B
Q793: FindClose() is used to ________ a search handle after completing a file search.
- A: close
- B: open
- C: initialize
- D: duplicate
View Answer
A
Q794: FileTimeToSystemTime() API converts file time to ________ time.
- A: system
- B: local
- C: file
- D: network
View Answer
A
Q795: SetFileTime() allows setting creation time, last access time, and ________ time.
- A: file size
- B: last write
- C: file attributes
- D: file type
View Answer
C
Q796: GetFileAttributes() returns FILE_ATTRIBUTE_DIRECTORY to indicate a ________.
- A: file
- B: directory
- C: read-only file
- D: hidden file
View Answer
B
Q797: The value 0xFFFFFFFF returned by GetFileAttributes() indicates ________.
- A: success
- B: failure
- C: normal file
- D: temporary file
View Answer
B
Q798: dwFileAttributes in WIN32_FIND_DATA contains information about a file’s ________.
- A: permissions
- B: size
- C: attributes
- D: owner
View Answer
C
Q799: Which of the following is NOT a member of WIN32_FIND_DATA?
- A: dwReserved0
- B: cAlternateFileName
- C: dwFilePermissions
- D: WFinderFlags
View Answer
C
Q800: FindFirstFile() can search files using ________.
- A: wildcard characters
- B: only exact names
- C: folder names
- D: network paths
View Answer
A