# Fill in the blank

ข้อคำถามประเภทเติมคำในช่องว่าง โดยสามารถมีช่องว่างมากกว่า 1 และมีชนิดของคำตอบได้หลากหลาย

ข้อคำถามประเภทนี้จะสามารถคิดคะแนนในแต่ละช่องว่างแยกตามแต่ละช่องได้ เข่น Quiz ข้อนี้ 1 คะแนน ประกอบด้วยช่องว่างเติมคำ 4 ช่อง เท่ากับว่าแต่ละช่องระบบจะคิดคะแนนช่องละ 0.25 คะแนน เมื่อผู้เรียนตอบถูก 2 ช่อง ผิด 2 ช่อง จะได้คะแนนรวมทั้งหมด 0.50 คะแนน

### ชนิดของคำตอบ

* Open Entry ช่องว่างเติมคำ
* Dropdown มี Dropdown ให้เลือกคำตอบ
* Word Bank ลากคำตอบที่ต้องการวางในช่อง&#x20;

### Text Match(เฉพาะ Open Entry)

<figure><img src="https://3470142670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSgE1vEnY4YfAcopihK%2Fuploads%2FvSashf4WiwTBsnKosHQy%2Fimage.png?alt=media&#x26;token=d159e1a5-70df-42f1-8aaf-ed49931a2053" alt=""><figcaption></figcaption></figure>

* **Contains** อนุโลมให้ผู้เรียนตอบอย่างไรก็ได้ ขอแค่มีคำตอบที่สะกดถูกต้อง เช่น คำตอบคือ "panda" ถ้าพิมพ์ตอบมาว่า "It's panda" ระบบจะตรวจว่าถูกต้องและได้รับคะแนน แต่ถ้าพิมพ์มาว่า "Panda" ระบบจะระบุเป็นคำตอบไม่ถูกต้องและไม่ได้รับคะแนน
* **Close Enough** ระบบจะใช้ระยะทางเลเวนชเตย์น (Levenshtein Distance) ตรวจสอบคำที่ใกล้เคียงกับคำตอบให้(เหมาะสำหรับคำตอบที่เป็นภาษาอังกฤษ)
* **Exact Match** ผู้เรียนจะต้องพิมพ์คำตอบให้ตรงกับคำตอบที่ถูกต้องเท่านั้นจึงจะได้คะแนน
* **Specify Correct Answers** ระบุคำตอบที่ยอมรับได้เพิ่มเติม(เช่น อักษรพิมพ์เล็ก/พิมพ์ใหญ่)
* **Regular Expression Match** มีการใช้ Regular Expression เข้ามาช่วยในการตรวจคำตอบ ซึ่งอาจไม่เหมาะกับผู้ใช้งานเบื้องต้น [read the Regular Expression Wikipedia entry](https://en.wikipedia.org/wiki/Regular_expression).

## คลิปสาธิตการสร้างคำถามประเภท Fill in the blank

{% embed url="<https://youtu.be/cF4n-USmr5o>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tlic.cmu.ac.th/cmucanvas-manual/quiz-assign/new-quizzes/fill-in-the-blank.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
