The correct options are
A gaining electrons
B losing electrons
C sharing electrons
Octet rule states that the atoms of all elements combine with other atoms to obtain eight electrons in their valence shell in order to attain the nearest noble gas configuration. This is done in following three ways:
1. Sharing of electrons
2. Losing electrons
3. Gaining electrons