Answer:
escape learning and avoidance learning
Step-by-step explanation:
If one rat learns to bar-press to turn off an electric shock and a second rat learns to bar-press when a warning signal that precedes the shock is turned on, the first rat is demonstrating escape learning and the second rat is demonstrating avoidance learning
escape learning is a process whereby an individual learns a behaviour to remove a harmful feeling such as electric shock while avoidance learning is a behaviour that is learned to avoid exposure to a harmful stimulus.