In a certain test, there are \(n\) questions. In this test \(2^{n-i}\) students gave wrong answers to at least i questions, where i \(=1,2, \ldots \ldots \mathrm{n}\). If the total number of wrong answers given is 2047 , then \(\mathrm{n}\) is equal to
(A) 10
(B) 11
(C) 12
(D) 13