Question 1
A programmable logic controller (PLC) is basically a computer that is capable of being programmed to perform electric control functions.
Question 2
All inputs to a NAND gate must be 1 to produce a 1 output.
Answer 1
Answer 2