Boolean logic (3)

Resources | Revision Questions | Computer Science

Login to see all questions

Click on a question to view the answer

1.

Consider a logic circuit with inputs X and Y, and output Z. The circuit is represented by the following truth table:

XYZ
000
011
101
110

Write a logic expression for the output Z in terms of X and Y.

2.

Consider a logic circuit with two inputs, X and Y. The output is 'TRUE' only if either X is 'TRUE' OR Y is 'TRUE'. Describe the logic gate(s) required to create this circuit. Write the corresponding logic expression and provide a truth table to illustrate its operation.

3.

The expression (P AND Q) OR NOT R is a logical expression. (a) Create a truth table to show all possible combinations of inputs for this expression. (b) What is the output of the expression if P=TRUE, Q=FALSE, and R=TRUE?