What Is a Logic Gate? Types & Examples Explained
A logic gate is a basic building block of digital electronics that receives one or more inputs and produces an output according to a logical rule. Computers, smartphones, calculators, digital watches, routers, gaming consoles, and countless other electronic devices ultimately rely on combinations of logic operations. These gates commonly work with two logical states represented as 0 and 1, which can also be described as LOW and HIGH, FALSE and TRUE, or OFF and ON. A single logic gate performs a very small task, but millions or billions of logic elements working together can carry out extremely complicated calculations. Understanding logic gates is therefore one of the best starting points for learning how digital circuits and computers actually work.
The most familiar logic gates are AND, OR, NOT, NAND, NOR, XOR, and XNOR. Each follows a specific rule determining what output should appear for a particular combination of inputs. For example, an AND gate normally produces a 1 only when all required inputs are 1, while an OR gate produces a 1 when at least one input is 1. A NOT gate is even simpler because it has one input and produces the opposite state. Logic gates are closely connected with Boolean algebra, truth tables, binary numbers, transistors, integrated circuits, and digital system design. This guide explains logic gate meaning, different gate types, truth tables, examples, how gates are physically created, and why they matter in real electronic devices.
What Is a Logic Gate?
A logic gate is an electronic or conceptual circuit that performs a Boolean logical operation on one or more input signals and produces an output. In digital electronics, those inputs and outputs are generally treated as belonging to two logical states, usually represented by 0 and 1. A logic 0 may correspond to a lower voltage level, while logic 1 corresponds to a higher voltage level, although the exact voltages depend on the technology being used. Logic gates therefore convert simple electrical signals into decisions such as AND, OR, or NOT. All About Circuits describes logic gates as elementary building blocks of digital circuits with inputs and outputs commonly represented as HIGH or LOW, TRUE or FALSE, or 1 and 0.
The simplest way to understand a logic gate is to imagine a rule-based decision. Suppose two switches control whether a machine may start. If both switches must be ON before the machine operates, the decision behaves like an AND gate. If either switch is enough to activate a warning light, the decision resembles an OR gate. If a light should turn on whenever one sensor is OFF, the logic may involve a NOT gate. Electronic gates perform similar logical decisions using electrical signals instead of people manually evaluating conditions. Combining many such decisions allows engineers to build more complicated behavior from a relatively small collection of fundamental operations.
Logic gates can exist as abstract symbols in circuit diagrams or as physical electronic circuits built from transistors. When engineers draw a digital circuit, they often use standardized symbols to represent gates without showing every transistor and connection inside them. This abstraction makes complicated circuit designs far easier to understand. A designer can think in terms of an AND function or XOR function rather than repeatedly drawing the lower-level electronics that implements each operation. Eventually, however, those logical operations must be realized in hardware, typically through semiconductor technology inside an integrated circuit. This relationship between abstract logic and physical electronics is one of the fundamental ideas behind computer engineering.
Most introductory logic-gate examples use one or two inputs because they are easy to understand through truth tables. However, several gates can have more than two inputs. A four-input AND gate, for example, produces a 1 only when all four inputs are 1. A multi-input OR gate produces a 1 when one or more of its inputs are 1. The same logical rule extends naturally as the number of inputs increases. All About Circuits notes that AND, OR, NAND, and related gates can use multiple inputs while preserving their fundamental logical behavior. Engineers choose the number of gate inputs according to the requirements of the circuit being designed.
Logic gates are important because complex digital systems can be constructed by connecting many simple logical functions together. Adders, memory-control circuits, processors, counters, comparators, encoders, decoders, and communication systems all use logic operations somewhere in their design. Modern processors contain astonishing numbers of transistors arranged into circuits capable of implementing these and much more complicated functions. Users normally interact with software rather than individual gates, but software ultimately runs on processors whose hardware performs enormous numbers of logical operations. Understanding one small gate therefore provides a foundation for understanding how larger digital systems transform binary information into useful computing behavior.
How Logic Gates Work With Binary Inputs
Digital logic typically represents information using two states because two-state systems can be implemented reliably with electronic circuits. These states are commonly represented mathematically as 0 and 1. In a physical circuit, however, the numbers do not literally exist as printed digits inside the wires. Instead, voltage ranges are interpreted as logical LOW or HIGH levels according to the circuit technology. A lower voltage may represent logic 0 while a higher voltage represents logic 1. The important point is that the system distinguishes between two ranges reliably enough that electronic components can make repeatable logical decisions even when real electrical signals are not mathematically perfect.
A truth table is one of the easiest ways to describe how a logic gate behaves. The table lists every possible combination of inputs and shows the output produced for each one. A two-input gate has four input combinations: 00, 01, 10, and 11. If both input variables can independently be 0 or 1, these four combinations cover every possibility. Each type of logic gate assigns a particular output to those combinations. For example, the AND truth table assigns 1 only to 11, while the OR truth table assigns 1 to 01, 10, and 11. Truth tables therefore provide a complete and compact description of a gate’s logical behavior.
The AND gate provides a straightforward example of binary logic. If input A equals 0 and input B equals 0, the output is 0. If A equals 0 and B equals 1, the output remains 0, and the same result occurs for A equals 1 and B equals 0. Only when A and B both equal 1 does the AND output become 1. This behavior can represent situations where several conditions must all be satisfied before an action occurs. In a security system, for example, access could theoretically require both an approved credential and another confirmation signal before the door-control circuit produces an authorization output.
The OR gate uses the same two binary inputs but applies a different rule. An OR output is 0 only when all of its inputs are 0. If A is 1, B is 1, or both inputs are 1, the output becomes 1. This makes OR logic useful when several different conditions can independently trigger the same action. A warning system, for instance, might activate if either a heat sensor or a smoke sensor reports a dangerous state. All About Circuits summarizes the OR rule as producing a HIGH output when any of its inputs are HIGH. The gate converts multiple possible triggers into one logical result.
Binary logic does not mean that digital electronics can represent only two pieces of information. Instead, collections of binary digits can represent numbers, letters, images, sounds, instructions, addresses, and almost any other digital information. Logic gates process these binary patterns according to carefully designed circuits. An arithmetic circuit can use gate combinations to add binary numbers, while a comparator can determine whether two values match. Memory-control logic can decide when information should be written or read. By building increasingly sophisticated operations from binary decisions, digital systems can transform simple 0 and 1 states into the complex behavior users experience in modern computing devices.
AND, OR and NOT Gates Explained
The AND gate is one of the fundamental logic operations and normally has two or more inputs with one output. Its rule is simple: the output becomes 1 only when every required input is 1. For a two-input AND gate, the combinations 00, 01, and 10 all produce 0, while 11 produces 1. In Boolean algebra, a two-input AND function is commonly written as Y = A · B, Y = AB, or sometimes with another notation depending on context. The gate is useful whenever several conditions must all be satisfied simultaneously. All About Circuits describes an AND output as HIGH only when both inputs are HIGH.
A practical AND gate example could involve an industrial machine with two safety conditions. Suppose a machine should operate only when a protective guard is closed and an operator has pressed the start control. The guard sensor could represent input A, while the start signal represents input B. If either condition is false, the output remains false and the machine-control logic prevents operation. Only when both conditions are true does the AND function produce a true output. Real safety systems can be much more complex and require specialized safety-certified hardware, so this example is only intended to illustrate logical behavior. Nevertheless, it demonstrates why AND is naturally associated with the phrase “all conditions must be satisfied.”
The OR gate produces a 1 when at least one of its inputs is 1. For two inputs, 00 produces 0, while 01, 10, and 11 produce 1. In Boolean algebra, OR may be written as Y = A + B, where the plus sign represents logical OR rather than ordinary arithmetic addition. A simple example is a home alarm in which either a door sensor or a window sensor can trigger an alert. If neither detects a problem, the output remains 0. If either sensor produces a 1, the OR function produces 1 and another part of the system can respond.
The NOT gate is different because it usually has only one input. Its purpose is to invert or complement the incoming logical state. If the input is 0, the output becomes 1, and if the input is 1, the output becomes 0. Because it reverses the input state, a NOT gate is also called an inverter. All About Circuits describes the NOT gate as producing the complement of its input. In Boolean notation, the inverse of A may be written using a bar over A, an apostrophe, or a symbol such as ¬A, depending on the notation system being used.
A simple NOT example could involve a sensor that produces 1 whenever a door is closed, while a warning indicator should become active whenever the door is not closed. Passing the sensor signal through a NOT operation would reverse it, so a closed-door input of 1 generates an output of 0 and the warning remains inactive. When the door opens and the sensor becomes 0, the NOT output changes to 1 and the warning logic can activate. AND, OR, and NOT are often treated as foundational Boolean operations because many more complicated logic expressions can be constructed from them. Once these three behaviors are understood, NAND, NOR, XOR, and XNOR become much easier to learn.
NAND, NOR, XOR and XNOR Gates Explained
A NAND gate performs an AND operation and then inverts the result. The name NAND is a contraction of “NOT AND.” For two inputs, the output is 1 for 00, 01, and 10, but becomes 0 for 11. In other words, NAND produces 0 only when all required inputs are 1. This is exactly the opposite output of an AND gate for every corresponding input combination. All About Circuits describes the NAND truth table as the inverse of the AND truth table. NAND gates are especially important because they can be combined to reproduce all of the basic logic functions needed to construct digital circuits.
A NOR gate similarly combines an OR operation with inversion. The name stands for “NOT OR,” meaning the gate takes the result of an OR function and flips it. A two-input NOR gate produces 1 only when both inputs are 0. If A, B, or both inputs equal 1, the NOR output becomes 0. This makes the NOR truth table the exact inverse of the OR truth table. NOR gates can therefore represent conditions where an output should become active only if none of several inputs is active. Like NAND, NOR has an important property called universality, allowing engineers to build other fundamental gate functions from enough NOR gates.
The XOR gate, pronounced “exclusive OR,” behaves differently from a normal OR gate. A two-input XOR produces 1 when the inputs are different and produces 0 when the inputs are the same. Its truth table is therefore 00 → 0, 01 → 1, 10 → 1, and 11 → 0. All About Circuits summarizes XOR as producing a HIGH state when the input logic levels differ. This behavior makes XOR particularly useful in arithmetic and comparison circuits. For example, one stage of binary addition can use XOR because adding two different single binary digits produces a sum bit of 1, while equal inputs produce a different sum behavior.
An XNOR gate, or exclusive-NOR gate, produces exactly the opposite output of XOR. The output becomes 1 when both inputs are equal and 0 when they are different. Therefore, 00 produces 1, 01 produces 0, 10 produces 0, and 11 produces 1. This makes XNOR useful as a basic equality detector because it effectively asks whether two binary values match. All About Circuits describes XNOR as an XOR gate with its output inverted and notes that it produces HIGH whenever its inputs are at the same logic levels. Multiple XNOR operations can contribute to circuits that compare longer binary numbers.
NAND and NOR deserve additional attention because they are called universal gates. A universal gate can be interconnected in sufficient numbers to reproduce other logical functions. NAND gates can be arranged to create NOT, AND, OR, NOR, and other operations, while NOR gates can similarly reproduce the fundamental gate set. All About Circuits specifically describes both NAND and NOR as universal gates and demonstrates how basic functions can be constructed from either one. This property is valuable because circuit designers can sometimes standardize implementations around a smaller collection of gate structures. It also demonstrates that many apparently different logical operations can be transformed into equivalent arrangements.
Logic Gates and Boolean Algebra
Boolean algebra is the mathematical system used to describe logical variables and operations. It is named after mathematician George Boole and provides a convenient way to represent relationships between binary conditions. Instead of repeatedly drawing circuits, engineers can write expressions describing what output should occur. For example, an AND operation between A and B can be represented as AB, while OR is often represented as A + B. NOT is shown by complementing or inverting a variable. These expressions allow circuit designers to analyze, simplify, and transform logic before deciding exactly how the final electronic circuit will be implemented.
Boolean algebra differs from ordinary arithmetic even though some of the symbols look familiar. In traditional arithmetic, 1 + 1 = 2, but in Boolean OR logic, 1 + 1 produces 1 because the expression asks whether at least one input is true. Similarly, multiplication-like notation describes AND behavior rather than ordinary multiplication. Boolean variables are normally restricted to logical states rather than representing every possible numerical value. This specialized system matches the behavior of digital logic gates extremely well. All About Circuits describes AND, OR, and NOT as primitive Boolean operations and shows how composite operators such as XOR, XNOR, NAND, and NOR can be expressed in terms of those basic functions.
Boolean expressions can help engineers translate a real problem into a logical circuit. Suppose an alarm should activate when sensor A or sensor B detects trouble, but only if an enable switch E is turned on. One possible logical expression could be written conceptually as E AND (A OR B). The circuit can then contain an OR gate combining the sensor signals followed by an AND gate controlled by the enable input. If the enable signal is 0, the alarm output remains off even when a sensor is active. When E equals 1, either sensor can produce the output. This process of converting requirements into Boolean expressions is fundamental to digital-system design.
Boolean algebra also allows designers to simplify circuits. Two logical expressions can sometimes produce exactly the same truth table even though one appears much more complicated. By applying Boolean identities and theorems, engineers may reduce the number of operations required to create the same output behavior. Fewer logical elements can potentially reduce circuit area, power use, delay, and design complexity, although modern optimization involves many additional considerations. De Morgan’s theorems are particularly important because they show relationships between AND, OR, and inversion. All About Circuits notes that inversion transformations can turn AND-related functions into OR-related functions and vice versa, forming the basis of many NAND and NOR implementations.
Truth tables provide another way of checking Boolean expressions. If two different expressions produce identical outputs for every possible input combination, they represent the same Boolean function. This gives engineers a systematic way to verify transformations and simplifications. For two input variables there are four possible input combinations, meaning a complete table can quickly demonstrate whether two circuits behave identically. More inputs cause the number of possible combinations to grow rapidly, so specialized design tools become increasingly helpful for complex systems. Nevertheless, the basic principle remains the same: logical expressions, truth tables, and gate diagrams are different representations of the same underlying binary relationships.
How Logic Gates Are Built With Transistors
A logic-gate symbol hides a physical electronic circuit underneath it. Modern digital integrated circuits commonly implement logical functions using transistors that act as electronically controlled switching elements. A transistor can influence whether current flows through part of a circuit depending on the electrical signal applied to one of its terminals. By connecting transistors in carefully designed arrangements, engineers can create circuits whose voltage outputs correspond to AND, OR, NOT, NAND, NOR, and other logical behaviors. The exact implementation depends on semiconductor technology, performance goals, power requirements, and circuit design. Users usually never see these internal transistor structures because millions or billions can exist inside a single integrated circuit package.
One of the most common digital circuit technologies is CMOS, which stands for complementary metal-oxide-semiconductor. CMOS logic generally uses complementary types of MOSFET transistors arranged so that the output is pulled toward an appropriate logical voltage depending on the inputs. A basic CMOS inverter provides a particularly clear example because two complementary transistor devices can produce the NOT function. When the input corresponds to one logical state, one part of the circuit conducts while the other does not, producing the opposite state at the output. More complicated transistor networks create NAND, NOR, and other operations. CMOS became extremely important partly because it can provide high-density logic with relatively low static power consumption.
NAND and NOR gates can be implemented efficiently using CMOS transistor arrangements. Their transistor networks naturally lend themselves to structures that become fundamental building blocks for larger digital systems. From NAND alone, designers can construct an inverter by connecting inputs appropriately, then use combinations of NAND gates to reproduce AND, OR, and more complex functions. NOR can serve the same universal role. All About Circuits identifies NAND and NOR as universal building blocks capable of reproducing other gate functions. The fact that these simple gates can generate an entire family of logical operations illustrates the power of modular digital design.
Real transistor circuits also need to deal with factors ignored in ideal truth tables. Signals take a finite amount of time to move through a gate, creating what engineers call propagation delay. Gates consume power, have limits on how much current they can drive, and may behave incorrectly if input voltages fall into undefined ranges. Temperature, manufacturing variation, electrical noise, supply voltage, and switching speed can all influence performance. Designers therefore consider far more than the logical truth table when creating practical integrated circuits. A theoretically correct Boolean design must still meet timing, power, reliability, and physical-layout requirements before it can function reliably as real hardware.
Integrated circuits allow enormous numbers of transistor-based logic structures to be manufactured on tiny semiconductor chips. Rather than wiring separate physical gate components together by hand, semiconductor fabrication creates dense networks capable of implementing processors, memory controllers, graphics units, and other complex systems. Digital design tools help engineers describe logical behavior at higher abstraction levels and automatically translate parts of those designs into lower-level gate structures. The final physical implementation can contain vast numbers of interconnected transistors. Yet the fundamental principles remain connected to the same truth tables students learn when they first study AND, OR, and NOT gates. Modern computing is therefore built from enormous complexity layered on top of remarkably simple logical ideas.
Real-World Examples of Logic Gates
One useful real-world example of AND logic is an access-control system. Imagine a secure room that requires both a valid badge and a correct authentication signal before the electronic lock can open. The first condition can be represented as input A and the second as input B. If either one is false, the logical output remains false and the lock stays secured. Only when both become true does the AND condition produce an authorization signal. Actual security systems require encryption, secure controllers, tamper protection, and many additional safeguards, but the simplified example demonstrates the type of decision represented by AND logic. Multiple conditions must simultaneously be satisfied before one action is allowed.
OR logic can be found conceptually in systems where several independent conditions may trigger the same response. A fire-warning system might need to activate an alarm if a smoke detector or heat detector reports danger. Each detector can be treated as one logical input, and the OR function produces an active output whenever at least one becomes true. A vehicle dashboard could similarly illuminate a warning when any of several related fault signals becomes active. Real systems often contain more advanced filtering and diagnostic logic to reduce false alarms, but OR remains a useful building block. It represents the general rule that one or more qualifying conditions are sufficient to produce the result.
XOR is especially important in arithmetic circuits. Consider adding two single binary digits without yet accounting for an incoming carry. When the inputs are 0 + 1 or 1 + 0, the sum bit should be 1. When the inputs are 0 + 0, the sum is 0, and when they are 1 + 1, the sum bit becomes 0 with a carry of 1 into the next position. The sum-bit pattern therefore matches XOR, while an AND operation can generate the carry for this simplified half-adder circuit. Connecting additional logic creates full adders capable of handling carry inputs. Larger combinations ultimately contribute to arithmetic performed by processors.
XNOR provides a natural building block for equality checking. Suppose a circuit needs to determine whether bit A matches bit B. If both are 0, XNOR produces 1, and if both are 1, it again produces 1. When one is 0 and the other is 1, the output becomes 0. Multiple XNOR gates can compare corresponding positions in larger binary words, with additional logic combining the comparison results to determine whether entire values match. This approach can contribute to digital comparators, address matching, and data-checking circuits. All About Circuits describes XNOR’s HIGH output for equal input states, making its comparison function straightforward to understand.
Logic gates also appear inside controllers that make decisions based on many sensor inputs. A smart appliance might respond differently depending on whether a door is closed, a temperature threshold has been reached, and a user command is active. A traffic-control system can use digital logic as part of sequencing and safety decisions. Network hardware uses enormous amounts of digital circuitry to process packet information, while storage devices use logic to control reading and writing. The actual devices are much more complicated than one simple gate diagram, but their circuits are built from layers of logical functions. Gates therefore provide the link between simple binary decisions and complex electronic behavior.
From Logic Gates to Digital Circuits
Individual logic gates are useful, but their real power appears when many gates are connected together to form larger circuits. A combinational logic circuit produces outputs determined by the current combination of input values. Gates such as AND, OR, XOR, NAND, NOR, XNOR, and NOT can be interconnected to perform arithmetic, decoding, comparison, selection, and other functions. All About Circuits explains that combinational circuits produce outputs based on their input combinations and that basic logic gates form combinational logic functions. Because there is no stored history in a purely combinational circuit, the same input pattern produces the same logical result regardless of the order in which the inputs arrived.
A half adder is a classic example of a small combinational circuit. It adds two one-bit binary inputs and produces both a sum output and a carry output. XOR can generate the sum, while AND generates the carry. A full adder extends the concept by accepting an additional carry input from a previous stage. Multiple full adders can be connected so larger binary numbers can be added. This is one of the foundational ideas behind digital arithmetic circuits. Modern processors perform much more sophisticated arithmetic, but addition at the hardware level can still ultimately be expressed through logical relationships built from relatively simple gate operations.
Multiplexers are another important combinational circuit. A multiplexer selects one of several input signals and forwards the chosen one to the output based on one or more control inputs. Logic gates can implement these selection rules, allowing different data paths to share common hardware. Decoders perform another function by translating an encoded binary input into one of several output lines. Encoders perform related transformations in the opposite direction. Comparators determine relationships between binary values. These circuits are reused throughout digital systems because they provide standard building blocks for organizing and manipulating information.
Sequential logic adds the ability to respond not only to present inputs but also to stored state or previous events. Latches, flip-flops, registers, counters, and state machines use logical operations together with feedback and timing mechanisms to remember information. All About Circuits distinguishes combinational logic from sequential circuits whose behavior can depend on when inputs change. Memory capability is essential because computers must remember instructions, intermediate calculation results, counters, status information, and control states. Once memory is combined with combinational logic, designers can construct systems that follow sequences rather than simply responding instantly to one current input pattern.
A processor can be understood at a very high level as an enormous system containing arithmetic logic, registers, control circuits, caches, communication interfaces, and many other components built from lower-level digital structures. Software instructions tell the processor which operations should be performed, while underlying circuits manipulate electrical states to execute those instructions. The jump from a two-input AND gate to a modern processor is enormous, but it occurs through layers of abstraction and repeated building blocks. Engineers rarely design modern chips by manually drawing every gate. Specialized hardware-description languages and electronic design automation tools handle much of that complexity, but logic gates remain part of the conceptual foundation beneath those advanced systems.
Why Logic Gates Matter in Computing and Electronics
Logic gates matter because they convert electrical states into predictable decisions. Without some form of logical switching, electronics could not efficiently determine whether conditions are true, compare values, select between alternatives, or calculate binary results. The mathematical simplicity of Boolean logic makes these operations predictable enough to be implemented physically and combined at enormous scale. Designers can verify small parts of a circuit independently and then connect them into larger modules. This modular approach allows increasingly complicated systems to be built without requiring engineers to reason about every transistor simultaneously. The gate abstraction therefore serves both an electrical purpose and an engineering-design purpose.
They are also essential to arithmetic. Addition, subtraction, multiplication, comparison, bit shifting, and many processor operations eventually depend on digital logic. XOR and AND gates can form the basic behavior of a half adder, while larger combinations create full adders and arithmetic logic units. These arithmetic units allow processors to manipulate numerical information represented in binary form. Everything from spreadsheet calculations to video-game physics eventually relies on hardware capable of performing these operations. Even applications that appear completely unrelated to mathematics require processors to calculate memory addresses, process instructions, and handle data. Logical building blocks therefore support virtually every type of software execution.
Logic gates also contribute to decision-making and control inside electronic systems. A processor needs circuits that determine which instruction should run next, which register should receive data, and whether a branch condition has been satisfied. A communication device needs logic for interpreting protocol information and routing data through internal processing paths. An embedded controller may respond to combinations of sensor readings and user commands. These systems can contain sophisticated architectures, but their physical implementation still depends on electronic circuits capable of representing and transforming logical states. Gate-level thinking provides one way of understanding how abstract decisions become physical electrical behavior.
Learning logic gates is valuable for students interested in computer science, electrical engineering, electronics, robotics, cybersecurity hardware, embedded systems, or computer architecture. The topic introduces binary representation, Boolean algebra, truth tables, circuit diagrams, transistor behavior, and logical reasoning in a relatively approachable form. Once the seven common gates are understood, concepts such as adders, multiplexers, flip-flops, counters, and processors become easier to study. Even programmers who never design hardware can benefit because logic operators used in programming follow closely related ideas. Expressions involving AND, OR, NOT, and XOR appear frequently in code, search filters, conditionals, bit manipulation, and access-control rules.
The simplest definition is still worth remembering: a logic gate is a basic digital circuit that applies a logical rule to one or more binary inputs and produces an output. AND requires its necessary inputs to be true, OR requires at least one, NOT reverses the state, NAND and NOR invert AND and OR, XOR detects differences, and XNOR detects equality. Truth tables provide a complete description of these behaviors, while Boolean algebra expresses the same relationships mathematically. Transistors implement the functions physically, and integrated circuits combine huge numbers of logical elements into sophisticated systems. From simple calculators to powerful computers, logic gates remain one of the essential foundations of digital technology.
Frequently Asked Questions About Logic Gates
What is a logic gate in simple words?
A logic gate is a tiny digital decision-making circuit. It receives one or more binary inputs, applies a rule such as AND, OR, or NOT, and produces a binary output.
What are the seven basic logic gates?
The seven commonly taught logic gates are AND, OR, NOT, NAND, NOR, XOR, and XNOR. Each has a different truth table describing how its output changes for different input combinations.
Which logic gates are universal gates?
NAND and NOR are commonly called universal gates because either type can be combined in sufficient numbers to implement the other fundamental logic functions.
What is a truth table?
A truth table lists every possible input combination for a logical function and shows the output produced for each combination. For a standard two-input gate, the four combinations are 00, 01, 10, and 11.
Where are logic gates used?
Logic gates are used throughout digital electronics, including computers, smartphones, calculators, embedded controllers, network equipment, digital storage systems, and industrial electronics. Larger circuits combine enormous numbers of logical operations to perform arithmetic, control, memory, data processing, and communication tasks.

