Symbol Table in Compiler Design

This set of MCQs helps students to learn about symbol Table in compiler design which is an important data structure created and maintained by the compiler in order to keep track of semantics of variables i.e. it stores information about the scope and binding information about names, information about instances of various entities such as variable and function names, classes, objects, etc.

Start Quiz

_________ register keeps tracks of the instructions stored in program stored in memory.

AR (Address Register) XR (Index Register) PC (Program Counter) AC (Accumulator)

A three input NOR gate gives logic high output only when _____________

One input is high One input is low Two input are low All input are high

The load instruction is mostly used to designate a transfer from memory to a processor register known as _______.

Accumulator

Instruction Register

Program counter

Memory address Register

A group of bits that tell the computer to perform a specific operation is known as ________.

Instruction code

Micro-operation

Accumulator

Register

The average time required to reach a storage location in memory and obtain its contents is called __________.

Latency time

Access time

Turnaround time

Response time

A floating point number that has an O in the MSB of mantissa is said to have __________.

Overflow

Underflow

Important number

Undefined

The BSA instruction is ___________.

Branch and store accumulator

Branch and save return address

Branch and shift address

Branch and show accumulator

Translation from symbolic program into Binary is done in __________.

Two passes

Directly

Three passes

Four passes

The instruction ‘ORG O’ is a ______.

Machine Instruction

Pseudo instruction

High level instruction

Memory instruction

Memory unit accessed by content is called ______.

Read only memory

Programmable Memory

Virtual Memory

Associative Memory

PSW is saved in stack when there is a ________.

Interrupt recognized

Execution of RST instruction

Execution of CALL instruction

All of the mentioned

The multiplicand register & multiplier register of a hardware circuit implementing booth’s algorithm have (11101) & (1100). The result shall be ______.

(812)10

(-12)10

(12)10

(-812)10

The time interval between adjacent bits is called the __________.

Word-time

Bit-time

Turnaround time

Slice time

A k-bit field can specify any one of __________.

3k registers

2k registers

K2 registers

K3 registers

MIMD stands for __________.

Multiple instruction multiple data

Multiple instruction memory data

Memory instruction multiple data

Multiple information memory data

Quiz/Test Summary
Title: Symbol Table in Compiler Design
Questions: 15
Contributed by:
Steve