TipsMake
Newest

Instructions on creating automated exam scoring sheets using Gemini

To improve the quality of teaching, teachers should combine various AI tools to quickly generate content. For exams created using Gemini, teachers can use Google Forms to create multiple-choice answer forms and grade them using Google Sheets. Below is a guide on creating multiple-choice answer forms and grading them using Google Sheets with Gemini.

 

How to grade exams automatically using Gemini

Step 1:

We prepare the exam questions in advance , perhaps using a matrix exam created with Gemini . Then, upload the exam to Gemini and enter the command below to write the Google Apps Script code to create an online Google Form grading sheet.

Tạo đoạn mã Google Apps Script để tạo Google form cho học sinh điền đáp án với yêu cầu sau: Tiêu đề: Form kiểm tra ôn tập kiến thức môn Lịch sử lớp 9 Điền họ tên, lớp, số thứ tự của học sinh (Số thứ tự xác thực phản hồi là loại số từ 0 đến 50) Đúng theo cấu trúc đề trên Chia là 3 phần gồm Phần 1, Phần 2, Phần 3 Không cần có đề bài chỉ cần viết phần 1: Câu 1. A. B. C. D . Các câu ở phần 3 có xác thực phản hồi là loại số, có thêm mô tả: "Học sinh cần phải ghi số, ngăn cách thập phân là dấu ".". VD: 3.2"

 

If the exam is entirely multiple-choice , you can simply omit the descriptive/essay section .

Instructions on creating automated exam scoring sheets using Gemini Picture 1

Step 2:

We access Google Drive, then click on New , select More apps from the menu that appears, and then select Google Apps Script .

Instructions on creating automated exam scoring sheets using Gemini Picture 2

 

First, give the project a new name and delete all the existing code in the interface . Then, paste all the code from Gemini into this interface , click the save icon, and select Run to execute the command.

Instructions on creating automated exam scoring sheets using Gemini Picture 3

Now you need to grant permission to run this code.

Instructions on creating automated exam scoring sheets using Gemini Picture 4

Step 3:

Once this process is complete, you will see a link to the Google Form you are using .

Instructions on creating automated exam scoring sheets using Gemini Picture 5

 

In the Google Forms interface , click on Responses and then click Link to Sheet to proceed.

Instructions on creating automated exam scoring sheets using Gemini Picture 6

Then you need to link to a new worksheet, click Create to do so .

Instructions on creating automated exam scoring sheets using Gemini Picture 7

Step 4:

Return to the Gemini interface and enter the command to create a scoring script on the Sheets file .

This prompt seems to be for your reference and you can adjust it to suit your test format and grading system. In the meantime, send the Google Form to the students to complete so they can see the results.

Instructions on creating automated exam scoring sheets using Gemini Picture 8

 

Tạo Google apps script chấm điểm. Hiện tại form đã thu thập xong đáp án trắc nghiệm và có file như hình. Đáp án các câu sẽ là: phần 1: 1A, 2B, 3C, 4D, 5A, 6A, 7A, 8C, 9D, 10C; phần 2: 1A, 2C, 3B, 4A, 5A, 6B, 7C, 8D, 9A, 10B, phần 3: 1A, 2C, 3C, 4B, 5B, 6C, 7B, 8A, 9B, 10C Cách chấm điểm: Phần 1: Câu trắc nghiệm nhiều phương án lựa chọn (3 điểm - 10 câu). Phần 2: Câu trắc nghiệm nhiều phương án lựa chọn (3 điểm – 10 câu). Phần 3: Câu trắc nghiệm nhiều phương án lựa chọn (4 điểm – 10 câu). Tự động tô màu đỏ vào những ô câu trả lời sai

Instructions on creating automated exam scoring sheets using Gemini Picture 9

Step 5:

Next, open the Google Sheets file where you created the scoring, click on Utilities, and then select Apps Script .

Instructions on creating automated exam scoring sheets using Gemini Picture 10

Teachers will copy the grading code generated in Gemini into this script project . Then, save it and wait until the students have completed the quiz and submitted their full results before running the project .

Instructions on creating automated exam scoring sheets using Gemini Picture 11

Step 6:

Open Google Sheets and you'll see the student grading section , along with highlighted incorrect answers.

Instructions on creating automated exam scoring sheets using Gemini Picture 12

David Pac
Share by David Pac
Update 14 March 2026