Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q851: The application lsW uses the option -l to _________.
  • A: list attributes of files
  • B: traverse directories
  • C: compile code
  • D: delete files
View Answer
A

Q852: The option -R in lsW is used for ________.
  • A: recursive traversal through subfolders
  • B: file deletion
  • C: listing files
  • D: renaming files
View Answer
A

Q853: The lsW program works only with ________ pathname.
  • A: relative
  • B: absolute
  • C: virtual
  • D: root
View Answer
A

Q854: In the sample program, BOOL TraverseDirectory() likely returns a value indicating ________.
  • A: success or failure
  • B: number of files found
  • C: file size
  • D: directory depth
View Answer
A

Q855: The function DWORD FileType() probably returns the ________.
  • A: type of file
  • B: creation date
  • C: file size
  • D: file attributes
View Answer
A

Q856: ProcessItem() function in the sample code processes a(n) ________.
  • A: file or directory
  • B: error code
  • C: file handle
  • D: file name
View Answer
A

Q857: _tmain function in the code is the ________.
  • A: entry point
  • B: main function
  • C: library
  • D: callable API
View Answer
B

Q858: Flags[MAX_OPTIONS] array is used to store ________.
  • A: option switches
  • B: file names
  • C: file sizes
  • D: file attributes
View Answer
A

Q859: The variable searchPattern holds the ________.
  • A: filename or wildcard pattern
  • B: current directory
  • C: path length
  • D: file attributes
View Answer
A

Q860: In the code, fileIndex is assigned the result of the function ________.
  • A: Options
  • B: TraverseDirectory
  • C: FileType
  • D: ProcessItem
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now