04 - Truth tables and predicting output

1. Enter the missing value

2

0

3

1

2. Enter the missing value

2

0

3

1

3. Enter the missing value

1

0

2

3

4. Read the guidance on the below image. Given the below what would A+B.C mean?
`note: think about how you would process this equation. Would you do the + or the . first? Refer to what you learned in Maths: BODMAS or BIDMAS`

A not C not B

A or B or C

A or B and C

A and B and C

5. Enter the missing value

#1 –1 #2 - 0 #3 - 1,1

#1 –0 #2 - 0 #3 - 0,0

1 –0 2 - 1 3 - 1,1

#1 –0 #2 - 1 #3 - 0,0

6. Enter the missing value

#4 0 #5 – 0 #6 -1

#4 1 #5 – 1 #6 -1

#4 1 #5 – 1 #6 -0

#4 1 #5 – 0 #6 -1

7. Enter the missing value

# 7 – 1 #8 - 1 #9 –1

# 7 – 0 #8 - 0 #9 – 0

# 7 – 0 #8 - 1 #9 – 0

# 7 –1 #8 - 0 #9 – 1

8. This is a truth table for:

p NOT q

p AND q

You can only have A and B so the letters p and q are not valid

p OR q

9. Spot the error
```p    q    NOT p   NOT q     p AND q     NOT(p AND q)
==================================================
T    T     F         T        T             F```

NOT q should be False

Not p should be T

Not q should be removed altogether as it cannot be done

p AND q should be F

10. Why is NOT(p AND q) False?
```p    q    NOT p   NOT q     p AND q     NOT(p AND q)
==================================================
T    T     F         T        T             F```

Because it is the inversion (opposite) of (p AND q) which is True.

Because when you are dealing with a p and q input, the output will always be False if the input is either True or False

It shouldn't be False - It should be true

Because anything AND anything is always False