The example that represents a discrete data constraint with viable solutions is:
number of tests passed
This is because the number of tests passed can only take on specific integer values (0, 1, 2, 3, etc.), making it discrete data. The other options (distance between points, average weight, and average score) represent continuous data or averages, which are not discrete.