Everybody is familiar with starratings. Using the stars (or any other icon) makes 5 point or 10 point (if you make half stars) scales easy to answer. Also it is more universal for different cultures/countries, no debat anymore if 1 = very good or 5 = very good or even explaining the scale.
Instead of only rating a question and moving to the next question, I think it is a nice option to give some feedback about the rating first, people can decide if that is still the right answer before moving forward.
Solutions and code are given without any warranty, implied or otherwise.