Compilers Multiple Choice Questions & Answers (MCQs) on “Storage Allocation”.
1. The idea of cache memory is based __________
a) On the property of locality of reference
b) On the heuristic 90-10 rule
c) On the fact that references generally tend to cluster
d) All of the mentioned
Answer: a
Clarification: Cache memory is based on the locality of references.
2. Which of the following is not a weighted code?
a) Decimal Number system
b) Excess 3-cod
c) Binary number System
d) None of the mentioned
Answer: b
Clarification: Excess 3 is not a weighted code.
3. The average time required to reach a storage location in memory and obtain its contents is called the _____
a) Seek time
b) Turnaround time
c) Access time
d) Transfer time
Answer: c
Clarification: Times used to access the contents.
4. (2FAOC) 16 is equivalent to __________
a) (195 084)10
b) (001011111010 0000 1100)2
c) (195 084)10 & (001011111010 0000 1100)2
d) None of the mentioned
Answer: b
Clarification: It is equivalent to (001011111010 0000 1100)2.
5. The circuit used to store one bit of data is known as_______
a) Register
b) Encoder
c) Decoder
d) Flip Flop
Answer: d
Clarification: 1 bit circuit is known as Flip Flop.
6. Computers use addressing mode techniques for ____________
a) Giving programming versatility to the user by providing facilities as pointers to memory counters for loop control
b) To reduce number of bits in the field of instruction
c) Specifying rules for modifying or interpreting address field of the instruction
d) All of the mentioned
Answer: d
Clarification: All of these are addressing mode techniques.
7. What characteristic of RAM memory makes it not suitable for permanent storage?
a) Too slow
b) Unreliable
c) It is volatile
d) Too bulky
Answer: c
Clarification: Ram is volatile.
8. The amount of time required to read a block of data from a disk into memory is composed of seek time, rotational latency, and transfer time. Rotational latency refers to ______
a) The time it takes for the platter to make a full rotation
b) The time it takes for the read-write head to move into position over the appropriate track
c) The time it takes for the platter to rotate the correct sector under the head
d) None of the mentioned
Answer: a
Clarification: Rotational latency is the time taken to make full rotation.