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
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
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
Explanation: 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+
View Answer
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
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
Explanation: Uses binary numbers in machine language.
Sanfoundry Global Education & Learning Series – Compilers.
To practice all areas of Compilers, here is complete set of 1000+ Multiple Choice Questions and Answers.
- Apply for Computer Science Internship
- Check Compiler Design Books
- Practice Computer Science MCQs
- Practice MCA MCQs
- Check Computer Science Books