Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q531: Which of the following is a valid Windows API for setting current working directory?
  • A: GetCurrentDirectory()
  • B: ResetCurrentDirectory()
  • C: SetCurrentDirectory()
  • D: MoveCurrentDirectory()
View Answer
C

Q532: The function SetCurrentDirectory changes
  • A: the folder name
  • B: the directory permissions
  • C: the current working directory
  • D: the root directory
View Answer
C

Q533: What does the function GetCurrentDirectory do?
  • A: Deletes directory
  • B: Creates directory
  • C: Returns current directory path
  • D: Copies directory path
View Answer
C

Q534: To retrieve current directory, we use
  • A: GetDirectory()
  • B: GetPathName()
  • C: GetCurrentDirectory()
  • D: ReadDirectory()
View Answer
C

Q535: GetCurrentDirectory requires which type of argument?
  • A: string length and string buffer
  • B: security access only
  • C: path only
  • D: numeric flag
View Answer
A

Q536: Each process in Windows has its own
  • A: current directory
  • B: system path
  • C: drive root
  • D: environment path
View Answer
A

Q537: The concept of current directory exists in
  • A: Windows only
  • B: Unix only
  • C: Windows and many OS
  • D: Mobile OS only
View Answer
C

Q538: The directory path used in CreateDirectory must be passed as
  • A: a buffer
  • B: an integer
  • C: a pointer to string
  • D: a registry key
View Answer
C

Q539: CreateDirectory() will fail if
  • A: the path is invalid
  • B: the directory already exists
  • C: the disk is full
  • D: all of the above
View Answer
D

Q540: SetCurrentDirectory changes directory for
  • A: the entire system
  • B: all users
  • C: the current process
  • D: system32 folder
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now