Explore topic-wise MCQs in Compilers.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.

1.

IN_COMPUTERS,_SUBTRACTION_IS_CARRIED_OUT_GENERALLY_BY____?$

A. 1’s complement method
B. 2’s complement method
C. signed magnitude method
D. BCD subtraction method
Answer» C. signed magnitude method
2.

PSW is saved in stack when there is a ____?

A. Interrupt recognized
B. Execution of RST instruction
C. Execution of CALL instruction
D. All of these
Answer» B. Execution of RST instruction
3.

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

A. (812)10
B. (-12)10
C. (12)10
D. (-812)10
Answer» B. (-12)10
4.

The circuit converting binary data in to decimal is_____

A. Encoder
B. Multiplexer
C. Decoder
D. Code converter
Answer» E.
5.

A three input NOR gate gives logic high output only when_____

A. One input is high
B. One input is low
C. Two input are low
D. All input are high
Answer» E.
6.

N bits in operation code imply that there are ___________ possible distinctOperators.

A. 2n
B. 2n
C. n/2
D. n2
Answer» C. n/2
7.

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

A. AR (Address Register)
B. XR (Index Register)
C. PC (Program Counter)
D. AC (Accumulator)
Answer» D. AC (Accumulator)
8.

Memory unit accessed by content is called______

A. Read only memory
B. Programmable Memory
C. Virtual Memory
D. Associative Memory
Answer» E.
9.

‘Aging registers’ are _______$

A. Counters which indicate how long ago their associated pages have been Referenced.
B. Registers which keep track of when the program was last accessed
C. Counters to keep track of last accessed instruction
D. Counters to keep track of the latest data structures referred
Answer» B. Registers which keep track of when the program was last accessed
10.

The instruction ‘ORG O’ is a______

A. Machine Instruction
B. Pseudo instruction
C. High level instruction
D. Memory instruction
Answer» C. High level instruction