Compilers Questions and Answers – Storage Allocation – 2

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Storage Allocation – 2”.

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
View Answer

Answer: d
Explanation: 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
View Answer

Answer: c
Explanation: 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
View Answer

Answer: c
Explanation: SIMD includes processing units under the super vision of a common control.
advertisement
advertisement

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+
View Answer

Answer: a
Explanation: 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
View Answer

Answer: d
Explanation: 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
View Answer

Answer: a
Explanation: Uses binary numbers in machine language.

Sanfoundry Global Education & Learning Series – Compilers.

advertisement

To practice all areas of Compilers, here is complete set of 1000+ Multiple Choice Questions and Answers.

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.