It is the normal rule (as explained in our free lectures on inflation).
If the flows are given at current prices then we use the real cost of capital.
If the flows are given at actual prices (with no mention of inflation, as is more likely to be the case in exam replacement questions) then we use the nominal (actual) cost of capital.