English Articles Quiz A, An, The & No Article Question 1 of 20 Score: 0 /* ============================== MAFEN ARTICLES QUIZ ============================== */ #mafen-article-quiz { max-width: 700px; margin: 30px auto; padding: 25px; background: #fdfdfd; border: 1px solid #e0e0e0; border-radius: 14px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; box-shadow: 0 5px 15px rgba(0,0,0,0.06); box-sizing: border-box; } #mafen-article-quiz *, #mafen-article-quiz *::before, #mafen-article-quiz *::after { box-sizing: border-box; } .mafen-article-header { text-align: center; margin-bottom: 25px; } .mafen-article-header h2 { margin: 0 0 7px; color: #2c3e50; font-size: 27px; font-weight: 700; } .mafen-article-header p { margin: 0; color: #7f8c8d; font-size: 15px; } /* Progress */ .mafen-article-progress { margin-bottom: 25px; } .mafen-article-progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; color: #566573; } .mafen-article-progress-info strong { color: #2c3e50; } .mafen-article-progress-bar { width: 100%; height: 9px; background: #ecf0f1; border-radius: 10px; overflow: hidden; } #mafen-article-progress-fill { width: 5%; height: 100%; background: #3498db; border-radius: 10px; transition: width 0.3s ease; } /* Question Card */ .mafen-article-card { background: #ffffff; padding: 25px; margin-bottom: 20px; border-radius: 10px; border-left: 5px solid #3498db; box-shadow: 0 3px 8px rgba(0,0,0,0.04); } .mafen-article-topic { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #3498db; font-weight: 700; margin-bottom: 10px; } .mafen-article-question { font-size: 18px; line-height: 1.6; font-weight: 600; color: #2c3e50; margin-bottom: 20px; } /* Options */ .mafen-article-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .mafen-article-option { width: 100%; padding: 13px 15px; background: #f8f9fa; border: 1px solid #dcdde1; border-radius: 7px; text-align: left; font-size: 15px; color: #2c3e50; cursor: pointer; transition: all 0.2s ease; } .mafen-article-option:hover:not(:disabled) { background: #e1b12c; color: #ffffff; border-color: #e1b12c; transform: translateY(-1px); } .mafen-article-option:disabled { cursor: default; } .mafen-article-option.correct { background: #2ecc71 !important; color: #ffffff !important; border-color: #2ecc71 !important; } .mafen-article-option.incorrect { background: #e74c3c !important; color: #ffffff !important; border-color: #e74c3c !important; } /* Feedback */ .mafen-article-feedback { margin-top: 18px; padding: 14px 16px; border-radius: 7px; font-size: 14px; line-height: 1.6; } .mafen-article-feedback.correct-feedback { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .mafen-article-feedback.incorrect-feedback { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .mafen-article-feedback strong { display: block; margin-bottom: 4px; } /* Next Button */ .mafen-article-next { width: 100%; margin-top: 20px; padding: 13px 20px; border: none; border-radius: 7px; background: #3498db; color: white; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s ease; } .mafen-article-next:hover { background: #2980b9; } /* Result */ #mafen-article-result { text-align: center; margin-top: 25px; padding: 30px 20px; background: #ebf3f9; border-radius: 10px; } .mafen-article-result-title { font-size: 28px; font-weight: 700; color: #2c3e50; margin-bottom: 10px; } .mafen-article-result-score { font-size: 42px; font-weight: 800; color: #3498db; margin: 10px 0; } .mafen-article-result-message { font-size: 16px; color: #566573; margin-bottom: 20px; } .mafen-article-restart { padding: 12px 25px; background: #2c3e50; color: #ffffff; border: none; border-radius: 7px; font-size: 15px; font-weight: 600; cursor: pointer; } .mafen-article-restart:hover { background: #1f2d3a; } /* Mobile */ @media (max-width: 600px) { #mafen-article-quiz { margin: 15px auto; padding: 18px; border-radius: 10px; } .mafen-article-header h2 { font-size: 23px; } .mafen-article-card { padding: 18px; } .mafen-article-question { font-size: 16px; } .mafen-article-options { grid-template-columns: 1fr; } .mafen-article-result-score { font-size: 35px; } } document.addEventListener("DOMContentLoaded", function () { const quizData = [ { topic: "First vs. Second Mention", question: "I saw ___ interesting movie last night. ___ movie was about space exploration.", options: [ { text: "a, The", correct: false, reason: "'Interesting' begins with a vowel sound, so we use 'an'." }, { text: "an, The", correct: true, reason: "We use 'an' for the first mention and 'the' when referring to the same movie again." }, { text: "the, A", correct: false, reason: "The movie is being introduced for the first time, so 'the' is not appropriate." }, { text: "an, a", correct: false, reason: "The second mention refers to a specific movie, so we need 'the'." } ] }, { topic: "Geographical Names", question: "We spent our summer vacation in ___ Alps. It was amazing!", options: [ { text: "a", correct: false, reason: "Mountain ranges normally take 'the'." }, { text: "an", correct: false, reason: "The Alps is a mountain range, so 'the' is required." }, { text: "the", correct: true, reason: "We use 'the' with mountain ranges such as the Alps, the Andes and the Rockies." }, { text: "no article", correct: false, reason: "Mountain ranges normally require 'the'." } ] }, { topic: "Indefinite Articles", question: "He is looking for ___ job in the marketing sector.", options: [ { text: "a", correct: true, reason: "'Job' is a singular countable noun beginning with a consonant sound." }, { text: "an", correct: false, reason: "'Job' begins with a consonant sound." }, { text: "the", correct: false, reason: "No specific job has been identified." }, { text: "no article", correct: false, reason: "A singular countable noun normally needs a determiner." } ] }, { topic: "Unique Nouns", question: "Did you see ___ moon last night? It was incredibly bright.", options: [ { text: "a", correct: false, reason: "We normally use 'the' when referring to the moon as the unique object in our sky." }, { text: "an", correct: false, reason: "'Moon' does not take 'an' here." }, { text: "the", correct: true, reason: "We use 'the' with unique things such as the sun and the moon." }, { text: "no article", correct: false, reason: "The standard expression is 'the moon'." } ] }, { topic: "Professions", question: "My sister wants to be ___ architect when she finishes university.", options: [ { text: "a", correct: false, reason: "'Architect' begins with a vowel sound." }, { text: "an", correct: true, reason: "We use 'an' before a singular countable noun beginning with a vowel sound." }, { text: "the", correct: false, reason: "This is a general reference to a profession." }, { text: "no article", correct: false, reason: "Professions normally require 'a' or 'an'." } ] }, { topic: "Superlatives", question: "Mount Everest is ___ highest mountain in the world.", options: [ { text: "a", correct: false, reason: "Superlatives normally take 'the'." }, { text: "an", correct: false, reason: "Superlatives do not use 'an'." }, { text: "no article", correct: false, reason: "The standard form is 'the highest'." }, { text: "the", correct: true, reason: "We normally use 'the' before superlative adjectives." } ] }, { topic: "Family Names", question: "___ Smiths are going on a trip to Italy this weekend.", options: [ { text: "The", correct: true, reason: "We use 'the + plural surname' to refer to a whole family." }, { text: "A", correct: false, reason: "'A' refers to one singular person or thing." }, { text: "An", correct: false, reason: "We do not use 'an' with a family surname in this structure." }, { text: "no article", correct: false, reason: "The standard form is 'the Smiths'." } ] }, { topic: "First vs. Second Mention", question: "I bought ___ new car yesterday. ___ car is red.", options: [ { text: "a, a", correct: false, reason: "The second reference is to a specific car already mentioned." }, { text: "a, an", correct: false, reason: "The second reference requires 'the'." }, { text: "a, the", correct: true, reason: "We use 'a' for the first mention and 'the' for the second mention." }, { text: "the, the", correct: false, reason: "The car has not been previously identified." } ] }, { topic: "Musical Instruments", question: "My father plays ___ guitar very well.", options: [ { text: "a", correct: false, reason: "The usual expression is 'play the guitar'." }, { text: "an", correct: false, reason: "'Guitar' begins with a consonant sound and the standard expression uses 'the'." }, { text: "no article", correct: false, reason: "We normally use 'the' with musical instruments after 'play'." }, { text: "the", correct: true, reason: "We normally say 'play the guitar', 'play the piano', etc." } ] }, { topic: "Indefinite Articles", question: "She usually eats ___ apple for breakfast every morning.", options: [ { text: "a", correct: false, reason: "'Apple' begins with a vowel sound, so we use 'an'." }, { text: "an", correct: true, reason: "We use 'an' before words beginning with a vowel sound." }, { text: "the", correct: false, reason: "She is talking about an apple in general, not a specific apple." }, { text: "no article", correct: false, reason: "A singular countable noun needs a determiner." } ] }, { topic: "No Article", question: "I love ___ music, especially classical music.", options: [ { text: "a", correct: false, reason: "'Music' is uncountable when referring to music in general." }, { text: "an", correct: false, reason: "'Music' is uncountable here." }, { text: "the", correct: false, reason: "We are talking about music in general, not specific music." }, { text: "no article", correct: true, reason: "We generally use no article with uncountable nouns when talking about them in general." } ] }, { topic: "Places", question: "We had dinner at ___ restaurant near our hotel.", options: [ { text: "a", correct: true, reason: "The restaurant has not been identified before, so we use 'a'." }, { text: "an", correct: false, reason: "'Restaurant' begins with a consonant sound." }, { text: "the", correct: false, reason: "No specific restaurant has been identified." }, { text: "no article", correct: false, reason: "A singular countable noun needs a determiner." } ] }, { topic: "Specific Reference", question: "Can you close ___ window, please? It's getting cold.", options: [ { text: "a", correct: false, reason: "The speaker and listener can identify the specific window." }, { text: "an", correct: false, reason: "'Window' begins with a consonant sound." }, { text: "the", correct: true, reason: "We use 'the' when the specific thing is clear from the situation." }, { text: "no article", correct: false, reason: "A specific singular countable noun needs 'the' here." } ] }, { topic: "Countries", question: "My brother lives in ___ United Kingdom.", options: [ { text: "a", correct: false, reason: "Country names of this type take 'the'." }, { text: "an", correct: false, reason: "The expression is 'the United Kingdom'." }, { text: "the", correct: true, reason: "We use 'the' with country names containing words such as Kingdom, States or Republic." }, { text: "no article", correct: false, reason: "The standard name is 'the United Kingdom'." } ] }, { topic: "Institutions", question: "My daughter goes to ___ school by bus every morning.", options: [ { text: "a", correct: false, reason: "When talking about the normal purpose of school, we often use no article." }, { text: "an", correct: false, reason: "The normal expression is 'go to school'." }, { text: "the", correct: false, reason: "Here 'school' refers to the institution and its normal purpose." }, { text: "no article", correct: true, reason: "We commonly say 'go to school' when referring to attending school as a student." } ] }, { topic: "General vs. Specific", question: "___ students need regular practice to improve their English.", options: [ { text: "A", correct: false, reason: "'Students' is plural, so 'a' cannot be used." }, { text: "An", correct: false, reason: "'An' cannot be used with a plural noun." }, { text: "The", correct: false, reason: "The sentence refers to students in general." }, { text: "No article", correct: true, reason: "Plural countable nouns can be used without an article when speaking generally." } ] }, { topic: "Jobs", question: "She is ___ engineer at a large technology company.", options: [ { text: "a", correct: false, reason: "'Engineer' begins with a vowel sound." }, { text: "an", correct: true, reason: "Professions use 'a/an', and 'engineer' begins with a vowel sound." }, { text: "the", correct: false, reason: "This is a general reference to her profession." }, { text: "no article", correct: false, reason: "Professions normally require 'a' or 'an'." } ] }, { topic: "Specific Places", question: "We visited ___ museum that you recommended.", options: [ { text: "a", correct: false, reason: "The museum is already identified by the relative clause." }, { text: "an", correct: false, reason: "Although 'museum' begins with a consonant sound, the main issue is that the museum is specific." }, { text: "the", correct: true, reason: "'That you recommended' identifies a specific museum." }, { text: "no article", correct: false, reason: "A singular countable noun requires a determiner." } ] }, { topic: "Meals", question: "We usually have ___ breakfast at 7:30.", options: [ { text: "a", correct: false, reason: "Meals such as breakfast, lunch and dinner often take no article when used generally." }, { text: "an", correct: false, reason: "We normally say 'have breakfast' when referring to the meal generally." }, { text: "the", correct: false, reason: "No article is normally used for meals in this general sense." }, { text: "no article", correct: true, reason: "We normally say 'have breakfast', 'have lunch' and 'have dinner'." } ] }, { topic: "Specific Superlatives", question: "This is ___ most interesting book I have ever read.", options: [ { text: "a", correct: false, reason: "Superlatives normally take 'the'." }, { text: "an", correct: false, reason: "The standard structure is 'the most interesting'." }, { text: "the", correct: true, reason: "We use 'the' before superlative forms such as 'the most interesting'." }, { text: "no article", correct: false, reason: "The standard expression requires 'the'." } ] }, { topic: "No Article with Languages", question: "She speaks ___ English very fluently.", options: [ { text: "a", correct: false, reason: "Languages do not normally take 'a'." }, { text: "an", correct: false, reason: "Languages do not normally take 'an'." }, { text: "the", correct: false, reason: "We normally use no article with languages." }, { text: "no article", correct: true, reason: "Language names such as English, French and Spanish normally take no article." } ] } ]; let currentQuestion = 0; let score = 0; const questionsContainer = document.getElementById("mafen-article-questions"); const resultContainer = document.getElementById("mafen-article-result"); const currentNumber = document.getElementById("mafen-article-current"); const totalNumber = document.getElementById("mafen-article-total"); const scoreDisplay = document.getElementById("mafen-article-score"); const progressFill = document.getElementById("mafen-article-progress-fill"); totalNumber.textContent = quizData.length; function loadQuestion() { const question = quizData[currentQuestion]; currentNumber.textContent = currentQuestion + 1; scoreDisplay.textContent = score; progressFill.style.width = ((currentQuestion + 1) / quizData.length * 100) + "%"; let html = ""; html += ` ${question.topic} ${currentQuestion + 1}. ${question.question} `; question.options.forEach(function(option, index) { html += ` ${option.text} `; }); html += ` `; questionsContainer.innerHTML = html; const buttons = questionsContainer.querySelectorAll(".mafen-article-option"); buttons.forEach(function(button) { button.addEventListener("click", function() { const selectedIndex = parseInt(this.getAttribute("data-index")); checkAnswer(selectedIndex, buttons); }); }); } function checkAnswer(selectedIndex, buttons) { const question = quizData[currentQuestion]; buttons.forEach(function(button) { button.disabled = true; }); const selectedButton = buttons[selectedIndex]; const correctIndex = question.options.findIndex(function(option) { return option.correct === true; }); const correctButton = buttons[correctIndex]; if (question.options[selectedIndex].correct) { score++; selectedButton.classList.add("correct"); } else { selectedButton.classList.add("incorrect"); correctButton.classList.add("correct"); } scoreDisplay.textContent = score; const feedback = document.getElementById("mafen-article-feedback"); if (question.options[selectedIndex].correct) { feedback.className = "mafen-article-feedback correct-feedback"; feedback.innerHTML = "✓ Correct!" + question.options[selectedIndex].reason; } else { feedback.className = "mafen-article-feedback incorrect-feedback"; feedback.innerHTML = "✗ Incorrect." + question.options[selectedIndex].reason + "Correct answer: " + question.options[correctIndex].text; } feedback.style.display = "block"; if (currentQuestion < quizData.length - 1) { const nextButton = document.createElement("button"); nextButton.type = "button"; nextButton.className = "mafen-article-next"; nextButton.textContent = "Next Question →"; nextButton.addEventListener("click", function() { currentQuestion++; loadQuestion(); window.scrollTo({ top: questionsContainer.offsetTop - 20, behavior: "smooth" }); }); feedback.parentNode.appendChild(nextButton); } else { const finishButton = document.createElement("button"); finishButton.type = "button"; finishButton.className = "mafen-article-next"; finishButton.textContent = "View My Result"; finishButton.addEventListener("click", function() { showResult(); }); feedback.parentNode.appendChild(finishButton); } } function showResult() { questionsContainer.style.display = "none"; const percentage = Math.round((score / quizData.length) * 100); let message = ""; if (percentage >= 90) { message = "Excellent! Your knowledge of English articles is very strong."; } else if (percentage >= 75) { message = "Very good! You have a good understanding of English articles."; } else if (percentage >= 60) { message = "Good effort! A little more practice will help you improve."; } else { message = "Keep practising! Review the rules for A, An, The and No Article."; } resultContainer.innerHTML = ` Quiz Complete! ${score} / ${quizData.length} ${percentage}% ${message} ↻ Restart Quiz `; resultContainer.style.display = "block"; document .getElementById("mafen-article-restart") .addEventListener("click", restartQuiz); resultContainer.scrollIntoView({ behavior: "smooth", block: "center" }); } function restartQuiz() { currentQuestion = 0; score = 0; resultContainer.style.display = "none"; questionsContainer.style.display = "block"; scoreDisplay.textContent = "0"; loadQuestion(); window.scrollTo({ top: questionsContainer.offsetTop - 20, behavior: "smooth" }); } loadQuestion(); });