Skip to content

Commit

Permalink
Quiz questions added
Browse files Browse the repository at this point in the history
  • Loading branch information
deolekar committed May 1, 2024
1 parent 3322889 commit d10a216
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
2 changes: 2 additions & 0 deletions infotainment.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<img src="images/site/hangman.png" class = 'fit' alt="Hangman">
<br><span class = "grad">Hangman</span>
</a>
</div>
<div class="social grad pad" >
<a href="/infotainment/qindex.html" title="Quiz" class="pad material-icons">
<img src="images/site/quiz.png" class = 'fit' alt="Quiz">
<br><span class = "grad">Quiz</span>
Expand Down
42 changes: 41 additions & 1 deletion infotainment/quizjavaScript/question.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,50 @@ let maharashtra = {
],
"answer": "48"
}
, {
"question": "Which of the following is the highest (tallest) dam in Maharashtra?",
"options": [
"Koyna",
"Jayakwadi",
"Panshet",
"Warna"
],
"answer": "Koyna"
}
, {
"question": "Who of the following was the first person from Maharashtra to be awarded the Bharat Ratna?",
"options": [
"Dhondo Keshav Karve",
"Dr PandurangVaman Kane",
"Acharya Vinoba Bhave",
"Bhim Rao Ambedkar"
],
"answer": "Dhondo Keshav Karve"
}
, {
"question": "In which city of Maharashtra is the National Institute of Virology located?",
"options": [
"Mumbai",
"Pune",
"Nashik",
"Nagpur"
],
"answer": "Pune"
}
, {
"question": "With how many state maharashtra has boundaries?",
"options": [
"4",
"5",
"6",
"7"
],
"answer": "6"
}
],
"createdAt": "Wed, 01 May 2024 11:41:13 GMT",
"timePerQuestion": "30",
"totalTime": "120",
"totalTime": "180",
"type": "quiz"
}

Expand Down
2 changes: 1 addition & 1 deletion infotainment/quizjavaScript/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ window.addEventListener('load', () => {
} else if (questionAnswersGiven <= 8) {
id("feedback").innerHTML = "You are almost there try again";
} else {
id("feedback").innerHTML = "Congratulations You made it";
id("feedback").innerHTML = "Congratulations. You made it";

}
});

0 comments on commit d10a216

Please sign in to comment.