A full adder is a digital circuit that adds two binary digits and a carry-in. However, in this circuit, \( Z \) is connected to the carry-in input and is set to logic ‘1’. This configuration will cause the circuit to subtract \( Y \) from \( X \).
Here's why:
The XOR gate is used to perform a subtraction operation in digital circuits, where the input \( X \) and \( Y \) are processed with the logic ‘1’ carry-in (i.e., the full adder behaves like a subtractor with the carry-in being ‘1’).
In this case, \( X \) and \( Y \) will be subtracted, producing the desired difference.
Thus, the overall circuit functions as a subtractor when \( Z \) is set to ‘1’. Hence, the correct answer is (B).
In the circuit shown, assuming the threshold voltage of the diode is negligibly small, then the voltage \( V_{AB} \) is correctly represented by:
In the digital circuit shown in the figure, for the given inputs the P and Q values are:

The truth table corresponding to the circuit given below is 