System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q161: BOOL in Windows is used to store
- A: an array
- B: a string log
- C: a logical value
- D: a data handle
View Answer
C
Q162: LPTSTR data type refers to
- A: Pointer to Boolean
- B: Long Pointer to Zero terminated string
- C: Character pointer
- D: Windows error code
View Answer
B
Q163: Which of the following is NOT a Windows API data type?
- A: BOOL
- B: DWORD
- C: HANDLE
- D: INT
View Answer
A
Q164: Hungarian notation helps developers
- A: Identify errors
- B: Manage memory
- C: Easily recognize data type of variables
- D: Handle exceptions
View Answer
C
Q165: The prefix in variable ‘lpszName’ is used to
- A: Decorate variable names
- B: Enable Unicode
- C: Identify variable type
- D: Increase string length
View Answer
C
Q166: Which of the following is true for Windows APIs?
- A: Do not require parameters
- B: Work without headers
- C: Allow object manipulation
- D: Use numeric references
View Answer
C
Q167: windows.h file is used to include
- A: Keyboard drivers
- B: API prototypes and data types
- C: Hardware configurations
- D: Browser extensions
View Answer
B
Q168: In Windows OS, ______ are thrown when direct access to system objects is attempted
- A: Exceptions
- B: Errors
- C: Warnings
- D: Processes
View Answer
A
Q169: System resources in Windows such as memory and threads are accessed via
- A: Direct referencing
- B: Memory IDs
- C: Handles
- D: Function calls
View Answer
C
Q170: Windows APIs are used for
- A: Device driver execution
- B: Object access and manipulation
- C: Web programming
- D: Graphic rendering
View Answer
B