Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 76
Q1541:
In the example of a simple Caesar cipher, the file mapping approach processes characters by ______.
A. substituting characters sequentially
B. shuffling characters randomly
C. deleting characters
D. encrypting characters with a key
Correct Answer: A
Chapter: 76
Q1542:
The Caesar cipher example shifts characters in the ______ set.
A. Unicode
B. ASCII
C. Binary
D. Hexadecimal
Correct Answer: B
Chapter: 76
Q1543:
The processing time improvement using file mapping is most visible when file sizes are ______.
A. small
B. large
C. medium
D. unknown
Correct Answer: A
Chapter: 76
Q1544:
Sequential file access using file mapping may lose its advantage if the input and output files are too ______.
A. large
B. small
C. encrypted
D. compressed
Correct Answer: A
Chapter: 76
Q1545:
The Caesar cipher substitutes each character by shifting it a few places in the ______ set.
A. ASCII
B. Unicode
C. Hexadecimal
D. Binary
Correct Answer: A
Chapter: 76
Q1546:
File mapping allows access to file contents as if it were in ______.
A. memory
B. a stream
C. a socket
D. a database
Correct Answer: A
Chapter: 76
Q1547:
File mapping can improve performance by reducing the number of ______ operations.
A. disk read
B. disk write
C. network calls
D. all of these
Correct Answer: D
Chapter: 76
Q1548:
Sequential file access processes characters one after another in a ______ order.
A. random
B. sequential
C. binary
D. parallel
Correct Answer: B
Chapter: 76
Q1549:
The complexity of setting up file views is outweighed by the ______ gained in performance.
A. cost
B. complexity
C. benefit
D. disadvantage
Correct Answer: C
Chapter: 76
Q1550:
Using file mapping, the data can be accessed more like ______ rather than traditional file operations.
A. random access
B. streaming
C. sequential blocks
D. memory blocks
Correct Answer: D
Chapter: 76
Q1551:
The Caesar cipher is an example of ______ encryption.
A. symmetric
B. asymmetric
C. substitution
D. transposition
Correct Answer: C
Chapter: 76
Q1552:
File mapping is best suited for ______ file access patterns.
A. sequential
B. random
C. binary
D. indexed
Correct Answer: A
Chapter: 77
Q1553:
Memory mapping allows the use of ______-based algorithms to process files efficiently.
A. disk
B. memory
C. stream
D. thread
Correct Answer: B
Chapter: 77
Q1554:
The program 'sortFL' sorts a file containing ______ length records.
A. fixed
B. variable
C. dynamic
D. random
Correct Answer: A
Chapter: 77
Q1555:
The C library function used for sorting in the memory-mapped file example is ______.
A. sort
B. qsort
C. bsearch
D. merge
Correct Answer: A
Chapter: 77
Q1556:
The sorting key in the example is located at the ______ of the record.
A. end
B. start
C. middle
D. random
Correct Answer: B
Chapter: 77
Q1557:
The program creates a ______ copy of the input file before sorting.
A. temporary
B. backup
C. permanent
D. encryption
Correct Answer: A
Chapter: 77
Q1558:
The sorted file output in the program is sent to ______.
A. standard input
B. standard output
C. a file
D. socket
Correct Answer: B
Chapter: 77
Q1559:
In the example, a null character is appended to the file map after sorting to mark the ______.
A. end
B. start
C. middle
D. key
Correct Answer: A
Chapter: 77
Q1560:
File I/O operations are ______ in the sorting process shown in the program.
A. included
B. omitted
C. required
D. enhanced
Correct Answer: B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now