System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q861: If no filename is specified in the search pattern, the program uses ________ as default.
- A: *
- B: ?
- C: .
- D: #
View Answer
A
Q862: The parent path in the search pattern includes the ________.
- A: prefix with a slash
- B: suffix without a slash
- C: file name
- D: extension
View Answer
A
Q863: The suffix in the search pattern is the longest part ________.
- A: not containing a slash
- B: containing only slashes
- C: containing a dot
- D: ending with slash
View Answer
A
Q864: If pathLength returned by getCurrentDirectory() is 0 or greater than MAX_PATH_LONG, the program will ________.
- A: report an error
- B: continue silently
- C: retry
- D: get a new path
View Answer
A
Q865: The maximum path length constant MAX_PATH_LONG is set to ________.
- A: 32780
- B: 260
- C: 1024
- D: 65536
View Answer
A
Q866: In the code, ReportError() is called with the message ________.
- A: GetCurrentDirectory failed
- B: File not found
- C: Access denied
- D: Operation successful
View Answer
A
Q867: The wildcard character used in searchPattern if no file is specified is ________.
- A: *
- B: ?
- C: #
- D: %
View Answer
A
Q868: The code snippet indicates that the search pattern is split into parent and filename based on the presence of ________.
- A: a slash
- B: a dot
- C: a colon
- D: a space
View Answer
A
Q869: The UNIX command used to change file access time to the current system time is ________.
- A: touch
- B: change
- C: date
- D: ls
View Answer
A
Q870: GetSystemTimeAsFileTime() retrieves the current system time in ________ format.
- A: Local time
- B: Coordinated Universal Time (UTC)
- C: Unix time
- D: Windows time
View Answer
B