The correct option is C P could be Cl2 and Q could be O2.
P, Q, and R form covalent bonds which means P, Q and R are formed by sharing electrons.
Compound P forms single bond by sharing two valence electrons.
Compound R forms double bond by sharing four valence electrons.
Compound Q forms triple bond by sharing six valence electrons.
Chlorine and fluorine both have seven valence electrons in the outermost shell. Therefore, in order to achieve stable octet configurations, two chlorine or fluorine atoms can share one electron to form a single bond.
Two oxygen atoms share four electrons to attain a stable configuration and form a double bond.
Two nitrogen atoms share six electrons to attain stable configuration and form a triple bond.