How can a neutron have no charge if the quarks inside it are charged?
A neutron has zero electric charge. Yet the quarks inside it are all charged. How can both facts be true? Try adding the quark charges and see why swapping just one quark turns the neutron's charge into the proton's charge.
Cockcroft and Walton used a high voltage to accelerate protons into lithium seven. The reaction produced two alpha particles, detected by flashes. Check the totals: eight nucleons and four units of positive charge on each side. This was the first nuclear transformation caused by artificially accelerated particles.
Follow the two branches. Up and down are quarks. The electron and electron neutrino are leptons. Both families are elementary fermions: they have half-integer spin and no known smaller parts. A proton is a fermion too, but it's made of quarks.
You have an electron and a proton on your list. Both are fermions, but only one belongs on the lepton branch of the chart. Which one is it? Pick the classification that fits.
Read these two entries from CERN's Standard Model particle chart. An up quark has charge plus two thirds of e. A down quark has charge minus one third of e. Here, e is the positive elementary charge.
Start with the proton's three valence quarks: up, up, down. Add their charges. The two up quarks give you four thirds of e. Subtract one third of e for the down quark, and you get three thirds of e, or plus one e.
Now swap one up quark for a down quark. A neutron has one up and two down valence quarks. Add plus two thirds, minus one third and minus one third, all in units of e. Pick the net charge.
Match a particle to its antiparticle by keeping the same mass and reversing additive quantum numbers, such as electric charge and baryon number. Does that always make the charge negative? Zero stays zero. The neutron and antineutron are both neutral, with baryon numbers plus one and minus one respectively.
An exam question might ask: Compare the mass, electric charge and baryon number of a neutron and an antineutron. Read the table from top to bottom. The mass stays the same. Reversing zero charge still gives zero. Baryon number changes from plus one to minus one.