Correct answer is (b) V cos(ωt)
The best explanation: Voltage across the capacitor will discharge through inductor unless the voltage across the capacitor becomes zero. Now, the inductor will start charging the capacitor. Voltage across the capacitor will be decreasing from V and will be periodic. But it will not be decaying with time, since both L and C are ideal.
∴ Voltage across the capacitor at time t>0 is given by V cos (ωt).