{% extends "base.html" %} {% block title %}学生考试进度 - {{ student.name }}{% endblock %} {% block content %}

学生考试进度

学生正在答题中,以下为已保存的答案

返回
考试信息

考试名称:{{ exam.title }}

学生姓名:{{ student.name }}

学号:{{ student.student_id }}

开始时间:{{ progress.start_time[:16] if progress.start_time else '-' }}

最后保存:{{ progress.last_save_time[:16] if progress.last_save_time else '-' }}

已用时间:{{ "%.1f"|format(progress.elapsed_minutes or 0) }} 分钟

答题进度
{% set pct = (answered_count / total_questions * 100) if total_questions > 0 else 0 %}
{{ "%.0f"|format(pct) }}%

{{ answered_count }} 题已答 {{ total_questions - answered_count }} 题未答

答题详情 实时数据
{% if questions %}
{% for question in questions %}

题干:

{{ question.question_text }}

{% if question.question_type == 'choice' and question.options %}

选项:

    {% for key, value in question.options.items() %}
  • {{ key }}. {{ value }} {% if question.student_answer == key %} 学生选择 {% endif %}
  • {% endfor %}
{% elif question.question_type == 'judge' %}

学生答案: {% if question.student_answer %} {% if question.student_answer|lower in ['true', '对', 't', '1'] %} {% else %} {% endif %} {% else %} 未作答 {% endif %}

{% endif %}

学生答案:

{% if question.student_answer %}

{{ question.student_answer }}

{% else %}

未作答

{% endif %}

正确答案:

{{ question.correct_answer }}

{% endfor %}
{% else %}

暂无题目

{% endif %}
{% endblock %}