What is the null hypothesis for the following questions: Is there a relationship between heart rate and the number of cups of coffee drunk within the last 4 hours?

There is no relationship.

The null hypothesis for this question would be that there is no relationship between heart rate and the number of cups of coffee drunk within the last 4 hours. In statistical terms, it implies that the two variables are independent of each other and that any observed relationship is due to chance.