All Exams Test series for 1 year @ ₹349 only
Question

In a 4-to-2 priority encoder, if both D1 and D3 are HIGH, which input determines the output and why?

This question was previously asked in
RRB JE 2025 CBT 2 Mechanical and Allied Engg Question Paper English (2-Jul-2026) (Shift-1)
The correct answer is

D3 determines the output because it has higher priority

A priority encoder differs from an ordinary encoder in one crucial way: it is designed to handle the situation where more than one input is active at the same time. Instead of producing an invalid output, it applies a fixed priority ranking and encodes only the highest-priority active input, ignoring all lower ones.

In a 4-to-2 priority encoder with inputs D0, D1, D2, D3, the convention is that the higher-numbered input has higher priority:

  • D3 (priority 3) > D2 (priority 2) > D1 (priority 1) > D0 (priority 0)

With D1 = 1 and D3 = 1 simultaneously, the encoder compares their priorities. D3 outranks D1, so D3 determines the output, and the 2-bit output is the binary code for 3, i.e. 11.

This is exactly why the output is not undefined for multiple active inputs — resolving that ambiguity is the entire purpose of a priority encoder. The idea that both D1 and D3 set the output together is impossible, because the two-bit output can represent only one input number at a time. And D1 determining the output because it is the lower number reverses the rule: it is the higher-numbered, higher-priority input D3, not the lower one, that wins.

Was this answer helpful?

Important Questions from Combinational Circuits

  1. ________ is called Data Selector.
  2. Assertion (A) : A demultiplexer can be used as a decoder.

    Reason (R) : A demultiplexer is built by using AND gates only.

  3. Match the following :

    List – I List – II 
    a. Shift Registeri. Frequency Division
    b. Multiplexerii. Memory chip select generation
    c. Decoderiii. Parallel to serial conversion
    d. Counteriv. Many to one switch

    Codes :

  4. Match the following :

     List - I List - II
    (a) Minimization(i) Multiplexer
    (b) Successive Approximation(ii) Shift Register
    (c) Data Selector(iii) A/D Convertor
    (d) Sequence Generator(iv) QM Metdod

    Codes :

  5. List – IList – II  
    a. Multiplexeri. Selects one of many inputs to a single output
    b. Flip-Flopii. Combinational circuit
    c. Shift Registeriii. Memory
    d. Parallel Adderiv. Sequential logic

    Codes :

Need Expert Advice?
Test Series
RRB JE img
Railways
RRB JE (CBT 1 + CBT 2) 2026 Mock Test Series
1515 Tests 19 Tests Free
1833 Attempts
4.3(163)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App