Step 1: Understanding the Concept:
A logic gate is a digital circuit with one or more inputs and one output. Each input and output is either 0 (low voltage) or 1 (high voltage). A truth table lists the output for every possible input combination, and the Boolean expression gives the same rule in algebra form.
Step 2: OR gate:
The OR gate gives output 1 if at least one input is 1. The output is 0 only when both inputs are 0. Its Boolean expression is
\[ Y = A + B \]
Here the plus sign means logical OR, not ordinary addition. That is why \(1 + 1 = 1\) in this algebra. The truth table is:
\[ \begin{array}{|c|c|c|} \hline A & B & Y = A + B \\ \hline 0 & 0 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 1 \\ \hline \end{array} \]
Step 3: AND gate:
The AND gate gives output 1 only when all inputs are 1. If any input is 0, the output is 0. Its Boolean expression is
\[ Y = A \cdot B \]
The dot means logical AND, and it works like ordinary multiplication of 0 and 1. The truth table is:
\[ \begin{array}{|c|c|c|} \hline A & B & Y = A \cdot B \\ \hline 0 & 0 & 0 \\ 0 & 1 & 0 \\ 1 & 0 & 0 \\ 1 & 1 & 1 \\ \hline \end{array} \]
Step 4: Quick check:
Row \(A = 1, B = 0\): OR gives \(1 + 0 = 1\), AND gives \(1 \cdot 0 = 0\). This agrees with both tables. In other words, OR gate gives 1 when at least one input is 1, and AND gate gives 1 only when both inputs are 1.
Final Answer:
OR gate: \(Y = A + B\), output is 0 only for input 00. AND gate: \(Y = A \cdot B\), output is 1 only for input 11.
\[ \boxed{Y_{OR} = A + B, \qquad Y_{AND} = A \cdot B} \]