The correct option is B Proteins
Both flagella and pili, are the extended part of the bacterial cell and behave like locomotory structure. Flagella are like a whip or tail-like while pili are best described as hair-like. Flagella actually extend from the interior of the cell body while pili are strictly surface appendages. They are made up of different proteins- flagellin (or flagella) and pilin (or pili). They serve different purposes for the cell. Flagella are used primarily for propulsion and movement but can also be used to sense certain chemicals and temperature. Pili are used more for surface recognition and can allow certain bacteria to come together and exchange DNA with one another.
So, the correct answer is option D.