> For the complete documentation index, see [llms.txt](https://docs.tlic.cmu.ac.th/cmucanvas-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tlic.cmu.ac.th/cmucanvas-manual/quiz-assign/new-quizzes/fill-in-the-blank.md).

# 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="/files/tK3fmZnOxyF5WCyBSwnp" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
