2006 review quiz

English Literature Quiz body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.5; max-width: 800px; margin: 0 auto; padding: 20px; background-color: #f5f5f5; } .card { background: white; border-radius: 8px; padding: 20px; margin: 20px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .button { background-color: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 10px 15px; margin: 5px 0; width: 100%; text-align: left; cursor: pointer; transition: background-color 0.2s; } .button:hover { background-color: #f0f0f0; } .button.selected { background-color: #e0e0e0; } #nameInput { padding: 8px; border: 1px solid #ddd; border-radius: 4px; width: 100%; max-width: 300px; margin: 10px 0; } #startButton { background-color: #0066cc; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; } #startButton:disabled { background-color: #ccc; cursor: not-allowed; } .result-correct { color: #22c55e; } .result-incorrect { color: #ef4444; } .question-count { color: #666; font-size: 0.9em; } .hidden { display: none; } English Literature Quiz

Please enter your name to begin:


Start Quiz

Question 1 of 20

Quiz Results

Thank you for completing the quiz, !

Your score: out of 20

const questions = [ { question: "Which Shakespeare play provides the title 'The Sound and the Fury'?", options: ["Hamlet", "Macbeth", "The Tempest", "King Lear"], correct: "Macbeth" }, { question: "Who wrote 'Waiting for Godot'?", options: ["Samuel Beckett", "Arthur Miller", "Tennessee Williams", "Eugene O'Neill"], correct: "Samuel Beckett" }, { question: "Which novel has a nameless narrator?", options: ["Invisible Man", "The Grapes of Wrath", "Moby Dick", "Anna Karenina"], correct: "Invisible Man" }, { question: "What is 'Hamartia'?", options: ["Reversal of fortunes", "Purgation of emotions", "Depravity", "Error of judgement"], correct: "Error of judgement" }, { question: "Who coined the term 'gynocriticism'?", options: ["Betty Friedman", "Elaine Showalter", "Luce Irigarey", "Susan Sontag"], correct: "Elaine Showalter" }, { question: "Let's test your memory again: What's Hamartia?", options: ["Reversal of fortunes", "Purgation of emotions", "Depravity", "Error of judgement"], correct: "Error of judgement" }, { question: "The term 'Jindiworobak' movement relates to which literature?", options: ["Australian literature", "Canadian literature", "New Zealand literature", "Caribbean literature"], correct: "Australian literature" }, { question: "What is the rhyme scheme of a Shakespearean sonnet?", options: ["abab, cdcd, efef, gg", "abba, cddc, dffe, gg", "abcd, efgh, effe, hh", "abca, abca, bcab, dd"], correct: "abab, cdcd, efef, gg" }, { question: "Using 'the Crown' for the monarchy is an example of:", options: ["Metaphor", "Irony", "Synecdoche", "Metonymy"], correct: "Metonymy" }, { question: "Using 'the Bench' for the judiciary is also an example of:", options: ["Metaphor", "Irony", "Synecdoche", "Metonymy"], correct: "Metonymy" }, { question: "Who was associated with the 'Bloomsbury Group'?", options: ["T.S. Eliot", "W.B. Yeats", "T.E. Hulme", "Virginia Woolf"], correct: "Virginia Woolf" }, { question: "Which character appears in 'Waiting for Godot'?", options: ["Jerry", "Lucky", "Jimmy Porter", "Ham"], correct: "Lucky" }, { question: "The narrative of Raja Rao's 'Kanthapura' is based on:", options: ["Puranas", "Shastras", "The Ramayana", "The Mahabharata"], correct: "Puranas" }, { question: "Queen Victoria's reign spans:", options: ["1833-1901", "1837-1901", "1840-1905", "1842-1905"], correct: "1837-1901" }, { question: "The mystery plays deal with:", options: ["the life of Christ", "the New Testament", "Psalms", "Apocrypha"], correct: "the New Testament" }, { question: "Which of the following is a writer of historical romances?", options: ["Emily Bronte", "Jane Austen", "Walter Scott", "Walter Savage Landor"], correct: "Walter Scott" }, { question: "Who among the following cautioned against the dangers of popular liberty?", options: ["Mary Wollstonecraft", "Edmund Burke", "Thomas Hobbes", "John Locke"], correct: "Edmund Burke" }, { question: "Which famous American classic opens with 'Call me Ishmael'?", options: ["Rip Van Winkle", "The Scarlet Letter", "The Grapes of Wrath", "Moby Dick"], correct: "Moby Dick" }, { question: "The theatre of cruelty is associated with:", options: ["Stanislavosky", "Grotovsky", "Antonin Artaud", "Eugino Barba"], correct: "Antonin Artaud" }, { question: "What metrical foot contains a stressed syllable followed by an unstressed syllable?", options: ["anapaest", "iamb", "trochee", "dactyl"], correct: "trochee" } ]; let currentQuestion = 0; let answers = {}; let userName = ''; // Get DOM elements const nameInput = document.getElementById('nameInput'); const startButton = document.getElementById('startButton'); const welcomeSection = document.getElementById('welcome'); const questionContainer = document.getElementById('questionContainer'); const resultsSection = document.getElementById('results'); const questionElement = document.getElementById('question'); const optionsElement = document.getElementById('options'); const currentQuestionNum = document.getElementById('currentQuestionNum'); // Enable start button when name is entered nameInput.addEventListener('input', function() { startButton.disabled = !nameInput.value.trim(); }); // Start quiz startButton.addEventListener('click', function() { userName = nameInput.value.trim(); welcomeSection.classList.add('hidden'); questionContainer.classList.remove('hidden'); showQuestion(); }); function showQuestion() { const question = questions[currentQuestion]; currentQuestionNum.textContent = currentQuestion + 1; questionElement.textContent = question.question; optionsElement.innerHTML = ''; question.options.forEach(function(option) { const button = document.createElement('button'); button.className = 'button'; button.textContent = option; button.onclick = function() { handleAnswer(option); }; optionsElement.appendChild(button); }); } function handleAnswer(answer) { answers[currentQuestion] = answer; currentQuestion++; if (currentQuestion < questions.length) { showQuestion(); } else { showResults(); } } function showResults() { questionContainer.classList.add('hidden'); resultsSection.classList.remove('hidden'); document.getElementById('resultName').textContent = userName; const score = calculateScore(); document.getElementById('score').textContent = score; const reviewDiv = document.getElementById('answerReview'); reviewDiv.innerHTML = ''; for (let i = 0; i < questions.length; i++) { const q = questions[i]; const answerDiv = document.createElement('div'); answerDiv.className = 'card'; const questionPara = document.createElement('p'); questionPara.innerHTML = '<strong>' + q.question + '</strong>'; const correctPara = document.createElement('p'); correctPara.className = 'result-correct'; correctPara.textContent = 'Correct answer: ' + q.correct; const yourAnswerPara = document.createElement('p'); yourAnswerPara.className = answers[i] === q.correct ? 'result-correct' : 'result-incorrect'; yourAnswerPara.textContent = 'Your answer: ' + (answers[i] || 'Not answered'); answerDiv.appendChild(questionPara); answerDiv.appendChild(correctPara); answerDiv.appendChild(yourAnswerPara); reviewDiv.appendChild(answerDiv); } } function calculateScore() { let score = 0; for (let i = 0; i < questions.length; i++) { if (answers[i] === questions[i].correct) { score++; } } return score; }

The post 2006 review quiz first appeared on Ronald Hadrian.

 •  0 comments  •  flag
Share on Twitter
Published on October 26, 2024 07:12
No comments have been added yet.