a. The D and L configuration is determined by the configuration of the hydroxyl group in the lowest carbon atom.
Compound A:
The hydroxyl group is on the left. Therefore, it is an L-sugar.
Compound B:
The hydroxyl group is on the left. Therefore, it is an L-sugar.
Compound C:
The hydroxyl group is on the right. Therefore, it is a D-sugar.
b. Compounds A and B have different configurations only in the second carbon. They are not mirror images. Therefore, there are diastereoisomers.
Compounds A and C have different configurations in all the chiral centers. They are non-superimposable mirror images of each other. They are enantiomers.
Compounds B and C have different configurations only in third and fourth carbon. They are not mirror images. Therefore, there are diastereoisomers.