A batsman cannot be dismissed off a dead ball. A dead ball is when the ball is no longer in play - the batsman cannot be given out in this situation. However, batsmen CAN be dismissed off no balls, wides, and in certain free hit situations (though with restrictions). The question phrasing is slightly confusing but the concept is correct.