1. Home
  2. Explore
  3. Computer Science
  4. Logic Gates and Circuits

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Logic Gates and Circuits

  • 20Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Boolean Gate Rules

When does a two-input AND gate produce an output of 1?

20 questions

  1. 1

    When does a two-input AND gate produce an output of 1?

    1. A

      Only when both inputs are 0

    2. B

      Whenever the two inputs differ

    3. C

      Whenever at least one input is 1

    4. D

      Only when both inputs are 1

    Correct answer
    D

    Only when both inputs are 1

    Explanation

    An AND gate outputs 1 only if both input bits are 1; otherwise, its output is 0.

  2. 2

    What does an AND gate output for inputs 1 and 0?

    1. A

      0, because the first input is 1

    2. B

      1, because the inputs differ

    3. C

      1, because one input is 1

    4. D

      0, because both inputs are not 1

    Correct answer
    D

    0, because both inputs are not 1

    Explanation

    An AND gate requires both inputs to be 1, so the inputs 1 and 0 produce an output of 0.

  3. 3

    When does a two-input OR gate produce an output of 0?

    1. A

      Whenever at least one input is 0

    2. B

      When both inputs are 1

    3. C

      When the inputs are different

    4. D

      When both inputs are 0

    Correct answer
    D

    When both inputs are 0

    Explanation

    An OR gate outputs 0 only when neither input is 1—that is, when both inputs are 0.

  4. 4

    What condition makes an XOR gate output 1?

    1. A

      The two inputs are the same

    2. B

      At least one input is 0

    3. C

      Exactly one input is 1

    4. D

      Both inputs are 1

    Correct answer
    C

    Exactly one input is 1

    Explanation

    XOR outputs 1 when exactly one of its two inputs is 1; it outputs 0 when the inputs match.

  5. 5

    How does XOR differ from ordinary OR when both inputs are 1?

    1. A

      Both gates output 1

    2. B

      XOR outputs 1, while OR outputs 0

    3. C

      XOR outputs 0, while OR outputs 1

    4. D

      Both gates output 0

    Correct answer
    C

    XOR outputs 0, while OR outputs 1

    Explanation

    Ordinary OR outputs 1 if either or both inputs are 1. XOR requires exactly one input to be 1, so it outputs 0 for inputs 1 and 1.

  6. 6

    What does a NOT gate do to its input bit?

    1. A

      It copies the input without changing it

    2. B

      It inverts the input from 0 to 1 or from 1 to 0

    3. C

      It outputs 1 only when paired with another input

    4. D

      It outputs 0 whenever the input is 0

    Correct answer
    B

    It inverts the input from 0 to 1 or from 1 to 0

    Explanation

    A NOT gate, also called an inverter, changes 0 to 1 and 1 to 0.

  7. 7

    What is the output of a NOT gate when its input is 0?

    1. A

      0

    2. B

      It depends on a second input

    3. C

      It has no output

    4. D

      1

    Correct answer
    D

    1

    Explanation

    NOT inverts its single input, so an input of 0 produces an output of 1.

  8. 8

    In the ANSI-style drawings described, what visual feature distinguishes an AND gate from an OR gate?

    1. A

      The AND gate has a flat output-side edge, while the OR gate has a curved one

    2. B

      The AND gate has an extra curved line, while the OR gate has a small circle

    3. C

      The AND gate has one input, while the OR gate has no inputs

    4. D

      The AND gate is triangular, while the OR gate is rectangular

    Correct answer
    A

    The AND gate has a flat output-side edge, while the OR gate has a curved one

    Explanation

    In the described drawing style, the AND gate has a flat ridge at its output side, while the OR gate has a more curved shape.

  9. 9

    What extra mark is used to distinguish the drawn XOR gate from the OR gate?

    1. A

      A small circle at the output

    2. B

      A flat ridge at the output side

    3. C

      An additional curved line near the input side

    4. D

      A triangle placed after the gate

    Correct answer
    C

    An additional curved line near the input side

    Explanation

    The XOR symbol is drawn like an OR symbol with an additional curved line parallel to its input-side curve.

  10. 10

    Which described symbol represents a NOT gate?

    1. A

      Two curved lines with two outputs

    2. B

      A triangle with a small circle and one input

    3. C

      A crescent-shaped gate with two inputs

    4. D

      A flat-sided gate with two inputs

    Correct answer
    B

    A triangle with a small circle and one input

    Explanation

    The described NOT symbol is a triangle with a small circle indicating inversion; it takes one input.

  11. 11

    How many inputs and outputs does each of the described AND, OR, and XOR gates have?

    1. A

      Two inputs and one output

    2. B

      Two inputs and two outputs

    3. C

      One input and one output

    4. D

      One input and two outputs

    Correct answer
    A

    Two inputs and one output

    Explanation

    The described AND, OR, and XOR gates each take two input bits and produce one output bit.

  12. 12

    How many inputs does the described NOT gate take, and how many outputs does it produce?

    1. A

      Two inputs and one output

    2. B

      One input and one output

    3. C

      Two inputs and two outputs

    4. D

      One input and two outputs

    Correct answer
    B

    One input and one output

    Explanation

    The NOT gate operates on a single input bit and produces a single inverted output bit.

  13. 13

    How can separate logic gates be combined to form a larger circuit?

    1. A

      Connect one gate's output to another gate's input

    2. B

      Replace every gate's input with a truth table

    3. C

      Connect only the gates' outputs to each other

    4. D

      Give each gate a separate final output only

    Correct answer
    A

    Connect one gate's output to another gate's input

    Explanation

    A circuit can be chained by using the output of one gate as an input to another gate.

  14. 14

    When evaluating a layered logic circuit, which approach does the content recommend?

    1. A

      Start at the final output and guess the earlier inputs

    2. B

      Begin with the NOT gate regardless of its position

    3. C

      Evaluate every gate simultaneously without using intermediate results

    4. D

      Evaluate the lower, easiest operations before dependent higher operations

    Correct answer
    D

    Evaluate the lower, easiest operations before dependent higher operations

    Explanation

    The recommended approach is hierarchical: calculate the simpler lower-level operations first, then use their results to evaluate gates above them.

  15. 15

    A NOT gate receives the output 0 from an earlier part of a circuit. What does the NOT gate produce?

    1. A

      No output, because its input came from another gate

    2. B

      0, because it preserves the earlier result

    3. C

      1, because it inverts the earlier result

    4. D

      Either 0 or 1, depending on a second input

    Correct answer
    C

    1, because it inverts the earlier result

    Explanation

    A gate output can serve as another gate's input. Since NOT inverts 0, the resulting output is 1.

  16. 16

    If a circuit has eight independent one-bit inputs, how many possible input combinations are there?

    1. A

      8

    2. B

      64

    3. C

      16

    4. D

      256

    Correct answer
    D

    256

    Explanation

    Each of the eight bits can be either 0 or 1, giving 28=2562^8 = 25628=256 possible input combinations.

  17. 17

    How many input combinations must a truth table cover for a gate with two one-bit inputs?

    1. A

      4

    2. B

      2

    3. C

      8

    4. D

      3

    Correct answer
    A

    4

    Explanation

    Two one-bit inputs have four possible combinations: 00, 01, 10, and 11.

  18. 18

    Which list gives every possible combination of two one-bit inputs?

    1. A

      00, 01, 10, 11

    2. B

      01, 11, 21, 31

    3. C

      00, 10, 20, 30

    4. D

      00, 01, 11, 22

    Correct answer
    A

    00, 01, 10, 11

    Explanation

    Each input can be 0 or 1, so the complete set of pairs is 00, 01, 10, and 11.

  19. 19

    Why can intermediate gate results be recorded in separate truth-table columns?

    1. A

      They allow a one-input gate to process two bits

    2. B

      They change the gate's rules to match the circuit output

    3. C

      They remove the need to list the input combinations

    4. D

      They make it possible to reuse earlier results when evaluating later gates

    Correct answer
    D

    They make it possible to reuse earlier results when evaluating later gates

    Explanation

    Recording each gate's result lets you use those intermediate values to evaluate later layers without recalculating the earlier operations.

  20. 20

    For a truth table describing a complete circuit, what should its rows represent?

    1. A

      Every possible combination of the circuit's input bits

    2. B

      Only the intermediate outputs of the lowest gates

    3. C

      Only combinations that make the final output 1

    4. D

      One row for each type of gate, regardless of the inputs

    Correct answer
    A

    Every possible combination of the circuit's input bits

    Explanation

    A complete truth table includes a row for every possible combination of the circuit's input bits, so each case can be evaluated.

Question 1 of 20
Question 1 of 20

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent