Compilers Multiple Choice Questions & Answers (MCQs) on “Storage Allocation”.
1. Suppose that a bus has 16 data lines and requires 4 cycles of 250 nests each to transfer data. The bandwidth of this bus would be 2 Megabytes/sec. If the cycle time of the bus was reduced to 125 nsecs and the number of cycles required for transfer stayed the same what would the bandwidth of the bus?
a) 1 Megabyte/sec
b) 4 Megabytes/sec
c) 8 Megabytes/sec
d) 2 Megabytes/sec
Answer: d
Clarification: The bandwidth is 2 mb/s.
2. Floating point representation is used to store ____________
a) Boolean values
b) Whole numbers
c) Real integers
d) Integers
Answer: c
Clarification: They are real Integers.
3. SIMD represents an organization that ______________
a) Refers to a computer system capable of processing several programs at the same time
b) Represents organization of single computer containing a control unit, processor unit and a memory unit
c) Includes many processing units under the supervision of a common control unit
d) None of the mentioned
Answer: c
Clarification: SIMD includes processing units under the super vision of a common control.
4. In Reverse Polish notation, expression A*B+C*D is written as __________
a) AB*CD*+
b) A*BCD*+
c) AB*CD+*
d) A*B*CD+
Answer: a
Clarification: RPN is AB*CD*+.
5. In computers, subtraction is generally carried out by ______
a) 9’s complement
b) 10’s complement
c) 1’s complement
d) 2’s complement
Answer: d
Clarification: Subtraction is done by 2’s complement.
6. Assembly language ________
a) Uses alphabetic codes in place of binary numbers used in machine language
b) Is the easiest language to write programs
c) Need not be translated into machine language
d) None of the mentioned
Answer: a
Clarification: Uses binary numbers in machine language.