# 04 - Truth Tables and predicting output

1. Enter the missing value

3

1

2

0

2. Enter the missing value

1

2

3

0

3. 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 or B or C

A not C not B

A and B and C

A or B and C

4. Enter the missing value

#4 1 #5 – 1 #6 -1

#4 1 #5 – 0 #6 -1

#4 1 #5 – 1 #6 -0

#4 0 #5 – 0 #6 -1

5. Enter the missing value

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

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

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

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

6. This is a truth table for:

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

p NOT q

p OR q

p AND q

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

p AND q should be F

Not p should be T

NOT q should be False

Not q should be removed altogether as it cannot be done

8. 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 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 it is the inversion (opposite) of (p AND q) which is True.

Because anything AND anything is always False

9. Enter the missing value

3

1

2

0

10. Enter the missing value

#1 1 #2 0 #3 1,1

#1 0 #2 1 #3 0,0

#1 0 #2 1 #3 1,1

#1 0 #2 0 #3 0,0