Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1591: The use of based pointers helps overcome the problem of _______ in memory mapped files.
  • A: invalid pointer references
  • B: pointer arithmetic
  • C: errors in file I/O
  • D: lack of memory
View Answer
A

Q1592: Using based pointers, the offsets are calculated relative to _______.
  • A: a pointer specified by the programmer
  • B: the start of the memory
  • C: memory page size
  • D: the system heap
View Answer
A

Q1593: Based pointers are particularly useful in which context?
  • A: Memory-mapped files
  • B: Network programming
  • C: GUI design
  • D: File compression
View Answer
A

Q1594: What is the main disadvantage of sorting huge files each time they are accessed?
  • A: It consumes too much CPU
  • B: It takes a long time
  • C: It's not feasible
  • D: All of the above
View Answer
D

Q1595: To avoid repeated sorting of large memory-mapped files, _______ are maintained.
  • A: snapshots
  • B: backup files
  • C: permanent indexes
  • D: pointer lists
View Answer
C

Q1596: Why is using the address returned by MapViewOfFile() for maintaining indexes not reliable?
  • A: It changes every time
  • B: MapViewOfFile doesn't return addresses
  • C: It's a static address
  • D: It returns file size
View Answer
A

Q1597: An effective alternative to storing absolute addresses in a memory-mapped file is to use _______.
  • A: file offsets
  • B: array indexes
  • C: global pointers
  • D: structs with addresses
View Answer
B

Q1598: In the given example, each record uses the first field as a key of how many characters?
  • A: 4
  • B: 6
  • C: 8
  • D: 10
View Answer
C

Q1599: How many file mappings are used in the example program?
  • A: 1
  • B: 2
  • C: 3
  • D: 4
View Answer
B

Q1600: The second file mapping is created for the purpose of _______.
  • A: sorting the input file
  • B: storing record lengths
  • C: storing the index file
  • D: mapping memory to heap
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now