The subject is "The number" (singular), so the verb should be "was" (not "were").
Corrected sentence:
"The number of candidates who appeared in the CSS examination this year was very large."
Get instant updates and alerts directly from our site.
Install this app on your device for quick access right from your home screen.