Create quizzes in Google Forms with Apps Script
Tynia Yang
Software Engineer, Google Forms
Try Google Workspace at No Cost
Get a business email, all the storage you need, video conferencing, and more.
SIGN UPLast year, we launched Quizzes in Google Forms to help teachers and students take assessment to scale. Using Quizzes, teachers are able to automate testing and give feedback to students faster by having Forms check responses against correct answers automatically. Today, we are making that functionality available to developers by extending the Google Apps Script Forms Service. With this feature, you can create and customize quizzes programmatically with Apps Script.
More specifically:
- Create quizzes
- Assign point values and correct answers for questions
- Implement custom grading schemes
Creating an auto-graded question
Multiple choice, checkbox and dropdown questions can be auto-graded, which means students can see their grades immediately upon submission. This is done by designating which options are the correct answer. Teachers can also set automatic feedback to show correct or incorrect responses, as well as assign point values to the question.Here is the Apps Script code that lets you create the quiz above:
For more details on what you can build with the Apps Script Forms Service, review the documentation, ask questions on Stack Overflow or in the G+ community, and let us know what else you’d like to see using the new public issue tracker for Apps Script.