Skip to content
GATEiit

GATE EC 2025 Q24: Full adder with XOR on one input and Z as carry-in: function when Z = 1

Syllabus topic: Arithmetic circuits

Question

A full adder and an XOR gate are used to design a digital circuit with inputs X, Y, and Z, and output F, as shown below. The input Z is connected to the carry-in input of the full adder.

If the input Z is set to logic ‘1’, then the circuit functions as ________ with X and Y as inputs.

Inputs X, Y and Z at the top. X goes directly into the first input of a full adder. Y and Z feed an XOR gate whose output goes to the second input of the full adder. Z is also connected to the carry-in input on the right side of the full adder. The full adder's 2-bit output (marked with a slash and 2) is F.
Tap the figure to enlarge

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: B (official GATE 2025 final answer key)

Concept used: Two's-complement arithmetic: X+Y‾+1=X−Y, so an adder with an inverted operand and carry-in 1 performs subtraction.

Concept notes

Loading notes…

First step: With Z=1, find what the XOR gate passes to the full adder (Y⊕1) and what the carry-in is, then write the sum the full adder computes.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

Share this question

WhatsAppDownload image

Source: official GATE 2025 EC question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key