Answer: B. Carbon's four valence electrons.
Explanation: Tetrahedral shaped structure is the structure in which central metal atom is bonded to 4 other atoms out of which 2 or in the plane of the paper and one is above the plane and other one is below the plane of the paper.
Thus carbon atom can form 4 bonds and shaped itself into tetrahedral structure as shown below -