how to add answer key to google forms

How to Add Answer Key to Google Forms

By Nicole Brown
AD

Streamlining assessments and collecting data has become increasingly effortless with Google Forms. But how about adding an answer key to evaluate responses efficiently? While Google Forms doesn't offer a built-in feature for this, there's a workaround using Google Sheets and Apps Script. Here's a step-by-step guide on how to add an answer key to Google Forms.

By following this process, you'll not only create an automated scoring system but also enhance the response collection process for your quizzes, tests, or surveys.

Setting Up the Google Form

Begin by creating or modifying your Google Form. Ensure that you've set point values for each question, which is essential for scoring.

AD
How to Create a Google Form: Easy Step-by-Step Tutorial
How to Create a Google Form: Easy Step-by-Step Tutorial
How To Get The Answers For Google Forms
How To Get The Answers For Google Forms
How to Assign a Google Form to Students in Google Classroom or by Email and See Student Responses
How to Assign a Google Form to Students in Google Classroom or by Email and See Student Responses

Now, let's move on to creating the answer key in Google Sheets.

Creating the Answer Key in Google Sheets

Start by clicking on the 'Responses' tab at the top of your Google Form. Select the 'Select Responses to Copy' icon (floppy disk with an up arrow) in the toolbar that appears.

How to Add the Correct Answer to Google Form [Answer Key]
How to Add the Correct Answer to Google Form [Answer Key]
NEW! Google Forms: Add Images to Answer Choices - Teacher Tech with Alice Keeler
NEW! Google Forms: Add Images to Answer Choices - Teacher Tech with Alice Keeler
How to Create a Google Form Quiz
How to Create a Google Form Quiz

Choose 'Create a new spreadsheet,' name it, and click 'Create' to create a new Google Sheet. This sheet will contain the responses to your form.

Creating the Answer Key Column

Add a new column (Column A, for instance) and name it 'Score.' You'll use this column to calculate the score for each response. To do this, enter the following formula in cell A2:

AD

'=IF(B2="Correct", 1, 0)'

Secure your quizzes and tests with a password on Google Forms
Secure your quizzes and tests with a password on Google Forms
📋✨ GOOGLE FORMS – EASY GUIDE✨📚
📋✨ GOOGLE FORMS – EASY GUIDE✨📚
Creating Random Google Forms Quiz Versions - Teacher Tech with Alice Keeler
Creating Random Google Forms Quiz Versions - Teacher Tech with Alice Keeler
Fill my google form all abt yourselves and long one too!
Fill my google form all abt yourselves and long one too!
A Reason to Celebrate: Import Questions to Google Forms - Teacher Tech with Alice Keeler
A Reason to Celebrate: Import Questions to Google Forms - Teacher Tech with Alice Keeler
How To Link Google Forms To QR Code
How To Link Google Forms To QR Code

Assuming you've set 'Correct' as the answer for your first question in the Google Form. Drag this formula down to copy it for the rest of the questions.

Automating the Scoring with Apps Script

Now, let's write an Apps Script to calculate the total score for each response automatically. Here's how:

AD

Click on 'Extensions' in the menu, then select 'Apps Script.' Delete any code in the 'Code.gs' file, and paste the following:

How to Create Google Forms on Mobile: A Beginner's Guide
How to Create Google Forms on Mobile: A Beginner's Guide
Must-Have Google Forms Quiz Add-Ons for Teachers
Must-Have Google Forms Quiz Add-Ons for Teachers
Uncommonly Google: Unique Ways to use Google Forms
Uncommonly Google: Unique Ways to use Google Forms
``` makefile function onEdit(e) { var sheet = e.source.getActiveSheet(); var range = sheet.getActiveCell(); if (range.getColumn() != 1) return; var gyrus = sheet.getRange(range.getRowIndex(), 1, 1, range.getColumn()); var values = gyrus.getValues(); sheet.getRange(range.getRowIndex(), 22).setValue(values[0].reduce(function(a, b) { return a + b; }, 0)); } ```

This script adds up the scores in Column A and displays the total score in Column V (you can change the column number '22' if needed). Save the project with a name, such as 'Scoring Form.'

Testing the Apps Script

Now, try submitting a response to your Google Form. You should see the total score appear in Column V (or the column you specified) of the Google Sheet, indicating that the scoring system works.

AD

Repeat this process for any additional answer choices or questions in your Google Form, adjusting the Apps Script and formulas as necessary.

Respondents Can Check Their Answers (Optional)

To enable respondents to check their answers, you can create a Google Form specifically for displaying answers. Use the 'Launch add-on' button in the 'Add-ons' menu, select 'Emaze,' and create a new form with hidden questions. This form will display the answers without showing the question text.

To connect this form to your responses, use Apps Script to generate a unique ID for each response in your response sheet. Then, use this ID to link the responses to their corresponding answer sheets.

With these steps, you've successfully added an answer key to your Google Form. Now you can efficiently evaluate responses, saving time and enhancing the overall assessment process. Happy creating!

AD