<%= @exercise.try(:exercise_description).nil? ? "" : @exercise.try(:exercise_description)&.html_safe %>
<% if @exercise_single_ques_count > 0 %> 单选题<%= @exercise_single_ques_count %>题, 共<%= @exercise_single_ques_scores %>分 <% end %> <% if @exercise_double_ques_count > 0 %> 多选题<%= @exercise_double_ques_count %>题, 共<%= @exercise_double_ques_scores %>分 <% end %> <% if @exercise_ques_judge_count > 0 %> 判断题<%= @exercise_ques_judge_count %>题, 共<%= @exercise_ques_judge_scores %>分 <% end %> <% if @exercise_ques_null_count > 0 %> 填空题<%= @exercise_ques_null_count %>题, 共<%= @exercise_ques_null_scores %>分 <% end %> <% if @exercise_ques_main_count > 0 %> 主观题<%= @exercise_ques_main_count %>题, 共<%= @exercise_ques_main_scores %>分 <% end %> <% if @exercise_ques_shixun_count > 0 %> 实训题<%= @exercise_ques_shixun_count %>题, 共<%= @exercise_ques_shixun_scores %>分 <% end %> <% if @exercise_ques_count > 0 %> 合计<%= @exercise_ques_count %>题 共<%= @exercise_ques_scores %>分 <% end %>
答案(填空<%= index+1 %>):
<% end %> <% elsif q.question_type == 4 %><% else %> <% q.exercise_shixun_challenges.each_with_index do |c,index| %>
第<%= index+1 %>关 <%= c.challenge.subject %> <%= c&.question_score %> 分
<% end %> <% end %>