Answer: Terry passed 16 science tests.
Step-by-step explanation: Given that by the end of the school year, Terry had passed 80% of his science tests and Terry failed 4 science tests.
We are to find the number of science tests that Terry passed.
Let x represents the total number of science tests that Terry appeared in.
Since he failed 4 science tests, so the number of science tests that Terry passes is given by

Since he passed 80% of his tests, so we get

So, total number of science tests = 20.
Therefore, the number of science tests that Terry passed is given by

Thus, Terry passed 16 science tests.