System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q521: The parameter dwFlags in MoveFileEx is used for
- A: defining security settings
- B: specifying move behavior
- C: sending notifications
- D: limiting file size
View Answer
B
Q522: Deleting a file using DeleteFile requires
- A: a path
- B: a URL
- C: a registry key
- D: a driver name
View Answer
A
Q523: CopyFile and MoveFile APIs belong to which OS?
- A: Unix
- B: Windows
- C: Linux
- D: MacOS
View Answer
B
Q524: The Windows API function MoveFileEx handles
- A: drive formatting
- B: disk partitioning
- C: file movement and overwriting
- D: data encryption
View Answer
C
Q525: Which function is used to create a directory in Windows?
- A: CreateDir()
- B: CreateDirectory()
- C: NewFolder()
- D: AddDirectory()
View Answer
B
Q526: The API CreateDirectory takes how many parameters?
- A: 1
- B: 2
- C: 3
- D: 4
View Answer
B
Q527: What does the second parameter of CreateDirectory represent?
- A: Folder name
- B: Security attributes
- C: Directory path
- D: Creation time
View Answer
B
Q528: The path of the directory to be created is specified by
- A: LPSECURITY_ATTRIBUTES
- B: lpFolderName
- C: lpPathName
- D: lpDirectoryPath
View Answer
C
Q529: Which function is used to delete a directory in Windows?
- A: DeleteDir()
- B: RemoveDirectory()
- C: EraseDirectory()
- D: DropDirectory()
View Answer
B
Q530: The function RemoveDirectory requires
- A: only path
- B: security access level
- C: path and permissions
- D: buffer name
View Answer
A