כדי לתת ליוצרים של טפסים יותר שליטה על מי יכול להשיב להם, אנחנו משיקים אמצעי בקרה מפורטים יותר לגבי המשיבים. טפסים שנוצרו באמצעות ה-API אחרי 31 בינואר 2026 יהיו במצב 'לא פורסם' כברירת מחדל. מידע נוסף זמין במאמר שינויים ב-API של Google Forms.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אחת מהתכונות העיקריות של Google Forms היא האפשרות לנהל בחנים. במדריך הזה מוסבר איך יוצרים בוחן ומוסיפים אפשרויות למתן ציונים באמצעות Forms API.
יצירת בוחן בסיסי
השלב הראשון ביצירת בוחן הוא תהליך בן שני שלבים: יוצרים טופס ואז מעדכנים את ההגדרות שלו כדי להגדיר אותו כבוחן. הוראות בסיסיות להגדרה מפורטות במאמר יצירת טופס או בוחן.
הוספת שאלות
אחרי שיוצרים את הבחינה, מוסיפים את השאלות (בQuestion object מופיעה רשימה של סוגי השאלות). אפשר לכלול אפשרויות למתן ציונים כשמוסיפים את השאלות בפעם הראשונה, או לעדכן אותן מאוחר יותר. קוד JSON לדוגמה של פריט שאלה חדש שכולל אפשרויות למתן ציונים:
"item":{"title":"Which of these singers was not a member of Destiny's Child?","questionItem":{"question":{"required":True,"grading":{"pointValue":2,"correctAnswers":{"answers":[{"value":"Rihanna"}]},"whenRight":{"text":"You got it!"},"whenWrong":{"text":"Sorry, that's wrong"}},"choiceQuestion":{"type":"RADIO","options":[{"value":"Kelly Rowland"},{"value":"Beyoncé"},{"value":"Rihanna"},{"value":"Michelle Williams"}]}}}}
הוספת אפשרויות למתן ציונים לשאלות בחידון עוזרת לבצע אוטומציה של תהליך מתן הציונים.
לכל שאלה אפשר להקצות ערך ניקוד ולספק למשתמש משוב על התשובה שלו.
בשאלות מהסוגים הבאים, הוספת השדה correctAnswers מאפשרת לתת להן ציונים באופן אוטומטי כשהתלמידים שולחים את המטלה. אתם יכולים לספק משוב ספציפי לגבי תשובות נכונות ושגויות באמצעות השדות whenRight ו-whenWrong.
תיבת סימון
רדיו
תפריט נפתח
אפשר גם להוסיף שדה correctAnswers לשאלות עם תשובה קצרה כדי לתת להן ציון אוטומטי, אבל אפשר לספק רק משוב מסוג generalFeedback, ולא משוב מסוג whenRight או whenWrong. בשאלות מסוגים אחרים, מתן הציונים לא אוטומטי ותוכלו לספק רק את הערך generalFeedback.
הערה: מלבד שאלות שבהן התשובה היא העלאת קובץ, התשובה של המשתמש מתועדת ומועברת כטקסט (בפרטים נוספים על הפורמט של סוגים שונים של תשובות, אפשר לעיין באובייקט TextAnswer). כדי שהתשובה תהיה נכונה, היא צריכה להתאים בדיוק למפתח התשובות.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-04-09 (שעון UTC)."],[],["Create a quiz in Google Forms by first building a form, then converting it to a quiz via settings. Add questions, specifying the question type and whether it's required. Include grading options like `pointValue`, `correctAnswers`, and feedback (`whenRight`, `whenWrong`). Questions with `correctAnswers` (Checkbox, Radio, Dropdown, Short answer) can be auto-graded. Feedback options are available for correct and incorrect answers, except for short answers that only offer `generalFeedback`. Answers are evaluated as text for correctness.\n"],null,["# Set up quiz grading options\n\nAdministering quizzes is one of the key features of Google Forms. This guide\nshows you how to create a quiz and add grading options with the Forms API.\n\nMake a basic quiz\n-----------------\n\nThe first stage of making a quiz is a two-step process: you create a form,\nthen update the form's settings to define it as a quiz. See\n[Create a form or quiz](/workspace/forms/api/guides/create-form-quiz#convert_a_form_to_a_quiz)\nfor basic setup instructions.\n\nAdd questions\n-------------\n\nAfter you've created the quiz, add the questions (see the\n[`Question object`](/workspace/forms/api/reference/rest/v1/forms#question) for a\nlist of question types). You can include\n[grading options](#grading-options) when you first add the questions, or\nupdate them later. Sample JSON code for a new question item that includes\ngrading options looks like this: \n\n \"item\": {\n \"title\": \"Which of these singers was not a member of Destiny's Child?\",\n \"questionItem\": {\n \"question\": {\n \"required\": True,\n \"grading\": {\n \"pointValue\": 2,\n \"correctAnswers\": {\n \"answers\": [{\"value\": \"Rihanna\"}]\n },\n \"whenRight\": {\"text\": \"You got it!\"},\n \"whenWrong\": {\"text\": \"Sorry, that's wrong\"}\n },\n \"choiceQuestion\": {\n \"type\": \"RADIO\",\n \"options\": [\n {\"value\": \"Kelly Rowland\"},\n {\"value\": \"Beyoncé\"},\n {\"value\": \"Rihanna\"},\n {\"value\": \"Michelle Williams\"}\n ]\n }\n }\n }\n }\n\nSee [Update a form or quiz](/workspace/forms/api/guides/update-form-quiz#add_an_item)\nto learn how to add a question item to a form.\n\nAdd grading options\n-------------------\n\nAdding grading options to quiz questions helps automate the grading process.\nEach question can have an assigned point value and give the user feedback about\ntheir answer.\n\nFor the question types below, adding a`correctAnswers` field enables them to\nbe automatically graded when the quiz is submitted. You can provide\nspecific feedback for correct and incorrect answers using the `whenRight` and\n`whenWrong` fields.\n\n- Checkbox\n- Radio\n- Dropdown\n\nShort answer questions can also be auto-graded by adding a `correctAnswers`\nfield, but you can only provide `generalFeedback`, not `whenRight` or\n`whenWrong` feedback. For other types of questions, grading is not automatic\nand you can only provide `generalFeedback`.\n\n**Note:** Except for questions where the answer is via a file upload, the\nuser's answer is captured and evaluated as text (see the\n[`TextAnswer`](/workspace/forms/api/reference/rest/v1/forms.responses#textanswer)\nobject for specifics about how different types of answers are formatted). To\nbe correct, the answer must match the answer key exactly."]]