In the DNA, the colored pegs are the one that represents the four nitrogen bases namely; adenine, guanine, thymine and cytosine. They are found in each DNA molecule and the correct labellings are: yellow - adenine, green - guanine, orange - thymine, blue - cytosine.
So the correct answer in the following options is letter B.