Biographia Literaria quiz
Biographia Literaria Quiz body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f4f4f9; color: #333; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; } #quiz-container { background-color: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 90%; max-width: 600px; } h1, h2 { color: #2c3e50; text-align: center; } #welcome-screen, #quiz-screen, #results-screen { display: block; } input[type="text"], button { width: calc(100% - 20px); padding: 10px; margin: 10px 0; border-radius: 5px; border: 1px solid #ccc; } button { background-color: #3498db; color: white; border: none; cursor: pointer; font-size: 1rem; transition: background-color 0.3s; } button:hover { background-color: #2980b9; } .question { margin-bottom: 1rem; font-size: 1.1rem; font-weight: bold; } .options div { margin: 0.5rem 0; padding: 10px; border: 1px solid #eee; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } .options div:hover { background-color: #ecf0f1; } .options div.selected { background-color: #3498db; color: white; border-color: #3498db; } #results-screen h3 { margin-top: 1.5rem; color: #2c3e50; } .correct-answer { color: #27ae60; font-weight: bold; } .user-answer { color: #c0392b; } Biographia Literaria Quiz
Please enter your name to begin:
Start Quiz Next Quiz Results Correct Answers: const quizData = [ { question: "According to Wordsworth, what is the origin of poetic language?", options: ["The reflective processes of the mind", "The language of simple, rustic life", "The polished diction of 16th-century poets", "The soul's creative impulse"], answer: "The language of simple, rustic life" }, { question: "How does Coleridge differentiate between Imagination and Fancy?", options: ["Imagination is mechanical, while Fancy is organic.", "Imagination combines existing ideas, while Fancy creates new ones.", "Imagination is sourced from memory, while Fancy comes from the soul.", "Imagination is an organic and creative process, while Fancy is a mechanical combination of memories."], answer: "Imagination is an organic and creative process, while Fancy is a mechanical combination of memories." }, { question: "What was the main focus of the 'Polishers' (16th C. poets)?", options: ["Striking new images and individual portraits", "Careless but passionate diction", "Polished diction, general imagery, and harmony", "The spontaneous overflow of feelings"], answer: "Polished diction, general imagery, and harmony" }, { question: "Which of the following is NOT a reason Wordsworth gave for choosing rustic life as the source of poetic language?", options: ["The manners of rural life are more durable.", "The essential passions of the heart find a 'better soil.'", "It is the most philosophical form of language.", "Elementary feelings exist in greater simplicity."], answer: "It is the most philosophical form of language." }, { question: "What is Coleridge's view on the 'best part of language'?", options: ["It arises from the influence of natural feelings.", "It comes from reflection on the acts of the mind.", "It is found in the durable manners of rural life.", "It is a spontaneous overflow of powerful emotions."], answer: "It comes from reflection on the acts of the mind." }, { question: "How does Coleridge's concept of the 'Ideal Shepherd' relate to poetry?", options: ["It should be an exact copy of a real individual.", "It represents the best of a class with probable, generic attributes, which is true poetic art.", "It is a 'mere copy' and therefore not true art.", "It should include accidental quirks to be realistic."], answer: "It represents the best of a class with probable, generic attributes, which is true poetic art." }, { question: "What is Coleridge's vision for the future of poetry?", options: ["A complete return to the polished style of the 16th century.", "A focus solely on the new, passionate imagery of the 19th century.", "A union of the old craft's polish with the new poets' passion.", "Abandoning traditional forms in favor of the language of rustic life."], answer: "A union of the old craft's polish with the new poets' passion." } ]; const welcomeScreen = document.getElementById('welcome-screen'); const quizScreen = document.getElementById('quiz-screen'); const resultsScreen = document.getElementById('results-screen'); const startBtn = document.getElementById('start-btn'); const nextBtn = document.getElementById('next-btn'); const usernameInput = document.getElementById('username'); let currentQuestionIndex = 0; let score = 0; let userName = ''; const userAnswers = []; startBtn.addEventListener('click', () => { userName = usernameInput.value; if (userName.trim() === '') { alert('Please enter your name!'); return; } welcomeScreen.style.display = 'none'; quizScreen.style.display = 'block'; loadQuestion(); }); nextBtn.addEventListener('click', () => { const selectedOption = document.querySelector('.options div.selected'); if (!selectedOption) { alert('Please select an answer!'); return; } const answer = selectedOption.textContent; userAnswers[currentQuestionIndex] = answer; if (answer === quizData[currentQuestionIndex].answer) { score++; } currentQuestionIndex++; if (currentQuestionIndex < quizData.length) { loadQuestion(); } else { showResults(); } }); function loadQuestion() { const questionData = quizData[currentQuestionIndex]; document.getElementById('question-number').textContent = `Question ${currentQuestionIndex + 1} of ${quizData.length}`; document.getElementById('question').textContent = questionData.question; const optionsContainer = document.getElementById('options'); optionsContainer.innerHTML = ''; questionData.options.forEach(option => { const optionDiv = document.createElement('div'); optionDiv.textContent = option; optionDiv.addEventListener('click', () => { document.querySelectorAll('.options div').forEach(div => div.classList.remove('selected')); optionDiv.classList.add('selected'); }); optionsContainer.appendChild(optionDiv); }); } function showResults() { quizScreen.style.display = 'none'; resultsScreen.style.display = 'block'; document.getElementById('user-results').textContent = `${userName}, your score is: ${score} out of ${quizData.length}`; const correctAnswersContainer = document.getElementById('correct-answers'); correctAnswersContainer.innerHTML = ''; quizData.forEach((question, index) => { const resultDiv = document.createElement('div'); resultDiv.innerHTML = ` <p><strong>Q${index + 1}: ${question.question}</strong></p> <p class="correct-answer">Correct Answer: ${question.answer}</p> ${userAnswers[index] !== question.answer ? `<p class="user-answer">Your Answer: ${userAnswers[index]}</p>` : ''} <hr> `; correctAnswersContainer.appendChild(resultDiv); }); }The post Biographia Literaria quiz first appeared on Ronald Hadrian.
Published on August 15, 2025 05:39
No comments have been added yet.


