The correct option is B Attachment and motility
The types of appendages in bacteria are flagella, fimbriae and pili. And they are used for motility and attachment. A flagellum is a whip-like structure that allows a cell to move. Most Gram-negative bacteria have fimbriae; hair-like projections external to the cell's that allow bacteria to stick to the cells they infect. The terms pili and fimbria can be used interchangeably, although some researchers reserve the term pilus for the appendage required for bacterial conjugation.