A word that has the same meaning or nearly the same meaning is called a synonym.
A word that has the opposite meaning is called an antonym.
A word that spells the same but sounds differ and have different meaning is called a homophone.
Wish you good marks and good luck!