You are on page 1of 2

TRUTH TABLE WORKSHEET

Activity 1

Consider: A = 10, B = 12, C = 14, D = 11 and evaluate the Boolean Expressions

1. A = B

2. A > B

3. C < > 14

4. D < A

Activity 2

SBA Completed Exam Written SBA completed AND Exam


Written
T T
T F
F F
F F

SBA Completed Exam Written SBA completed OR Exam


Written
T T
T F
F T
F F

Activity 3

Consider: A = 10, B = 12, C = 14, D = 11 and evaluate the Boolean Expressions


1. (A < C) AND (B < D)
2. (A>B) OR (A < 5)
3. (D>A) AND (NOT(C > D))
4. (A>B) OR ((A+B) < (A *B))
Activity 4

The following are some rules for passing a course:

- Passed both tests: Award Grade P


- Pass any one test only: Award Grade R
- Failed both tests: Award Grade F.

(a) Copy and complete the following table in your answer booklet:

Passed_Test_1 Passed_Test_2 Result

Y Y

Y N

N Y

N N

(4 marks)

(b) State TWO Boolean values that are used to test the rules in part (a).
(1 mark)

(c) Write a Pseudocode if condition to represent the rule that states if BOTH tests are passed
then award Grade P.
(5 marks)

Total 10 Marks

You might also like