Answer: A. H0: Mean= 5 and Ha: Mean is not equal to 5.
Explanation:
Definitions:
- Null hypothesis 
 is a statement describing population parameters according to the objective of the study. It takes "≤,≥,=" signs.  - Alternative hypothesis
 is a statement opposite to the null hypothesis elaborating population parameters according to the objective of the study. It takes ">, <, ≠" signs. 
Given: The diameter of a spindle in a small motor is supposed to be 5.8 millimeters.
If the spindle is either too small or too large, the motor will not work properly. so, Mean diameter ≠ 5.8 to work correctly.
i.e. 

So, 

The required null and alternative hypotheses:
H0: Mean= 5 and Ha: Mean is not equal to 5.