{% extends "base.html" %} {% block title %}{{ exam.title if exam else '参加考试' }} - FlashExam{% endblock %} {% block head %} {% endblock %} {% block content %} {% if has_taken %}

考试已完成

每场考试只能参加一次

{% elif not exam %}

考试不存在

返回考试列表
{% else %}

{{ exam.title }}

智能在线考试系统
{{ exam.duration_minutes }}:00
0
已答题
{{ questions|length }}
总题数
0%
进度
{% for question in questions %}
{{ loop.index }} {{ question.question_type.replace('_', ' ').title() }} {{ question.score }}分
{% if question.difficulty %} {% for i in range(question.difficulty) %}★{% endfor %} {% endif %}
{{ question.question_text|safe_markdown }}
{% if question.question_type == 'choice' %} {% if question.options %} {% set options_dict = question.options|from_json %} {% if options_dict %}
{% for key, value in options_dict.items() %}
{{ key }}
{{ value }}
{% endfor %}
{% endif %} {% endif %} {% elif question.question_type == 'judge' %}
正确
错误
{% elif question.question_type in ['code_reading', 'code_practice'] %} {% if question.question_type == 'code_practice' %} {% if question.options %} {% set options_dict = question.options|from_json %} {% if options_dict %}
{% for key, value in options_dict.items() %}
{{ key }}
{{ value }}
{% endfor %}
{% endif %} {% endif %} {% else %}
{% endif %} {% elif question.question_type == 'code_execution' %}
{% elif question.question_type == 'programming' %}
{% elif question.question_type == 'fill_blank' %}
{% elif question.question_type in ['short_answer', 'essay', 'analysis', 'practice'] %}
{% if question.question_type == 'essay' %}建议字数:300-500字 {% elif question.question_type == 'analysis' %}建议字数:200-400字 {% endif %}
{% else %}
{% endif %}
{% endfor %}

请确认所有题目已完成后再提交

{% endif %} {% endblock %} {% block scripts %} {% endblock %}