body {
font-family: “Noto Sans Bengali”, sans-serif;
background-color: #f3f8f4;
margin: 20px;
color: #333;
}
h1 {
text-align: center;
color: #2b6d3f;
}
.quiz-container {
background: #fff;
border-radius: 8px;
padding: 20px;
max-width: 800px;
margin: auto;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.question {
margin-bottom: 5px;
font-weight: bold;
}
.options label {
display: block;
background: #eef7ee;
margin-bottom: 8px;
padding: 8px 10px;
border-radius: 4px;
cursor: pointer;
position: relative;
}
.options input {
margin-right: 8px;
cursor: pointer;
}
.feedback {
margin-left: 28px;
font-size: 14px;
font-weight: bold;
margin-top: -5px;
margin-bottom: 10px;
}
.correct {
color: green;
}
.wrong {
color: red;
}
button {
background-color: #2b6d3f;
color: white;
padding: 10px 20px;
border: none;
margin-top: 10px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
display: none;
}
button:hover {
background-color: #24864f;
}
#result {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
color: #1c5d35;
text-align: center;
white-space: pre-line;
}
অষ্টম শ্রেণীর পরিবেশের সংকট ও সংরক্ষণ MCQ
Wbbse Class 8 Science Chapter 10 Question Answer MCQ নিয়ে পরিবেশের সংকট, উদ্ভিদ ও পরিবেশের সংরক্ষণ বিষয়ক Online Quiz এখানে দেওয়া হয়েছে। অষ্টম শ্রেণীর পরিবেশ ও বিজ্ঞান পরীক্ষার প্রস্তুতির জন্য এই মক টেস্টটি অনুশীলন করুন।
let totalQuestions = document.querySelectorAll(“.quiz-container .question”).length;
let answeredCount = 0;
let correctCount = 0;
document.querySelectorAll(“.options”).forEach((optionGroup) => {
const inputs = optionGroup.querySelectorAll(“input[type=radio]”);
const feedbackEl = optionGroup.querySelector(“.feedback”);
optionGroup.answered = false;
inputs.forEach(input => {
input.addEventListener(“change”, () => {
if(optionGroup.answered) return; // prevent re-answering
optionGroup.answered = true;
answeredCount++;
// Check answer
let selectedValue = parseInt(input.value, 10);
let correctValue = parseInt(optionGroup.getAttribute(“data-correct”), 10);
if(selectedValue === correctValue) {
correctCount++;
feedbackEl.innerHTML = ‘Right Answer!‘;
} else {
let correctLabel = inputs[correctValue-1].parentElement.innerText.trim();
feedbackEl.innerHTML = `Wrong Answer। Right Answer: ${correctLabel}`;
}
// Show submit button only when all answered
if(answeredCount === totalQuestions) {
document.getElementById(“submit-btn”).style.display = “block”;
}
});
});
});
function showFinalScore() {
const resultDiv = document.getElementById(“result”);
resultDiv.innerText = `Your Score: ${correctCount} / ${totalQuestions} ✨
` +
(correctCount === totalQuestions ? “Excellent!” :
(correctCount > totalQuestions / 2 ? “Good…Keep Learning” : “Try Again, 👍”));
window.scrollTo(0, document.body.scrollHeight);
}
{
“@context”: “https://schema.org”,
“@type”: “FAQPage”,
“mainEntity”: [
{
“@type”: “Question”,
“name”: “পরিবেশের সংকট কী?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “পরিবেশের সংকট হলো প্রাকৃতিক সম্পদ ও বাস্তুতন্ত্রের ক্ষতি হওয়া, যা মানুষের অব্যবস্থাপনা ও দূষণের কারণে ঘটে।”
}
},
{
“@type”: “Question”,
“name”: “উদ্ভিদের পরিবেশে কী গুরুত্ব আছে?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “উদ্ভিদ পরিবেশে অক্সিজেন উৎপাদন, কার্বন ডাই অক্সাইড শোষণ ও বাস্তুতন্ত্রের ভারসাম্য রক্ষায় গুরুত্বপূর্ণ ভূমিকা পালন করে।”
}
},
{
“@type”: “Question”,
“name”: “পরিবেশ সংরক্ষণ কেন প্রয়োজন?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “পরিবেশ সংরক্ষণ জীববৈচিত্র্যের রক্ষা, সুস্থ জীবনযাপন ও ভবিষ্যৎ প্রজন্মের জন্য নিরাপদ পরিবেশ নিশ্চিত করার জন্য গুরুত্বপূর্ণ।”
}
},
{
“@type”: “Question”,
“name”: “Class 8 Science Chapter 10 এ কী শিখানো হয়?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “এই অধ্যায়ে পরিবেশের সংকট, উদ্ভিদ ও পরিবেশ সংরক্ষণের গুরুত্ব ও প্রশ্নোত্তরের মাধ্যমে বিষয়টি সহজভাবে ব্যাখ্যা করা হয়।”
}
}
]
}
.faq-container {
max-width: 800px;
margin: 20px auto;
font-family: “Noto Sans Bengali”, sans-serif;
}
.faq-item {
border-bottom: 1px solid #ddd;
}
.faq-question {
background-color: #2b6d3f;
color: white;
padding: 12px 16px;
cursor: pointer;
font-weight: 600;
border-radius: 4px;
margin-top: 12px;
}
.faq-answer {
padding: 12px 16px;
display: none;
background-color: #eef7ee;
border-radius: 0 0 4px 4px;
color: #333;
line-height: 1.5em;
}
@media (max-width: 600px) {
.faq-question, .faq-answer {
font-size: 16px;
padding: 10px 14px;
}
}
const faqItems = document.querySelectorAll(‘.faq-question’);
faqItems.forEach(item => {
item.addEventListener(‘click’, () => {
const expanded = item.getAttribute(‘aria-expanded’) === ‘true’;
// Close all
faqItems.forEach(i => {
i.setAttribute(‘aria-expanded’, ‘false’);
document.getElementById(i.getAttribute(‘aria-controls’)).style.display = ‘none’;
});
if (!expanded) {
item.setAttribute(‘aria-expanded’, ‘true’);
document.getElementById(item.getAttribute(‘aria-controls’)).style.display = ‘block’;
}
});
// Allow keyboard toggling
item.addEventListener(‘keydown’, e => {
if(e.key === “Enter” || e.key === ” “){
e.preventDefault();
item.click();
}
});
});
