A debugger is a tool used to test and debug programs. It allows programmers to pause execution at specific points (breakpoints), run code step-by-step, and inspect variables and registers to find logic or runtime errors.
Hence, the correct option is:
✅ Option 3: allows to set breakpoints, execute a segment of program, and display contents of registers.
Dynamic RAM (DRAM) stores each bit of data in a separate capacitor. Due to
leakage, the stored charge tends to dissipate over time and needs to be refreshed
periodically. Consider the following statements: P: DRAM requires refreshing because it uses capacitors to store bits.
Q: SRAM does not require refreshing because it uses flip-flops instead of
capacitors.
R: DRAM is faster than SRAM because it needs less frequent access.
S: DRAM is more suitable for main memory than SRAM due to its density.
In the design of a control unit of a processor, two common approaches are used:
hardware control and microprogrammed control. Consider the following
statements:
Hardware control units are generally faster but more difficult to modify
than microprogrammed control units.
In a horizontal microprogrammed control unit, each control signal has a
separate bit in the control word.
Vertical microprogramming leads to longer control words but provides
greater parallelism.
Microprogrammed control units are typically easier to implement and
modify than hardware control units.
Statement 1 – True: Hardware control units are implemented using combinational logic circuits. They generate control signals directly through hardware, making them faster but difficult to modify since any change requires redesigning the hardware.
Statement 2 – True: In a horizontal microprogrammed control unit, each control signal is represented by a dedicated bit in the control word. This allows maximum parallelism but results in a wide (long) control word.
Statement 3 – False: In vertical microprogramming, control words use encoded fields to represent control signals. This makes the word shorter, not longer, but reduces parallelism since only a few signals can be activated at once.
Statement 4 – True:Microprogrammed control units are easier to implement and modify because control logic is stored in a control memory (microprograms). Modifications can be done by changing microinstructions instead of redesigning hardware.
Consider a system with a CPU having 6 registers and 32-bit instructions. The
maximum possible size of the main memory is 512 KB (1K = 210). Each instruction
takes two registers and one memory address as operands. Which one of the
following correctly gives the maximum possible distinct instructions that can be
there in the instruction set of the CPU?
(4) — Interrupt-driven I/O frees the CPU for compute-heavy jobs; under very I/O-intensive loads, polling (programmed I/O) can outperform by avoiding high interrupt overhead.
Consider the program below which uses
six temporary variables a, b, c, d, e, and f.
a =1
b =10
c =20
d = a + b
e = c + d
f = c + e
b = c + e
e = b + f
d =5+ e
return d + f
Assuming that all the above operations take their operands from registers, the minimum number of registers needed to execute this program without spilling is