Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 86
Q1801:
cbSize must always match the size of DLLVERSION structure.
A. A
B. B
Correct Answer: A
Chapter: 86
Q1802:
Explicit linking can help in selecting appropriate DLL versions.
A. A
B. B
Correct Answer: A
Chapter: 86
Q1803:
Microsoft introduced side-by-side assemblies to handle DLL versioning.
A. A
B. B
Correct Answer: A
Chapter: 86
Q1804:
The field dwBuilderNumber refers to the build version of the DLL.
A. A
B. B
Correct Answer: A
Chapter: 86
Q1805:
Applications can determine DLL version requirements at runtime.
A. A
B. B
Correct Answer: A
Chapter: 86
Q1806:
Declaring DLL requirements using XML is necessary for side-by-side DLLs.
A. A
B. B
Correct Answer: A
Chapter: 86
Q1807:
The function signature HRESULT CALLBACK DllGetVersion(DLLVERSION *pdvi) is used to _______.
A. unload a DLL
B. check DLL size
C. query version info
D. link statically
Correct Answer: C
Chapter: 86
Q1808:
Which of the following is NOT a field in DLLVERSION structure?
A. cbSize
B. dwMajorVersion
C. dwInterfaceID
D. dwPlatformID
Correct Answer: C
Chapter: 86
Q1809:
Which platform identifier is used for DLLs restricted to modern Windows?
A. DLLVER_PLATFORM_NT
B. DLL_PLATFORM_WINDOWS
C. DLL_NT_MODE
D. DLL_WIN_ID
Correct Answer: A
Chapter: 86
Q1810:
How can applications access distinct DLL versions at runtime?
A. Using RAM-based loading
B. Using multithreaded interface
C. Using distinct file names and linking method
D. Using DLL compression
Correct Answer: C
Chapter: 86
Q1811:
Side-by-side DLLs allow _______.
A. simultaneous use of multiple versions
B. replacement of old DLLs
C. runtime DLL encryption
D. hardware-level debugging
Correct Answer: A
Chapter: 86
Q1812:
The field dwMinorVersion represents _______.
A. platform compatibility
B. minor version number
C. file path
D. hash value
Correct Answer: B
Chapter: 86
Q1813:
Applications that don’t specify version requirements may link to _______.
A. newer DLLs only
B. older DLLs only
C. any available DLL
D. optimized DLL
Correct Answer: C
Chapter: 86
Q1814:
Changing the interface of a DLL may cause _______ in legacy applications.
A. improvement
B. performance gain
C. compatibility issues
D. correctness
Correct Answer: C
Chapter: 87
Q1815:
What is a thread in Windows process management?
A. A type of data
B. An individual program
C. A unit of execution within a process
D. A kernel file
Correct Answer: C
Chapter: 87
Q1816:
Each process in Windows has its own _______.
A. network connection
B. code base
C. shared memory
D. virtual address space
Correct Answer: D
Chapter: 87
Q1817:
Processes in Windows can share which of the following?
A. Registers only
B. Memory and files
C. Address space and registers
D. Threads and stacks
Correct Answer: B
Chapter: 87
Q1818:
From a programmer's perspective, a Windows process includes one or more _______.
A. Stacks only
B. Code and data segments only
C. Registers only
D. Devices and tools
Correct Answer: B
Chapter: 87
Q1819:
Which component holds environment variables like the current path?
A. Stack
B. Environment block
C. Thread context
D. Thread storage
Correct Answer: B
Chapter: 87
Q1820:
Thread Local Storage (TLS) in a thread is used for what purpose?
A. Storing passwords
B. Permanent data storage
C. Unique data environment for the thread
D. Sharing data with other threads
Correct Answer: C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now