According to octet, the atoms of different elements combine with each other in order to complete their respective octets (i.e., 8 electrons in their outermost shell or 2 electrons in case of H,Li and Be to attain stable nearest noble gas configuration).
The Lewis structures of given molecules are as follows
As the octet is complete, hence it follows octet rule.
Octet rule is not followed in this case as there are total 6 electrons in the outermost shell of B even after bonding.
Octet rule is followed in case of Cl2.
As both the N have complete octet. Thus, it follows octet rule.