SOLUTION:
David collects his sample by sitting outside the library and collecting data from everyone who enters. The sampling method used is Convenience sampling. This type of sampling where respondents are selected because they happen to be in the right place at the right time.