testing artical

#tractor-quiz { max-width: 700px; margin: 25px auto; padding: 22px; background: #f5fff5; border: 2px solid #25833b; border-radius: 14px; font-family: Arial, sans-serif; color: #222; box-sizing: border-box; } #tractor-quiz * { box-sizing: border-box; } #tractor-quiz h2 { text-align: center; color: #176b2d; margin-top: 0; } #tractor-quiz .quiz-subtitle { text-align: center; color: #555; } #tractor-quiz .progress { height: 9px; background: #dcebdc; border-radius: 20px; margin: 18px 0; overflow: hidden; } #tractor-quiz .progress-bar { height: 100%; width: 0; background: #25833b; transition: width .3s; } #tractor-quiz .question { font-size: 19px; font-weight: bold; margin: 20px 0; } #tractor-quiz .option { display: block; width: 100%; padding: 13px; margin: 10px 0; border: 1px solid #b8d8bc; background: white; border-radius: 8px; cursor: pointer; text-align: left; font-size: 16px; color: #222; } #tractor-quiz .option:hover:not(:disabled) { background: #e5f5e7; border-color: #25833b; } #tractor-quiz .option:disabled { cursor: default; opacity: 1; } #tractor-quiz .correct { background: #d5f5dc; border: 2px solid #168536; } #tractor-quiz .wrong { background: #ffe1e1; border: 2px solid #d83232; } #tractor-quiz .feedback { font-weight: bold; margin: 15px 0; min-height: 24px; } #tractor-quiz .quiz-btn { background: #25833b; color: white; padding: 12px 25px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; margin-top: 12px; } #tractor-quiz .quiz-btn:hover { background: #176b2d; } #tractor-quiz .result { text-align: center; padding: 20px 5px; } #tractor-quiz .score { font-size: 35px; font-weight: bold; color: #25833b; } #tractor-quiz .hidden { display: none; } #tractor-quiz .quiz-footer { text-align: center; font-size: 12px; color: #777; margin-top: 20px; }

🚜 Tractor Job Quiz

Test Your Knowledge About Tractor Jobs

Welcome to the Tractor Job Quiz! Answer 10 questions and check how much you know about tractor jobs, driving, maintenance and agriculture.

(function () { const questions = [ { q: “1. What is the main use of a tractor in agriculture?”, a: [“Cooking food”, “Ploughing fields”, “Building computers”, “Washing clothes”], c: 1 }, { q: “2. Which skill is important for a tractor driver?”, a: [“Safe driving”, “Swimming”, “Typing fast”, “Painting”], c: 0 }, { q: “3. What should you check before starting a tractor?”, a: [“Radio volume”, “Fuel and oil level”, “Seat colour”, “Music player”], c: 1 }, { q: “4. Which attachment is commonly used for ploughing?”, a: [“Plough”, “Fan”, “Printer”, “Ladder”], c: 0 }, { q: “5. What does PTO stand for in a tractor?”, a: [“Power Take-Off”, “Petrol Turn Operation”, “Power Tire Option”, “Primary Tractor Output”], c: 0 }, { q: “6. Why are tractor tyres designed with deep treads?”, a: [“For decoration”, “For better grip”, “To reduce engine power”, “To increase noise”], c: 1 }, { q: “7. What should a tractor operator do on a steep slope?”, a: [“Drive carelessly”, “Follow safe operating procedures”, “Switch off the brakes”, “Drive at maximum speed”], c: 1 }, { q: “8. Which fuel is commonly used in agricultural tractors?”, a: [“Diesel”, “Cooking oil”, “Kerosene only”, “Water”], c: 0 }, { q: “9. What is the purpose of regular tractor servicing?”, a: [“To damage the engine”, “To maintain performance and safety”, “To waste fuel”, “To reduce tyre size”], c: 1 }, { q: “10. Which document may be required to legally drive a tractor on public roads?”, a: [“Library card”, “Valid applicable driving licence”, “School ID only”, “Bank passbook”], c: 1 } ]; let current = 0; let score = 0; let answered = false; const $ = id => document.getElementById(id); window.tqStart = function () { $(“tq-start”).classList.add(“hidden”); $(“tq-game”).classList.remove(“hidden”); showQuestion(); }; function showQuestion() { answered = false; const q = questions[current]; $(“tq-counter”).textContent = “Question ” + (current + 1) + ” of ” + questions.length; $(“tq-progress”).style.width = (current / questions.length * 100) + “%”; $(“tq-question”).textContent = q.q; $(“tq-feedback”).textContent = “”; $(“tq-next”).classList.add(“hidden”); $(“tq-options”).innerHTML = “”; q.a.forEach((answer, index) => { const btn = document.createElement(“button”); btn.className = “option”; btn.textContent = String.fromCharCode(65 + index) + “. ” + answer; btn.onclick = () => checkAnswer(index, btn); $(“tq-options”).appendChild(btn); }); } function checkAnswer(index, selected) { if (answered) return; answered = true; const q = questions[current]; const buttons = $(“tq-options”).children; Array.from(buttons).forEach((btn, i) => { btn.disabled = true; if (i === q.c) btn.classList.add(“correct”); }); if (index === q.c) { score++; $(“tq-feedback”).textContent = “✓ Correct Answer!”; $(“tq-feedback”).style.color = “green”; } else { selected.classList.add(“wrong”); $(“tq-feedback”).textContent = “✗ Incorrect! Correct answer: ” + q.a[q.c]; $(“tq-feedback”).style.color = “red”; } $(“tq-progress”).style.width = ((current + 1) / questions.length * 100) + “%”; $(“tq-next”).textContent = current === questions.length – 1 ? “View Result” : “Next Question →”; $(“tq-next”).classList.remove(“hidden”); } window.tqNext = function () { current++; if (current = 80 ? “Excellent! You have great tractor job knowledge. 🚜” : percent >= 50 ? “Good effort! Keep learning about tractor jobs.” : “Keep practising! Try the quiz again to improve.”; } window.tqRestart = function () { current = 0; score = 0; $(“tq-result”).classList.add(“hidden”); $(“tq-game”).classList.remove(“hidden”); showQuestion(); }; })();