Skip to main content

Phương trình hóa học

Loại bài toán phương trình hóa học cho phép người học nhập văn bản biểu diễn phương trình hóa học vào hộp văn bản. Hệ thống chuyển văn bản đó thành một phương trình hóa học bên dưới hộp văn bản. Người chấm điểm đánh giá phản hồi của người học bằng cách sử dụng tập lệnh Python mà bạn tạo và nhúng vào vấn đề.

mceclip0.png

Tạo một bài toán về phương trình hóa học

Các bài toán về phương trình hóa học sử dụng MathJax để lập công thức. Để biết thêm thông tin về cách sử dụng MathJax trong Studio, hãy xem Sử dụng MathJax cho Toán học.

Để lập bài toán phương trình hóa học trên, các bạn làm theo các bước sau.

  1. Trong đơn vị mà bạn muốn tạo sự cố, hãy chọn Sự cố trong Thêm Thành phần Mới , sau đó chọn tab Nâng cao.
  2. Chọn Bài toán nâng cao trống.
  3. Trong thành phần xuất hiện, chọn Chỉnh sửa.
  4. Trong trình chỉnh sửa thành phần, hãy dán mã từ bên dưới.
  5. Chọn Lưu.
    <problem>
<startouttext/>
<p>Some problems may ask for a particular chemical equation. Practice by writing out the following reaction in the box below.</p>

\( \text{H}_2\text{SO}_4 \longrightarrow \text { H}^+ + \text{ HSO}_4^-\)

<customresponse>
<chemicalequationinput size="50" label="Enter the chemical equation"/>
<answer type="loncapa/python">

if chemcalc.chemical_equations_equal(submission[0], 'H2SO4 -> H^+ + HSO4^-'):
correct = ['correct']
else:
correct = ['incorrect']

</answer>
</customresponse>
<p>Some tips:</p>
<ul>
<li>Use real element symbols.</li>
<li>Create subscripts by using plain text.</li>
<li>Create superscripts by using a caret (^).</li>
<li>Create the reaction arrow (\(\longrightarrow\)) by using "->".</li>
</ul>

<endouttext/>

<solution>
<div class="detailed-solution">
<p>Solution</p>
<p>To create this equation, enter the following:</p>
<p>H2SO4 -> H^+ + HSO4^-</p>
</div>
</solution>
</problem>

XML Bài toán Phương trình Hóa học

Bản mẫu

    <problem>
<startouttext/>
<p>Problem text</p>

<customresponse>
<chemicalequationinput size="NUMBER" label="LABEL TEXT"/>
<answer type="loncapa/python">

if chemcalc.chemical_equations_equal(submission[0], 'TEXT REPRESENTING CHEMICAL EQUATION'):
correct = ['correct']
else:
correct = ['incorrect']

</answer>
</customresponse>

<endouttext/>

<solution>
<div class="detailed-solution">
<p>Solution or Explanation Header</p>
<p>Solution or explanation text</p>
</div>
</solution>
</problem>