{% extends "exam.html" %} {% load custom_filters %} {% block pagetitle %} {{ paper.question_paper.quiz.description }} {% endblock pagetitle %} {% block css %} {% endblock %} {% block script %} {% endblock script %} {% block onload %} onload="updateTime();" {% endblock %} {% block main %}

{% if notification %} {% if question.type == "code" %} {% else %} {% endif %} {% endif %}
{% csrf_token %}

{{ question.summary }} {% if question.type == "mcq" %} (SINGLE CORRECT CHOICE) {% elif question.type == "mcc" %} (MULTIPLE CORRECT CHOICES) {% elif question.type == "code" %} (PROGRAMMING) {% elif question.type == "upload" %} (ASSIGNMENT UPLOAD) {% elif question.type == "integer" %} (FILL IN THE BLANKS WITH INTEGER ANSWER) {% elif question.type == "string" %} (FILL IN THE BLANKS WITH STRING ANSWER) {% if testcase.string_check == "lower" %}
(CASE INSENSITIVE)
{% else %}
(CASE SENSITIVE)
{% endif %} {% elif question.type == "float" %} (FILL IN THE BLANKS WITH FLOAT ANSWER) {% endif %}
(Marks : {{ question.points }})

{{ question.description|safe }} {% if files %}

Files to download for this question

{% for f_name in files %}
{{f_name.file.name}}
{% endfor %} {% endif %}
{% if question.type == "mcq" %} {% for test_case in test_cases %} {{ test_case.options|safe }}
{% endfor %} {% endif %} {% if question.type == "integer" %} Enter Integer:


{% endif %} {% if question.type == "string" %} Enter Text:


{% endif %} {% if question.type == "float" %} Enter Decimal Value :


{% endif %} {% if question.type == "mcc" %} {% for test_case in test_cases %} {{ test_case.options|safe }}
{% endfor %} {% endif %} {% if question.type == "upload" %}

Upload assignment file for the said question


{% endif %} {% if question.type == "code" %}

Write your program below:


{% endif %}
{% if question.type == "mcq" or "mcc" or "integer" or "float" or "string" %}
   {% elif question.type == "upload" %}
   {% else %} {% if question in paper.get_questions_unanswered %}    {% endif %} {% endif %} {% if paper.question_paper.quiz.allow_skip and not paper.get_questions_unanswered|length_is:"1" %} {% if question in paper.get_questions_unanswered %} {% endif %}
{% endif %} {% endblock main %}