System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1721: The correct typecast of pcci in the example is to a _______.
- A: char pointer
- B: BOOL function pointer
- C: FILE pointer
- D: DWORD pointer
View Answer
B
Q1722: Which keyword is used to handle the calling convention in the cast?
- A: __cdecl
- B: __stdcall
- C: __far
- D: __near
View Answer
A
Q1723: To explicitly link and call a function, what should be done first?
- A: GetProcAddress
- B: LoadLibrary
- C: Declare DLL
- D: LoadExecutable
View Answer
B
Q1724: The correct order of operations in explicit linking is:
- A: LoadLibrary โ GetProcAddress โ Cast โ Call
- B: GetProcAddress โ LoadLibrary โ Call โ Cast
- C: Cast โ LoadLibrary โ Call โ GetProcAddress
- D: Call โ Cast โ LoadLibrary โ GetProcAddress
View Answer
A
Q1725: The string _T("cci_f") represents _______.
- A: a DLL name
- B: an entry point name
- C: an error string
- D: a boolean value
View Answer
B
Q1726: In the command-line input, which argument specifies the DLL name?
- A: argv[0]
- B: argv[3]
- C: argv[4]
- D: argv[5]
View Answer
C
Q1727: If fewer than 5 arguments are passed to the program, it shows usage message and _______.
- A: exits successfully
- B: calls the DLL
- C: continue execution
- D: reports an error with ReportError
View Answer
D
Q1728: The expression `TCHAR YNResp[5] = YES;` is used to _______.
- A: store a numeric value
- B: store an address
- C: store a response
- D: store a filename
View Answer
C
Q1729: The DLL must contain a function named _______ to be located with GetProcAddress.
- A: main
- B: cci_f
- C: start_function
- D: dll_main
View Answer
B
Q1730: The value returned by LoadLibrary is stored in a variable of type _______.
- A: VOID*
- B: HMODULE
- C: FARPROC
- D: DWORD
View Answer
B