250+ TOP MCQs on Symbol Table Organization and Answers

Compilers Multiple Choice Questions & Answers (MCQs) on ” Symbol Table Organization″.

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

Answer: d
Clarification: 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

Answer: c
Clarification: 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

Answer: d
Clarification: 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

Answer: b
Clarification: It is in System Mode.

5. Logic X-OR operation of (4ACO) H & (B53F) H results __________
a) AACB
b) 0000
c) FFFF
d) ABCD

Answer: c
Clarification: 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

Answer: c
Clarification: Each should be 8*2=16 bits.

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

Answer: c
Clarification: 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

Answer: d
Clarification: 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

Answer: a
Clarification: 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

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

Leave a Reply

Your email address will not be published. Required fields are marked *