Cardiopulmonary resuscitation (CPR) is used when:
there is no pulse and no breathing.
This is the correct answer as CPR is intended to maintain circulation and provide artificial ventilation in cases where the heart is not beating and the person is not breathing.