(d)
Let the total number of contestants$= n$
A voter can vote to $(n - 1)$ candidates
$\therefore\ \ ^{n}C_{1} + \ldots + \ ^{n}C_{n - 1} = 126$
$\Rightarrow \ \ \ \ 2^{n} - 2 = 126$
$\Rightarrow \ \ \ \ 2^{n} = 128 = 2^{7}$
$\Rightarrow \ \ \ \ n = 7$