Compilers Questions and Answers – Symbol Table Organization – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on ” Symbol Table Organization – 1″.

1. The main memory in a Personal Computer (PC) is made of __________
a) Cache memory
b) Static RAM
c) Dynamic Ram
d) Cache memory & RAM
View Answer

Answer: d
Explanation: It is made up of cache memory and RAM.

2. Cache memory works on the principle of _________
a) Locality of data .
b) Locality of memory
c) Locality of reference
d) Locality of reference & memory
View Answer

Answer: c
Explanation: Cache works on Locality of reference.

3. An n-bit microprocessor has __________
a) n-bit program counter
b) n-bit address register
c) n-bit ALU
d) n-bit instruction register
View Answer

Answer: d
Explanation: N bit microprocessor has bit instruction register.

4. When CPU is executing a Program that is part of the Operating System, it is said to be in __________
a) Interrupt mode
b) System mode
c) Half mode
d) Simplex mode
View Answer

Answer: b
Explanation: It is in System Mode.

5. Logic X-OR operation of (4ACO) H & (B53F) H results __________
b) 0000
View Answer

Answer: c
Explanation: Xoring the two operands we get FFFF.

6. If the main memory is of 8K bytes and the cache memory is of 2K words. It uses associative mapping. Then each word of cache memory shall be __________
a) 11 bits
b) 21 bits
c) 16 bits
d) 20 bits
View Answer

Answer: c
Explanation: Each should be 8*2=16 bits.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

7. A Stack-organised Computer uses instruction of __________
a) Indirect addressing
b) Two-addressing
c) Zero addressing
d) Index addressing
View Answer

Answer: c
Explanation: Zero addressing modes are used in stack organised computer.

8. In a program using subroutine call instruction, it is necessary ___________
a) Initialize program counter
b) Clear the accumulator
c) Reset the microprocessor
d) Clear the instruction register
View Answer

Answer: d
Explanation: It is mandatory to clear the instruction register.

9. Virtual memory consists of _________
a) Static RAM
b) Dynamic RAM
c) Magnetic memory
d) None of the mentioned
View Answer

Answer: a
Explanation: It does consist of static RAM.

10. In signed-magnitude binary division, if the dividend is (11100)2 and divisor is (10011)2 then the result is _________
a) (00100)2
b) (10100)2
c) (11001)2
d) (01100)2
View Answer

Answer: b
Explanation: After division we get 20 which is 10100.

Sanfoundry Global Education & Learning Series – Compilers.

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

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

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.