A relay programming activity is a team-based learning exercise where students solve programming challenges in a timed, rotating format. It combines programming practice with teamwork and problem-solving skills development, making learning interactive and enjoyable.