Friday, August 29, 2025

STLD OBJECTIVE QUESTION 2

objective questions
UNIT – III: Combinational Logic Circuits & PLDs

  1. Which of the following is used to convert information from ‘n’ input lines to a maximum of 2ⁿ unique output lines?
    a) Encoder
    b) Decoder
    c) Multiplexer
    d) Demultiplexer
    Answer: b) Decoder
  2. A priority encoder assigns priority to inputs based on:
    a) Input voltage
    b) Input position or order
    c) Output state
    d) Clock signal
    Answer: b) Input position or order
  3. A 4-to-1 multiplexer requires how many selection lines?
    a) 2
    b) 4
    c) 8
    d) 16
    Answer: a) 2
  4. A demultiplexer performs the inverse operation of a:
    a) Encoder
    b) Decoder
    c) Multiplexer
    d) Comparator
    Answer: c) Multiplexer
  5. Which component can be used to realize any Boolean function?
    a) Decoder and OR gates
    b) Encoder and AND gates
    c) Multiplexer and inverter
    d) Counter and NAND gates
    Answer: a) Decoder and OR gates
  6. In a 7-segment display, the number 8 requires:
    a) 4 segments
    b) 5 segments
    c) 6 segments
    d) 7 segments
    Answer: d) 7 segments
  7. A 4-bit comparator compares:
    a) Two 4-bit numbers
    b) Four 1-bit numbers
    c) Two 2-bit numbers
    d) Four 2-bit numbers
    Answer: a) Two 4-bit numbers
  8. The output of an encoder is:
    a) Binary code corresponding to active input
    b) Decimal value
    c) Complement of input
    d) None of these
    Answer: a) Binary code corresponding to active input
  9. Which device converts binary information from ‘n’ inputs to a maximum of 2ⁿ outputs?
    a) Decoder
    b) Multiplexer
    c) Encoder
    d) Demultiplexer
    Answer: a) Decoder
  10. PROM stands for:
    a) Programmable Read-Only Memory
    b) Programmable Random Output Memory
    c) Primary Read Output Memory
    d) Partial Read-Only Memory
    Answer: a) Programmable Read-Only Memory
  11. The main difference between PAL and PLA is:
    a) PAL has fixed AND array, PLA has programmable AND array
    b) PAL has programmable OR array, PLA has fixed OR array
    c) Both have fixed arrays
    d) None of the above
    Answer: a) PAL has fixed AND array, PLA has programmable AND array
  12. In PLDs, Boolean functions are realized using:
    a) Arrays of AND and OR gates
    b) Arrays of XOR gates
    c) Flip-flops only
    d) Multiplexers
    Answer: a) Arrays of AND and OR gates
  13. Which of the following can store data permanently?
    a) PROM
    b) PLA
    c) PAL
    d) Decoder
    Answer: a) PROM
  14. A 3-to-8 decoder has:
    a) 3 inputs and 8 outputs
    b) 8 inputs and 3 outputs
    c) 8 inputs and 8 outputs
    d) 3 inputs and 3 outputs
    Answer: a) 3 inputs and 8 outputs
  15. The 4-bit comparator output includes signals for:
    a) A=B, A>B, A<B
    b) A≠B only
    c) A≥B only
    d) None of the above
    Answer: a) A=B, A>B, A<B

UNIT – IV: Sequential Circuits I

  1. A flip-flop is a:
    a) Combinational circuit
    b) Sequential circuit
    c) Arithmetic circuit
    d) Memoryless device
    Answer: b) Sequential circuit
  2. RS flip-flop can have an invalid state when:
    a) S=1, R=0
    b) S=0, R=1
    c) S=1, R=1
    d) S=0, R=0
    Answer: c) S=1, R=1
  3. Which flip-flop eliminates the invalid state of RS flip-flop?
    a) JK flip-flop
    b) T flip-flop
    c) D flip-flop
    d) SR latch
    Answer: a) JK flip-flop
  4. The characteristic equation of a D flip-flop is:
    a) Q(next) = JQ' + K'Q
    b) Q(next) = T
    Q
    c) Q(next) = D
    d) Q(next) = R + S'
    Answer: c) Q(next) = D
  5. A T flip-flop toggles its output when:
    a) T=0
    b) T=1
    c) T changes from 0 to 1
    d) Clock = 0
    Answer: b) T=1
  6. A ring counter with 4 flip-flops has a sequence of:
    a) 4 states
    b) 8 states
    c) 16 states
    d) 2 states
    Answer: a) 4 states
  7. A Johnson counter with 4 flip-flops has:
    a) 4 states
    b) 8 states
    c) 10 states
    d) 16 states
    Answer: b) 8 states
  8. Which counter design has both shift and rotate capabilities?
    a) Johnson counter
    b) Ring counter
    c) Universal shift register
    d) Ripple counter
    Answer: c) Universal shift register
  9. A synchronous counter’s flip-flops are triggered:
    a) Independently
    b) Sequentially
    c) Simultaneously
    d) Randomly
    Answer: c) Simultaneously
  10. Ripple counters are also called:
    a) Serial counters
    b) Parallel counters
    c) Universal counters
    d) Decade counters
    Answer: a) Serial counters
  11. A shift register stores data in the form of:
    a) Parallel bits only
    b) Serial bits only
    c) Either serial or parallel form
    d) None of these
    Answer: c) Either serial or parallel form
  12. The operation of a latch is:
    a) Clock dependent
    b) Asynchronous
    c) Synchronous
    d) Sequential
    Answer: b) Asynchronous
  13. Conversion of one flip-flop to another involves:
    a) Modifying input equations
    b) Adding more flip-flops
    c) Using counters
    d) Using registers
    Answer: a) Modifying input equations
  14. A bi-directional shift register can shift data:
    a) Only left
    b) Only right
    c) Both left and right
    d) Neither left nor right
    Answer: c) Both left and right

UNIT – V: Sequential Circuits II (FSM)

  1. A finite state machine (FSM) consists of:
    a) Combinational logic and memory elements
    b) Flip-flops only
    c) Counters only
    d) Gates only
    Answer: a) Combinational logic and memory elements
  2. In a Mealy machine, the output depends on:
    a) Present state only
    b) Next state only
    c) Present state and input
    d) Input only
    Answer: c) Present state and input
  3. In a Moore machine, the output depends on:
    a) Input only
    b) Present state only
    c) Both input and state
    d) Previous output
    Answer: b) Present state only
  4. Converting Mealy to Moore machine increases:
    a) Number of states
    b) Number of inputs
    c) Number of outputs
    d) None of the above
    Answer: a) Number of states
  5. State reduction in FSM is used to:
    a) Minimize number of states
    b) Increase output states
    c) Increase complexity
    d) Add redundancy
    Answer: a) Minimize number of states
  6. A sequence detector identifies:
    a) Specific pattern of bits
    b) Parity bits
    c) Data errors
    d) Counter states
    Answer: a) Specific pattern of bits
  7. FSM used for overlapping detection means:
    a) Overlapping sequences are ignored
    b) Sequences can share bits
    c) Each sequence is separate
    d) Sequence repeats are invalid
    Answer: b) Sequences can share bits
  8. State table includes:
    a) Present state, input, next state, output
    b) Inputs and outputs only
    c) Flip-flop equations
    d) Logic diagram
    Answer: a) Present state, input, next state, output
  9. Clocked sequential circuits are controlled by:
    a) Continuous input
    b) Timing pulses
    c) Counters
    d) Asynchronous signals
    Answer: b) Timing pulses
  10. The process of sequence generation uses:
    a) FSM
    b) Decoder only
    c) Encoder only
    d) PLA
    Answer: a) FSM
  11. A Moore machine can be converted to Mealy machine by:
    a) Associating outputs with transitions
    b) Adding states
    c) Removing inputs
    d) Adding delay
    Answer: a) Associating outputs with transitions

  


STLD MID I MCQ 



UNIT-I: Review of Number Systems & Codes & Boolean Algebra & Logic Operations

1What is the radix of the hexa decimal number system?

a) 2 b) 8 c) 10 d) 16

Answer: d) 16

2Which code represents each decimal digit with a 4-bit binary code?

a) Gray code b) Excess-3 code c) BCD code d) 2421 code

Answer: c) BCD code

3How is Gray code different from binary code?

a) It uses more bits. b) Adjacent code values differ by only one bit.

c) It is a weighted code. d) It is primarily used for error detection.

Answer: b) Adjacent code values differ by only one bit.

4Which type of parity checking adds a bit to make the total number of 1s even?

a) Odd parity b) Even parity c) Hamming code d) Cyclic Redundancy Check

Answer: b) Even parity

5What is the purpose of Hamming code?

a) Error detection only b) Error correction only 

c) Error detection and correction d) Data compression

Answer: c) Error detection and correction

6Which Boolean theorem states that A+(B+C)=(A+B)+C

a) Commutative Law b) Associative Law c) Distributive Law d) De Morgan's Theorem

Answer: b) Associative Law

7The principle of duality in Boolean algebra involves interchanging which operations and constants?

a) AND and OR, 0s and 1s b) NOT and XOR, As and A's

c) NAND and NOR, inputs and outputs d) SOP and POS forms

Answer: a) AND and OR, 0s and 1s

8According to De Morgan's theorem, (A⋅B)′is equivalent to:

a) A′+B′ b) A′⋅B′ c) A+B d) A⋅B

Answer: a) 𝐴′+𝐵′

9Which of the following is considered a universal logic operation?

a) OR b) AND c) NOT d) NAND

Answer: d) NAND

10What is the standard form that represents a Boolean expression as a sum of product terms?

a) POS b) SOP c) NAND-NAND d) NOR-NOR

Answer: b) SOP

11What is the 1's complement of the binary number 10110?

a) 01001 b) 01010 c) 10101 d) 11001

Answer: a) 01001

12What is the 2's complement of the binary number 10110?

a) 01001 b) 01010 c) 10101 d) 11001

Answer: b) 01010

13The Excess-3 code for decimal digit 5 is:

a) 0101 b) 1000 c) 0010 d) 1011

Answer: b) 1000

14How many bits are required to represent a hexadecimal digit?

a) 2 b) 3 c) 4 d) 8

Answer: c) 4

15If a binary number is converted to Gray code, how many bits differ between adjacent code words?

a) All bits b) Two bits c) One bit d) Zero bits

Answer: c) One bit

16Which code is a self-complementing BCD code?

a) 8421 code b) Gray code c) Excess-3 code d) 2421 code

Answer: c) Excess-3 code

17The expression for De Morgan's theorem for OR operation is:

a) (𝐴+𝐵)′=𝐴′⋅𝐵′ b) (𝐴⋅𝐵)′=𝐴′+𝐵′ c) 𝐴+𝐵=𝐵+𝐴 d) 𝐴⋅(𝐵+𝐶)=𝐴⋅𝐵+𝐴⋅𝐶

Answer: a) (𝐴+𝐵)′=𝐴′⋅𝐵′

18Which logic gate outputs a HIGH only when all inputs are HIGH?

a) OR b) NOR c) AND d) XOR

Answer: c) AND

19Which logic gate is obtained by inverting the output of an OR gate?

a) AND b) NAND c) NOR d) XOR

Answer: c) NOR

20What is the main advantage of using NAND-NAND and NOR-NOR realizations?

a) Reduced complexity of circuits b) Easier to implement universal gates

c) Reduced power consumption d) Fewer gates required compared to other realizations

Answer: d) Fewer gates required compared to other realizations

UNIT-II: Minimization Techniques & Combinational Logic Circuits Design

1What is the maximum number of variables a K-Map can efficiently minimize according to the text?

a) 4 b) 5 c) 6 d) 8

Answer: c) 6

2The Quine-McCluskey method is also known as the:

a) Graphical method b) Tabular method

c) Boolean algebra method d) Karnaugh map method

Answer: b) Tabular method

3A Half Adder circuit is used to add:

a) Three binary bits b) Two binary bits

c) Four binary bits d) Multiple binary numbers

Answer: b) Two binary bits

4How many inputs does a Full Adder take?

a) One b) Two c) Three d) Four

Answer: c) Three

5Which circuit is used to find the difference between two single binary digits?

a) Full Adder b) Half Subtractor c) Full Subtractor d) BCD Adder

Answer: b) Half Subtractor

6 A 4-bit adder-subtractor circuit can perform:

a) Only addition b) Only subtraction c) Both addition and subtraction d) Multiplication

Answer: c) Both addition and subtraction

7 What is the primary advantage of a carry look-ahead adder?

a) Reduces power consumption b) Increases propagation delay

c) Reduces propagation delay d) Simplifies circuit design

Answer: c) Reduces propagation delay

8 In K-map minimization, a group of 8 adjacent 1s eliminates how many variables?

a) 1 b) 2 c) 3 d) 4

Answer: c) 3

9 The Quine-McCluskey method is particularly useful for minimizing Boolean functions with:

a) Few variables b) Many variables c) Only two variables d) Only one output

Answer: b) Many variables

10 Which combinational circuit is used to add two BCD numbers?

a) Full Adder b) Ripple Carry Adder c) BCD Adder d) Excess-3 Adder

Answer: c) BCD Adder

11 How many inputs does a Half Subtractor have?

a) 1 b) 2 c) 3 d) 4

Answer: b) 2

12 What is the output of a Half Subtractor?

a) Sum and Carry b) Difference and Borrow

c) Sum and Difference d) Carry and Borrow

Answer: b) Difference and Borrow

13 Which circuit is a modified BCD adder that works with Excess-3 code inputs?

a) Ripple Carry Adder b) Carry Look-Ahead Adder

c) Excess-3 Adder d) Parallel Adder

Answer: c) Excess-3 Adder

14To realize a three-level logic circuit, which forms can be used?

a) Only SOP b) Only POS c) NAND-NAND or NOR-NOR d) Universal gates only

Answer: c) NAND-NAND or NOR-NOR

15 The main goal of minimization techniques in digital logic is to:

a) Increase circuit complexity b) Reduce the number of gates

c) Increase propagation delay d) Use more components

Answer: b) Reduce the number of gates

16 Which method is suitable for minimizing switching functions with up to 6 variables?

a) Quine-McCluskey method b) K-Map

c) Boolean theorems only d) Tabular method only

Answer: b) K-Map

17 What is the sum output of a Half Adder with inputs A and B?

a) 𝐴⋅𝐵 b) 𝐴+𝐵 c) 𝐴⊕𝐵 d) 𝐴′+𝐵′

Answer: c) 𝐴⊕𝐵

18 The carry output of a Half Adder with inputs A and B is:

a) 𝐴⋅𝐵 b) 𝐴+𝐵 c) 𝐴⊕𝐵 d) 𝐴′+𝐵′

Answer: a) 𝐴⋅𝐵

19 The design of a 4-bit adder-subtractor circuit relies on using:

a) Half Adders b) Full Subtractors c) Full Adders d) Universal gates

Answer: c) Full Adders

20 What is the primary characteristic of a combinational logic circuit?

a) Output depends on present and past inputs b) Contains memory elements

c) Output depends only on present inputs d) Used for sequential operations

Answer: c) Output depends only on present inputs



Tuesday, August 5, 2025

critical thinking practice problems

GROUP -A

1. Smart Elevator Control Logic

A smart elevator controller has 4 binary sensors:

  • F: Floor requested (0 = even floor, 1 = odd floor)

  • O: Overload sensor (0 = not overloaded, 1 = overloaded)

  • D: Door open (0 = closed, 1 = open)

  • E: Emergency button (0 = normal, 1 = emergency)

The elevator should start moving (output = 1) only under the following rules:

  • It is not overloaded, and

  • The door is closed, and

  • Either:

    • A valid floor request is made, or

    • Emergency mode is activated

Frame the minimized logic expression that controls movement.


🔹 2. Industrial Fan Safety System

In a chemical plant, a fan must be automatically turned ON when dangerous conditions arise.
Inputs:

  • T = 1 if Temperature > 70°C

  • G = 1 if Gas leakage is detected

  • P = 1 if Power is available

  • M = 1 if Manual override is enabled

The fan should turn on if:

  • Either T or G is high, and P is available,

  • Or if the manual override (M) is used (regardless of other inputs).

Design the minimized Boolean function to control the fan operation.


🔹 3. Smart Traffic Light Control (4-Way Intersection)

Sensors detect traffic at four roads (A, B, C, D) entering a junction.
Each sensor = 1 if traffic is detected, 0 otherwise.

A special green signal is triggered only if:

  • At least three roads have traffic, and

  • Road D has no traffic (priority to other directions).

Determine the minimal logic expression to control this special green signal.


🔹 4. Smart Irrigation Controller

Inputs:

  • M = Moisture level low (1 = dry)

  • R = Rain sensor (1 = rain)

  • T = Timer condition met (1 = scheduled time)

  • O = Operator override (1 = force on)

The irrigation pump must turn ON when:

  • Moisture is low AND it is scheduled time,

  • But NOT if rain is detected,

  • Unless overridden by the operator.

Design and minimize the logic for the Pump ON signal.


🔹 5. Secure Access System – Restricted Logic

A door lock uses a 4-bit input (A, B, C, D) from a keypad. Only the following binary codes are valid to unlock the door:
0001, 0100, 1010, 1100, 1110, 1111
Other codes do not unlock the door.
Design the simplest logic function that outputs 1 for valid unlock attempts.
Also, use don't care conditions for 0000 and 1000, which are never generated.


🔹 6. Medical Device Alarm Logic

Inputs from sensors in a patient-monitoring device:

  • H = Heart rate abnormal

  • B = Blood pressure abnormal

  • T = Temperature abnormal

  • S = Sleep mode enabled

An alarm should activate only when:

  • Any two or more vitals are abnormal, and

  • Sleep mode is not enabled.

Write the Boolean function and minimize it to reduce logic hardware.


🔹 7. Data Transmission Fault Detection

A 4-bit checksum monitor system detects a fault when:

  • The XOR of all bits is 1 (odd parity), and

  • At least one bit is 1 (to ignore all-zero idle line)

Input bits: A, B, C, D
Design the logic for the Fault flag, and simplify the expression using grouping techniques.


 

GROUP -B

1. Complex Input Combinations (4 variables):

A digital security system uses four binary inputs A, B, C, and D. The output alarm is triggered (i.e., output = 1) for the following input states:
0, 2, 3, 6, 7, 8, 10, 11, 12, 13 (decimal values).
Additionally, the system designer notes that inputs 1 and 9 can never occur in practice.
Derive the most efficient logic expression to activate the alarm.


2. POS-type Minimization – Implied:

A logic function is 0 (false) for the input decimal values:
0, 1, 2, 5, 8, 9, 10, 14
For all other inputs (3, 4, 6, 7, 11, 12, 13, 15), the output is 1.
Find the minimized logic expression that defines this behavior.


3. Mixed Minterms with Don’t Care:

In a certain controller design, the output is 1 for the following binary combinations (decimal):
1, 3, 7, 11, 15
The combinations 0, 2, 5, 13 are considered irrelevant and may take either 0 or 1 (don’t care).
Find the most compact logic equation representing this output behavior.


4. Gray Code Sensitive System:

A system activates an output when the Gray code of a 3-bit input is one of the following:
000, 001, 011, 010 (in binary)
Determine the minimized Boolean expression for this output condition, using inputs A, B, and C where A is the MSB.


5. Pattern Recognition Function:

Design a logic function F(A, B, C, D) such that it outputs 1 only when the binary input represents a prime number less than 16 (i.e., 2, 3, 5, 7, 11, 13).
Derive the minimized Boolean expression to implement this logic.


6. Parity Detection with Conditions:

You have a 4-bit input (W, X, Y, Z).
The output should be 1 if the number of 1s in the input is odd, but only when W = 1.
Minimize the logic expression accordingly.


7. Unusual Grouped Logic Activation:

A logic circuit outputs high for inputs with the decimal values:
0, 1, 5, 7, 9, 11, 13, 15
Find the most efficient Boolean expression to represent this function.
Note: Direct SOP writing leads to long expressions; simplify optimally.


8. Dual Output Function Design:

Design two output functions F1 and F2 from 4 inputs A, B, C, D such that:

  • F1 = 1 for minterms {0, 2, 5, 6, 8, 10, 13}

  • F2 = 1 for maxterms {1, 4, 7, 9, 12, 14, 15}
    Find minimal Boolean expressions for both functions, using any valid technique.


GROUP -C

1.

A digital circuit has three inputs A, B, and C. The output F is high (1) for the following input combinations:

  • A=0, B=0, C=0

  • A=0, B=1, C=0

  • A=1, B=0, C=0

  • A=1, B=1, C=0

Minimize the Boolean expression for F using a systematic approach.


2.

A function F(A, B, C) is true for input combinations corresponding to the decimal values 1, 3, 5, and 7.
Determine the simplest Boolean expression for F.


3.

A certain logic function outputs 1 for the binary inputs:

  • 0001

  • 0011

  • 0111

  • 1111

Assume the inputs are D, C, B, A (in that order). Derive the minimized expression for the output function.


4.

A circuit takes four inputs W, X, Y, Z and gives output 1 only for the decimal inputs 0, 2, 5, 7, 8, 10, 13, and 15.
Find the minimized Boolean expression for the output function.


5.

A digital system defines an output function that is high when the input is in the set {4, 5, 6, 7, 12, 13, 14, 15} and low otherwise.
Find the most simplified expression for this output.


6.

Given a truth table with inputs A, B, C, D, the output is 1 for the minterms:
(1, 3, 7, 11, 15).
Simplify the Boolean function using grouping techniques.


7.

A certain digital logic circuit uses three inputs A, B, and C. The output is high for all input combinations where the number of 1s in the input is even (including zero).
Determine the minimal logic expression for this output.


8.

A control signal is active (1) when the inputs (A, B, C, D) match the binary representations of the decimal values 2, 3, 6, 7, 10, 11, 14, 15.
Write the minimized Boolean expression for this control signal.

STLD UNIT 2

 

L16: K-MAP INTRODUCTION 2, 3 VARIABLE

                                                                                                      Click Here For   Video Lecture 16
L17: KMAP 3 VARIABLES, KMAP 4 VARIABLES, EXAMPLE PROBLEMS ON KMAP 3,4 VARIABLES
                                                                                                      Click Here For   Video Lecture 17

L18:K MAP 4 VARIABLE WITH DONT CARE CONDITIONS(X)
                                                                                                      Click Here For   Video Lecture 18

L19:5 VARIABLE KMAP WITH POS AND SOP MINIMIZATION
                                                                                                      Click Here For   Video Lecture 19
L20:MINIMIZATION AND REALIZATION
                                                                                                      Click Here For   Video Lecture 20


MID-2 IMPORTANT QUESTIONS UNIT-3,4 & 5

UNIT-3 COMBINATIONAL CKTS: What is encoder? Design octal to binary encoder. Explain the priority encoder with a neat logic diagram. Realize ...