Final answer:
The ionization energy increases from left to right across the periodic table, while electron affinity increases with exceptions.
Step-by-step explanation:
The ionization energy (IE) increases from left to right across the periodic table, while the magnitude of the electron affinity (EA) increases from left to right with a few exceptions.
Ionization energy represents the energy needed to remove an electron from an atom. It generally increases across a period because as you move from left to right, the atomic size decreases and the electrostatic interactions between the nucleus and valence electrons increase. Electron affinity, on the other hand, is the energy change when an atom accepts an electron. It also increases from left to right across a period, although there are some exceptions.