Alucard got the correct answer now we proceed.
Next question :
1.
NOR2.
XOR3.
XNOR4.
Quite a way to go with logic gates. I bet I had let a lot of this escape my mind since high school but, upon seeing your formulas, I got the hang of it and it's really interesting to play coding again. I hope am right though but the solution to your next question or problem is got to be:
1. 01000101
2. 01101111
3. 10001111
4. 0
Thanks for sharing