You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何用R/Exams创建包含多个单选题的完形填空题?

解决R/Exams生成多单选完形填空题型的问题

问题核心

你的代码存在三个关键格式错误,导致无法正确生成目标题型:

  • 题干中子问题未明确表述(仅用Question 1占位)
  • 图片路径的语法错误(多余引号)
  • 未确保子问题、选项组与元信息的严格对应

修正后的完整代码

Question
========
Use the following gel image to answer the following questions:

![Gel electrophoresis results](Image.png)

1. What is the size of the DNA fragment in lane 2?
2. Which lane contains the negative control?
3. How many distinct fragments are visible in lane 4?

AnswerList
-----------
* 100 bp
* 250 bp
* 500 bp
* 750 bp
* 1000 bp
* 1500 bp

* Lane 1
* Lane 2
* Lane 3
* Lane 4
* Lane 5

* 1
* 2
* 3
* 4
* 5

Meta-information
===============
extype: cloze
exclozetype: schoice|schoice|schoice
exsolution: 001000|00100|00010
exshuffle: TRUE

关键修正说明

  • 图片语法:移除图片路径的冗余引号,添加清晰的替代文本(便于无障碍访问和调试)
  • 子问题明确化:必须写出每个子问题的具体内容,不能仅用占位符,确保系统识别子问题数量与顺序
  • 选项组匹配:每个子问题的选项组之间用空行分隔,与exclozetype中schoice的数量严格对应
  • 答案格式:exsolution的每一段长度必须与对应子问题的选项数量一致(比如第一个子问题6个选项,对应6位0/1编码)
  • 乱序设置:exshuffle: TRUE会单独打乱每个子问题的选项顺序,符合多版本试卷需求

内容的提问来源于stack exchange,提问作者Beortherec

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 10:37:43