From 737f643c4754f83e145ae5653e2e69d28081ba5c Mon Sep 17 00:00:00 2001 From: Dolton Fernandes <42113482+doltonfernandes@users.noreply.github.com> Date: Sat, 23 Mar 2019 14:08:38 +0530 Subject: [PATCH 1/2] Updated quiz.php --- src/lab/quiz.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lab/quiz.php b/src/lab/quiz.php index f9abd26d..c71f4f69 100644 --- a/src/lab/quiz.php +++ b/src/lab/quiz.php @@ -195,7 +195,7 @@ if($answers_k[$i-1]==$correct_k[$i-1]) { echo '

You answered Correctly

'; } else { - echo '

Wrong: You chose '.$option[$answers_k[$i-1]][$i].'.

'; + echo '

You chose the Wrong option '.$option[$answers_k[$i-1]][$i].'.

'; } } echo ' Date: Sat, 23 Mar 2019 14:15:46 +0530 Subject: [PATCH 2/2] Updated quiz.php --- src/lab/quiz.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lab/quiz.php b/src/lab/quiz.php index c71f4f69..e74e773a 100644 --- a/src/lab/quiz.php +++ b/src/lab/quiz.php @@ -195,7 +195,12 @@ if($answers_k[$i-1]==$correct_k[$i-1]) { echo '

You answered Correctly

'; } else { + if($answers_k[$i-1]==""){ + echo '

Nothing chosen '.$option[$answers_k[$i-1]][$i].'.

'; + } + else{ echo '

You chose the Wrong option '.$option[$answers_k[$i-1]][$i].'.

'; + } } } echo '