Age of Elizabeth Quiz

Literature Quiz body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; line-height: 1.6; } h1, h2 { color: #333; } .question { margin-bottom: 20px; } button { background-color: #4CAF50; border: none; color: white; padding: 10px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; } #result { font-weight: bold; margin-top: 20px; } #answers { margin-top: 20px; } Literature Quiz Enter your name: Start Quiz const questions = [ { question: "At whose behest does the Redcrosse Knight undertake his quest in The Faerie Queene?", options: ["Gloriana's", "Una's", "Duessa's", "Prosperine's"], answer: "Una's" }, { question: "In which eclogue of The Shepheardes Calender does Spenser praise Queen Elizabeth I?", options: ["January", "April", "August", "November"], answer: "April" }, { question: "What is the central theme of Thomas Sackville's Induction to The Mirror for Magistrates?", options: [ "The transience of human life and the vanity of earthly greatness.", "The importance of moral instruction for rulers.", "The inevitability of tragic downfall for the mighty.", "The cyclical nature of history and the rise and fall of empires." ], answer: "The transience of human life and the vanity of earthly greatness." }, { question: "What is the central theme of Philip Sidney's Defence of Poesy?", options: [ "The superiority of poetry over other forms of art.", "The moral and didactic function of poetry.", "The importance of classical models in poetry.", "The role of the poet as a visionary and prophet." ], answer: "The moral and didactic function of poetry." }, { question: "What is the central theme of Michael Drayton's Idea sonnets?", options: [ "The transience of human life and the power of art to immortalize the beloved.", "The conflict between reason and passion in love.", "The celebration of patriotism and national identity.", "The exploration of metaphysical and philosophical questions." ], answer: "The transience of human life and the power of art to immortalize the beloved." }, { question: "What is the significance of the Induction in early Elizabethan plays?", options: [ "It served as a prologue to the main action of the play.", "It introduced the audience to the play's central characters.", "It provided a frame narrative for the play's events.", "All of the above." ], answer: "All of the above." }, { question: "What is the significance of the Chorus in Christopher Marlowe's Tamburlaine the Great?", options: [ "It provides a moral commentary on the events of the play.", "It introduces the audience to the play's central characters.", "It sets the scene and establishes the historical context.", "It breaks the fourth wall and addresses the audience directly." ], answer: "It sets the scene and establishes the historical context." }, { question: "What is the central theme of Robert Greene's Friar Bacon and Friar Bungay?", options: [ "The conflict between science and religion.", "The dangers of ambition and the pursuit of power.", "The importance of love and loyalty in human relationships.", "The role of the supernatural in the lives of ordinary people." ], answer: "The importance of love and loyalty in human relationships." }, { question: "What is the significance of the narrator in Thomas Nashe's Pierce Penniless His Supplication to the Devil?", options: [ "He is a fictional character who represents the author's own experiences.", "He is a moral exemplar who provides guidance to the reader.", "He is a satirical figure who mocks the excesses of Renaissance society.", "He is a supernatural entity who serves as a mediator between the human and divine realms." ], answer: "He is a satirical figure who mocks the excesses of Renaissance society." }, { question: "What is the significance of the character Gallathea in John Lyly's Gallathea?", options: [ "She is a representation of the Virgin Queen Elizabeth I.", "She is a symbol of the conflict between reason and passion.", "She is a figure of classical mythology who represents the power of transformation.", "She is a comic character who provides comic relief in the play." ], answer: "She is a figure of classical mythology who represents the power of transformation." }, { question: "What is the central theme of Thomas Lodge's A Margarite of America?", options: [ "The conflict between reason and passion in love.", "The exploration of metaphysical and philosophical questions.", "The celebration of patriotism and national identity.", "The transience of human life and the power of art to immortalize the beloved." ], answer: "The conflict between reason and passion in love." }, { question: "What is the significance of the character Alceste in George Peele's The Old Wives' Tale?", options: [ "He is a representation of the author's own experiences.", "He is a moral exemplar who provides guidance to the reader.", "He is a supernatural figure who serves as a mediator between the human and divine realms.", "He is a comic character who provides comic relief in the play." ], answer: "He is a supernatural figure who serves as a mediator between the human and divine realms." }, { question: "What is the significance of the character Hieronimo in Thomas Kyd's The Spanish Tragedy?", options: [ "He is a representation of the author's own experiences.", "He is a moral exemplar who provides guidance to the reader.", "He is a tragic hero who is driven to madness by the injustice he has suffered.", "He is a comic character who provides comic relief in the play." ], answer: "He is a tragic hero who is driven to madness by the injustice he has suffered." }, { question: "What is the significance of the character Iago in William Shakespeare's Othello?", options: [ "He is a representation of the author's own experiences.", "He is a moral exemplar who provides guidance to the reader.", "He is a tragic hero who is driven to madness by the injustice he has suffered.", "He is a villain who manipulates the other characters for his own selfish ends." ], answer: "He is a villain who manipulates the other characters for his own selfish ends." } ]; let currentQuestion = 0; let score = 0; let userName = ""; function startQuiz() { userName = document.getElementById("name").value; if (userName.trim() === "") { alert("Please enter your name before starting the quiz."); return; } document.getElementById("quiz").innerHTML = ""; showQuestion(); } function showQuestion() { if (currentQuestion < questions.length) { const q = questions[currentQuestion]; let html = `<div class="question"> <h2>Question ${currentQuestion 1}</h2> <p>${q.question}</p>`; for (let i = 0; i < q.options.length; i ) { html = `<input type="radio" name="answer" value="${q.options[i]}" id="option${i}"> <label for="option${i}">${q.options[i]}</label><br>`; } html = `<button onclick="checkAnswer()">Submit Answer</button></div>`; document.getElementById("quiz").innerHTML = html; } else { showResult(); } } function checkAnswer() { const selectedAnswer = document.querySelector('input[name="answer"]:checked'); if (selectedAnswer) { if (selectedAnswer.value === questions[currentQuestion].answer) { score ; } currentQuestion ; showQuestion(); } else { alert("Please select an answer."); } } function showResult() { const percentage = (score / questions.length) * 100; let resultHtml = `<h2>Quiz Complete!</h2> <p>${userName}, your score is: ${score} out of ${questions.length} (${percentage.toFixed(2)}%)</p> <button onclick="showAnswers()">Show Correct Answers</button> <button onclick="downloadCSV()">Download Results (CSV)</button>`; document.getElementById("result").innerHTML = resultHtml; } function showAnswers() { let answersHtml = "<h2>Correct Answers</h2>"; for (let i = 0; i < questions.length; i ) { answersHtml = `<p><strong>Q${i 1}:</strong> ${questions[i].question}<br> <strong>Answer:</strong> ${questions[i].answer}</p>`; } document.getElementById("answers").innerHTML = answersHtml; } function downloadCSV() { let csv = "Question,Correct Answer\n"; for (let i = 0; i < questions.length; i ) { csv = `"${questions[i].question}","${questions[i].answer}"\n`; } const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' }); const link = document.createElement("a"); if (link.download !== undefined) { const url = URL.createObjectURL(blob); link.setAttribute("href", url); link.setAttribute("download", "quiz_results.csv"); link.style.visibility = 'hidden'; document.body.appendChild(link); link.click(); document.body.removeChild(link); } }

The post Age of Elizabeth Quiz first appeared on Ronald Hadrian.

 •  0 comments  •  flag
Share on Twitter
Published on July 02, 2024 21:33
No comments have been added yet.