System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q201: To generate platform-specific executables, ______ must be set correctly.
- A: linker
- B: header files
- C: compiler configuration
- D: OS version
View Answer
C
Q202: Which language functions like fopen() and fwrite() are used for file I/O operations?
- A: Java
- B: Python
- C: C/C++
- D: Assembly
View Answer
C
Q203: The function ______ is used to close a file in C.
- A: fclose()
- B: endfile()
- C: closefile()
- D: stop()
View Answer
A
Q204: Which I/O method allows cross-platform compatibility?
- A: Windows API
- B: Assembly routines
- C: Standard C/C++ functions
- D: Bash scripts
View Answer
C
Q205: Which of the following is a standard C library function for reading from a file?
- A: fopen()
- B: fread()
- C: fclose()
- D: fprint()
View Answer
B
Q206: Windows provides ______ to perform I/O operations.
- A: standard C compiler
- B: low-level system access
- C: its own set of built-in APIs
- D: fortran runtime support
View Answer
C
Q207: To perform inter-process communication and synchronization, it is better to use
- A: Windows APIs
- B: Standard C functions
- C: Console input
- D: POSIX headers
View Answer
A
Q208: If portability is the priority, developers should use
- A: Assembly code
- B: Windows headers
- C: Standard C/C++ functions
- D: Windows APIs
View Answer
C
Q209: Advanced features like asynchronous I/O and file locking are offered by
- A: Standard I/O stream functions
- B: Windows APIs
- C: C++ templates
- D: ANSI headers
View Answer
B
Q210: Which function is used in C to open a file?
- A: open()
- B: fileopen()
- C: fopen()
- D: readfile()
View Answer
C