System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 5
Q181:
windows.h is essential for
A. calling hardware directly
B. using Windows APIs
C. editing the BIOS
D. code documentation
Correct Answer:
B
Chapter: 5
Q182:
Objects like DLL and pipe in Windows cannot be
A. Handled
B. Created
C. Accessed directly
D. Used in programs
Correct Answer:
C
Chapter: 6
Q183:
Windows provides ______ versions of each API for compatibility.
A. one
B. two
C. three
D. four
Correct Answer:
B
Chapter: 6
Q184:
Which architecture can run a 32-bit code but not fully utilize all hardware features?
A. 16-bit
B. 32-bit
C. 64-bit
D. 128-bit
Correct Answer:
C
Chapter: 6
Q185:
A major limitation of running 32-bit code on 64-bit hardware is
A. it crashes instantly
B. it runs slower
C. it cannot access large disk space or use large pointers
D. it requires no configuration
Correct Answer:
C
Chapter: 6
Q186:
To decide which version of API is used, it depends on
A. processor brand
B. user command
C. compiler's configuration
D. BIOS settings
Correct Answer:
C
Chapter: 6
Q187:
Windows supports both 32 and 64-bit APIs to
A. encourage users
B. enhance graphics
C. ensure compatibility across architectures
D. enable dual-boot
Correct Answer:
D
Chapter: 6
Q188:
A single source code can be built for both 32 and 64-bit versions through
A. programmer comments
B. header files
C. compiler settings
D. OS restart
Correct Answer:
C
Chapter: 6
Q189:
A source code written for 64-bit architecture
A. can run on 32-bit system directly
B. cannot run on 32-bit systems without recompilation
C. can be downgraded through BIOS
D. can be run through a browser
Correct Answer:
B
Chapter: 6
Q190:
To generate 32 or 64-bit executable code, the compiler relies on
A. source code format
B. OS version
C. user profile
D. compiler configuration
Correct Answer:
D
Chapter: 6
Q191:
Which of the following is NOT a benefit of 64-bit architecture over 32-bit?
A. More pointer size
B. Larger disk access
C. Lower performance
D. More memory support
Correct Answer:
C
Chapter: 6
Q192:
Recompilation is required when
A. moving code from 64-bit to 32-bit
B. updating an IDE
C. using the same machine
D. for Linux compatibility
Correct Answer:
A
Chapter: 6
Q193:
Windows architecture compatibility is achieved through
A. dual processors
B. 32-bit DLLs only
C. two versions of each API
D. multiboot configuration
Correct Answer:
C
Chapter: 6
Q194:
Compiler settings help determine
A. if code is user-friendly
B. if code is valid for the cloud
C. if 32-bit or 64-bit executable is created
D. if code is in C or C++
Correct Answer:
C
Chapter: 6
Q195:
______ allows building one source code for both 32-bit and 64-bit platforms.
A. Multithreading
B. Portability
C. Exception handling
D. Object-oriented design
Correct Answer:
B
Chapter: 6
Q196:
Running a 64-bit executable on a 32-bit machine directly
A. will run slowly
B. is not possible without changes
C. will use limited memory
D. runs faster
Correct Answer:
B
Chapter: 6
Q197:
On 64-bit systems, 32-bit code may fail to
A. use all features of the OS
B. connect to the internet
C. load APIs
D. compile correctly
Correct Answer:
A
Chapter: 6
Q198:
To run a 64-bit code on a 32-bit system
A. BIOS update is needed
B. compiler version is irrelevant
C. recompilation with configuration is required
D. pointer access is optional
Correct Answer:
C
Chapter: 6
Q199:
Which one is true about 32-bit executables on 64-bit systems?
A. They are blocked
B. They fully utilize memory
C. They run but lack 64-bit features
D. They require cloud access
Correct Answer:
C
Chapter: 6
Q200:
Access to larger disk space is a feature of ______ architecture.
A. 8-bit
B. 16-bit
C. 32-bit
D. 64-bit
Correct Answer:
D