Compilers Questions and Answers – Symbol Table Organization – 2

This set of Compilers Assessment Questions and Answers focuses on “Symbol Table Organization – 2”.

1. Generally Dynamic RAM is used as main memory in a computer system as it ____________
a) Consumes less power
b) Has higher speed
c) Has lower cell density
d) Needs refreshing circuitry
View Answer

Answer: b
Explanation: Because of higher speed it is Dynamic.

2. Write Through technique is used in which memory for updating the data ___________
a) Virtual memory
b) Main memory
c) Auxiliary memory
d) Cache memory
View Answer

Answer: d
Explanation: The answer is cache memory.

3. Cache memory acts between __________
a) CPU and RAM
b) RAM and ROM
c) CPU and Hard Disk
d) None of the mentioned
View Answer

Answer: a
Explanation: It acts between CPU and RAM.
advertisement
advertisement

4. The circuit used to store one bit of data is known as __________
a) Encoder
b) OR gate
c) Flip Flop
d) Decoder
View Answer

Answer: c
Explanation: Flip flop is 1 bit circuit.

5. Von Neumann architecture is __________
a) SISD
b) SIMD
c) MIMD
d) MISD
View Answer

Answer: a
Explanation: It is single instruction single data.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. In a vectored interrupt ____________
a) The branch address is assigned to a fixed location in memory
b) The interrupting source supplies the branch information to the processor through an interrupt vector
c) The branch address is obtained from a register in the processor
d) None of the mentioned
View Answer

Answer: b
Explanation: It branches to process the interrupt.

7. In a memory-mapped I/O system, which of the following will not be there?
a) LDA
b) IN
c) ADD
d) OUT
View Answer

Answer: a
Explanation: There is no LDA.
advertisement

8. If memory access takes 20 ns with cache and 110 ns without it, then the ratio (cache uses a 10 ns memory) is __________
a) 93%
b) 90%
c) 88%
d) 87%
View Answer

Answer: b
Explanation: The answer is 90%.

9. The addressing mode used in an instruction of the form ADD X Y is ________
a) Absolute
b) Indirect
c) Index
d) None of the mentioned
View Answer

Answer: c
Explanation: This addressing mode is indexed.
advertisement

10. _________ register keeps track of the instructions stored in program stored in memory.
a) AR (Address Register)
b) XR (Index Register)
c) PC (Program Counter)
d) AC (Accumulator)
View Answer

Answer: c
Explanation: Program Counter keeps track of the next instruction.

Sanfoundry Global Education & Learning Series – Compilers.

To practice all areas of Compilers Assessment Questions, 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.