Sets, Relations & Functions

Answer & solution
Official answer: D
Method
A function on two inputs is completely specified by the pair (f(0),f(1)), so Q is in bijection with N² and can be enumerated diagonally. A finite subset can be written as an increasing finite tuple; for each length these tuples are countable, and there are countably many lengths. In contrast a function in R specifies an infinite binary sequence. Cantor diagonalization constructs a sequence differing from the nth listed sequence at position n, defeating any proposed enumeration.
Solution
Rationals are countable. Functions from{0, 1} to N correspond to ordered pairs of naturals, a countable set. Finite subsets of N are a countable union over subset size of countable collections. Functions N→{0, 1} correspond to arbitrary subsets of N and are uncountable by Cantor’s theorem. Thus P, Q, S, D.