Reacting to contact

Which of these codes will:

1. make a sprite shrink if it hits a wall?

2. make a sprite disappear if it hits a wall?

3. make a sprite bounce back to the left side of the stage if it hits a wall?