8. Cell Biology and Biotechnology ( Science – 02 )

function shuffle(a){for(let i=a.length-1;i>0;i–){let j=Math.floor(Math.random()*(i+1));[a[i],a[j]]=[a[j],a[i]];}return a;} let container = document.getElementById(“mcq-container”); mcqs.forEach(mcq=>{ let box=document.createElement(“div”); box.className=”mcq-box”; box.innerHTML=` ${mcq.q} `; shuffle([…mcq.o]).forEach(opt=>{ let div=document.createElement(“div”); div.className=”mcq-option”; div.innerText=opt.t; div.onclick=()=>mark(div,opt.c,box); box.appendChild(div); }); container.appendChild(box); }); function mark(option,isCorrect,box){ box.querySelectorAll(“.mcq-option”).forEach(o=>o.classList.remove(“correct”,”wrong”)); option.classList.add(isCorrect?”correct”:”wrong”); } More Flashcards MCQ questions Click Here 👈 👉 https://schoolanswer.in/flashcards/