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

Virtual memory consists of ______?

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

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

A Stack-organised Computer uses instruction of _____

A. Indirect addressing
B. Two-addressing
C. Zero addressing
D. Index addressing
Answer» D. Index addressing
5.

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» D. 20 bits
6.

Logic X-OR operation of (4ACO) H & (B53F) H results _____

A. AACB
B. 0000
C. FFFF
D. ABCD
Answer» D. ABCD
7.

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» C. Half mode
8.

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

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» D. Locality of reference & memory
10.

The main memory in a Personal Computer (PC) is made of_____

A. Cache memory
B. Static RAM
C. Dynamic Ram
D. Both of the mentioned
Answer» E.