*Question G7B03:
Which of the following describes the function of a two-input AND gate?*  

*Correct Answer is  B: Output is high only when both inputs are high*  

### AI Response: (may contain errors)  

A two-input AND gate is a fundamental digital logic gate used in electronics. Here's a breakdown of its function and the reasoning behind the correct answer.

### Correct Answer Explanation:
- **Correct Answer: B: Output is high only when both inputs are high.**
  
  An AND gate outputs a high signal (1) only when both of its inputs are high (1). This can be summarized as:
  
  $$ 
  \text{Output} = A \land B 
  $$
  
  where:
  - $A$ and $B$ are the inputs.
  - The output is high (1) if $A = 1$ and $B = 1$.

### Why the Other Choices are Incorrect:
- **Choice A: Output is high when either or both inputs are low.**
  - This describes a NOR gate, not an AND gate. An AND gate requires both inputs to be high for a high output.

- **Choice C: Output is low when either or both inputs are high.**
  - This describes a NAND gate, which outputs low (0) only when both inputs are high. An AND gate does the opposite.

- **Choice D: Output is low only when both inputs are high.**
  - This also describes a NAND gate. An AND gate outputs high only when both inputs are high, not low.

### Summary:
- An AND gate requires both inputs to be high for a high output.
- The truth table for a two-input AND gate is as follows:

| Input A | Input B | Output |
|---------|---------|--------|
|    0    |    0    |   0    |
|    0    |    1    |   0    |
|    1    |    0    |   0    |
|    1    |    1    |   1    |

This truth table confirms that the output is high only when both inputs are high, reinforcing the correct answer.