Solution:
Key idea: A random variable gives a number to each outcome of an experiment. It is discrete when its possible values can be listed one by one (counted), such as 0,1,2,….
Step 1 — Look at experiment (i).
The author of a book is a name, not a number, so this experiment does not give a random variable at all.
Step 2 — Look at experiment (ii).
The number of pages is a whole number, and the 50 books give at most 50 different values that can be listed, so this is a discrete random variable.
Step 3 — Look at experiment (iii).
A pupil's name is not a number, so this experiment does not give a random variable.
Step 4 — Look at experiment (iv).
Height itself can take any value in an interval, but here it is recorded to the nearest cm. The recorded values are whole numbers of centimetres, which can be listed, so the recorded height is a discrete random variable.
Step 5 — Look at experiment (v).
The number of cars passing in the hour is a count 0,1,2,…, so it is a discrete random variable.
Watch out: Height measured exactly would be a continuous random variable; it is the rounding to the nearest cm that makes the recorded value discrete.
Therefore, experiments (ii), (iv) and (v) give a discrete random variable.