System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1901: When using lpCommandLine, what is the first token considered?
- A: Command string
- B: Program image name
- C: Function name
- D: Windows path
View Answer
B
Q1902: What separates tokens in the lpCommandLine string?
- A: Tabs
- B: Spaces
- C: Commas
- D: Semicolons
View Answer
B
Q1903: If the program image name does not include a path, which is the first location searched?
- A: Windows directory
- B: Current directory
- C: Directory of current process image
- D: System32 directory
View Answer
C
Q1904: Which directory is searched second if the path is not in the image name?
- A: Windows directory
- B: Environment PATH directory
- C: Current directory
- D: Temporary files directory
View Answer
C
Q1905: The function GetSystemDirectory() is used to retrieve the ______.
- A: Temporary directory
- B: System directory
- C: Program path
- D: Executable filename
View Answer
B
Q1906: Which Windows function retrieves the Windows directory?
- A: GetCommandLine()
- B: GetTempPath()
- C: GetWindowsDirectory()
- D: GetDirEnv()
View Answer
C
Q1907: Environment variable PATH is used in the ______ for locating executable image.
- A: Windows booting
- B: process path search
- C: search sequence
- D: user profile
View Answer
C
Q1908: What is used in Windows to obtain the command line of the current process?
- A: GetEnvironmentStrings()
- B: GetCommandLine()
- C: GetStartupInfo()
- D: GetSystemCommand()
View Answer
B
Q1909: The command line can be changed by a program.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1910: It is recommended to change the command line directly.
- A: A
- B: B
- C:
- D:
View Answer
B