Explore topic-wise MCQs in Compilers.

This section includes 25 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 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» C. (11001)2
2.

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» E.
3.

Virtual memory consists of _______

A. Static RAM
B. Dynamic RAM
C. Magnetic memory
D. None of the mentioned
Answer» B. Dynamic RAM
4.

Translation from symbolic program into Binary is done in__________

A. Two passes
B. Directly
C. Three passes
D. Four passes
Answer» B. Directly
5.

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
6.

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
7.

'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
8.

The instruction 'ORG O' is a______

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

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

A. Overflow
B. Underflow
C. Important number
D. Undefined
Answer» C. Important number
10.

Semantic Analyzer is used for?

A. Generating Object code
B. Main ting symbol table
C. None of the mentioned
D. Both of the mentioned
Answer» E.
11.

The BSA instruction is___________

A. Branch and store accumulator
B. Branch and save return address
C. Branch and shift address
D. Branch and show accumulator
Answer» C. Branch and shift address
12.

Suppose One of the Operand is String and other is Integer then it does not throw error as it only checks whether there are two operands associated with '+' or not .

A. True
B. False
Answer» B. False
13.

The fourth Generation computer was made up of?

A. Transistor
B. Vacuum tubes
C. Chips
D. Microprocessor chips
Answer» E.
14.

What does a Syntactic Analyzer do?

A. Maintain Symbol Table
B. Collect type of information
C. Create parse tree
D. None of the mentioned
Answer» D. None of the mentioned
15.

Which of these features of assembler are Machine-Dependent

A. Instruction formats
B. Addressing modes
C. Program relocation
D. All of the mentioned
Answer» E.
16.

In a memory-mapped I/O system, which of the following will not be there?

A. LDA
B. IN
C. ADD
D. OUT
Answer» B. IN
17.

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
Answer» D. None of the mentioned
18.

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
Answer» C. The branch address is obtained from a register in the processor
19.

_________ 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)
Answer» D. AC (Accumulator)
20.

If memory access takes 20 ns with cache and 110 ns without it, then the ratio (cache uses a 10 ns memory) is _____

A. 0.93
B. 0.9
C. 0.88
D. 0.87
Answer» C. 0.88
21.

Write Through technique is used in which memory for updating the data _____

A. Virtual memory
B. Main memory
C. Auxiliary memory
D. Cache memory
Answer» E.
22.

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
Answer» C. Has lower cell density
23.

Von Neumann architecture is ______

A. SISD
B. SIMD
C. MIMD
D. MISD
Answer» B. SIMD
24.

Cache memory acts between_______

A. CPU and RAM
B. RAM and ROM
C. CPU and Hard Disk
D. None of the mentioned
Answer» B. RAM and ROM
25.

The circuit used to store one bit of data is known as ______

A. Encoder
B. OR gate
C. Flip Flop
D. Decoder
Answer» D. Decoder