The CPU executes instructions from computer programs and is the primary component carrying out the computer's functions.