The following questions are Assertion-Reason based questions. Choose the answer based on the codes given below.
(1) Both A and R are true and R is the correct explanation of A.
(2) Both A and R are true but R is not the correct explanation of A.
(3) A is true but R is false.
(4) A is false but R is true.
Assertion (A) : Atoms can combine either by the transfer of valence electrons from one atom to another or by sharing of valence electrons.
Reason (R) : Sharing and transfer of valence electrons is done by atoms to have an octet in their valence shell.

