विज्ञान MCQ क्विज़ | Science Bilingual Quiz - Practice Set 3 * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; } body { background: linear-gradient(145deg, #eef2f7 0%, #d9e2ec 100%); padding: 0; min-height: 100vh; font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Noto Sans', system-ui, sans-serif; } .container { max-width: 100%; margin: 0 auto; padding: 0; } .quiz-header { background: linear-gradient(135deg, #0b2b5c, #102b47); color: white; padding: 16px 20px; border-radius: 0 0 28px 28px; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); margin-bottom: 12px; } .quiz-header h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.3px; background: linear-gradient(120deg, #ffffff, #e0f2fe); background-clip: text; -webkit-background-clip: text; color: transparent; } .quiz-header p { font-size: 0.8rem; opacity: 0.85; margin-top: 5px; } .quiz-content { padding: 8px 8px 12px 8px; } .quiz-card { background: rgba(255, 255, 255, 0.98); border-radius: 24px; padding: 18px 16px; margin-bottom: 16px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.15); transition: all 0.2s ease; border: 1px solid #ffffff80; width: 100%; } .question { font-size: 1rem; font-weight: 700; line-height: 1.45; margin-bottom: 18px; color: #0f2b3d; border-left: 5px solid #2c7da0; padding-left: 14px; background: #f9fafc; border-radius: 16px; word-break: break-word; } .option-label { display: flex; align-items: flex-start; gap: 12px; background: #f1f5f9; margin-bottom: 12px; padding: 14px 16px; border-radius: 60px; cursor: pointer; transition: all 0.2s; border: 1.5px solid transparent; font-weight: 500; touch-action: manipulation; width: 100%; } .option-label:active { background: #e2eafc; transform: scale(0.98); } input[type="radio"] { width: 22px; height: 22px; min-width: 22px; accent-color: #1e4a76; cursor: pointer; margin-top: 2px; } .option-text { font-size: 0.9rem; line-height: 1.4; flex: 1; word-break: break-word; } .explanation-box { margin-top: 16px; padding: 14px 16px; background: #fef3c7; border-left: 5px solid #f59e0b; border-radius: 16px; display: none; font-size: 0.85rem; line-height: 1.5; color: #78350f; } .explanation-box.show { display: block; animation: fadeIn 0.3s ease; } .explanation-title { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; } .explanation-title i { color: #f59e0b; } .explanation-text { font-size: 0.85rem; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } } .submit-btn { background: linear-gradient(95deg, #1f6392, #0f3b60); border: none; color: white; font-size: 1.2rem; font-weight: bold; padding: 18px 20px; border-radius: 60px; cursor: pointer; width: 100%; transition: 0.2s; margin: 8px 0 20px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2); letter-spacing: 0.5px; touch-action: manipulation; } .submit-btn:active { transform: scale(0.97); } .result { background: #dcfce8; border-left: 10px solid #15803d; padding: 18px 16px; border-radius: 28px; font-size: 1.15rem; font-weight: bold; text-align: center; margin: 12px 0 20px; display: none; box-shadow: 0 6px 14px rgba(0,0,0,0.1); word-break: break-word; line-height: 1.5; } .correct-highlight { background: #bbf7d0 !important; border-color: #15803d !important; } .wrong-highlight { background: #ffe4e2 !important; border-color: #dc2626 !important; } ::-webkit-scrollbar { width: 3px; } button, .option-label { -webkit-tap-highlight-color: rgba(59,130,246,0.2); } @media (max-width: 600px) { .quiz-content { padding: 6px 6px 10px 6px; } .quiz-header { padding: 14px 16px; } .quiz-header h1 { font-size: 1.3rem; } .quiz-card { padding: 16px 14px; margin-bottom: 14px; } .question { font-size: 0.95rem; padding-left: 12px; } .option-label { padding: 12px 14px; gap: 10px; } .option-text { font-size: 0.87rem; } .explanation-box { padding: 12px 14px; font-size: 0.8rem; } .submit-btn { font-size: 1.1rem; padding: 16px; } } @media (max-width: 380px) { .option-text { font-size: 0.82rem; } .question { font-size: 0.9rem; } } 🔬 विज्ञान MCQ क्विज़ | Science Bilingual Quiz Practice Set 3 | 25 प्रश्न | प्रत्येक प्रश्न के बाद व्याख्या | 25 Questions with Explanations ✅ Submit Quiz / जमा करें // 25 BILINGUAL QUESTIONS - Practice Set 3 with Explanations const questionsData = [ { qText: "दाब का एसआई (SI) मात्रक क्या है? / What is the SI unit of pressure?", opts: ["(a) न्यूटन प्रति वर्ग सेंटीमीटर / Newton per square centimetre", "(b) न्यूटन-वर्ग मीटर / Newton-square metre", "(c) न्यूटन प्रति वर्ग मीटर / Newton per square metre", "(d) न्यूटन-वर्ग सेंटीमीटर / Newton-square centimetre"], ans: "C", explanation: "दाब का SI मात्रक पास्कल (Pa) है, जो न्यूटन प्रति वर्ग मीटर (N/m²) के बराबर होता है। / The SI unit of pressure is Pascal (Pa), which is equal to Newton per square metre (N/m²)." }, { qText: "एक बहुत पुराने मॉडल की पेंडुलम घड़ी की कार्य पद्धति पूरी तरह से कैसी थी? / The working system of a very old pendulum clock was completely _______", opts: ["(a) यांत्रिक / Mechanical", "(b) यांत्रिक और विद्युत / Mechanical and electrical", "(c) विद्युत / Electrical", "(d) बैटरी संचालित / Battery operated"], ans: "A", explanation: "पुरानी पेंडुलम घड़ियाँ पूरी तरह से यांत्रिक होती थीं, जो समय मापने के लिए गियर और झूलते पेंडुलम का उपयोग करती थीं। / Old pendulum clocks were completely mechanical, using gears and a swinging pendulum to measure time." }, { qText: "एक समतल दर्पण द्वारा बनाई गई छवि की क्या विशेषताएँ होती हैं? / The characteristics of image formed by a plane mirror are:", opts: ["(a) समान आकार, सीधी, पार्श्व तौर पर उलटी, आभासी / Same size, erect, laterally inverted, virtual", "(b) समान आकार, सीधी, उलटी, वास्तविक, आवर्धित / Same size, erect, inverted, real, magnified", "(c) अलग आकार, सीधी, उलटी, आभासी / Different size, erect, inverted, virtual", "(d) अलग आकार, आवर्धित, उलटी, आभासी / Different size, magnified, inverted, virtual"], ans: "A", explanation: "समतल दर्पण समान आकार, सीधी, पार्श्व उलटी (Left turns to Right) और आभासी छवि बनाता है। / Plane mirror forms an image that is same size, erect, laterally inverted, and virtual." }, { qText: "तारे रात को आसमान में क्यों टिमटिमाते हैं? / Why do stars twinkle at night?", opts: ["(a) उन्नत प्रकाश के कारण / Due to advanced light", "(b) तारा-प्रकाश के वायुमंडलीय अपवर्तन के कारण / Due to atmospheric refraction of starlight", "(c) प्रकाश के संचरण के कारण / Due to propagation of light", "(d) गर्म वायु के कारण / Due to hot air"], ans: "B", explanation: "तारे वायुमंडलीय परतों के बदलते घनत्व के कारण होने वाले वायुमंडलीय अपवर्तन (Atmospheric refraction) के कारण टिमटिमाते हैं। / Stars twinkle due to atmospheric refraction caused by varying densities of atmospheric layers." }, { qText: "10 V के विभवांतर वाले दो बिंदुओं के बीच 4 C के चार्ज को स्थानांतरित करने में कितना कार्य किया जाता है? / How much work is done in moving 4 C charge through 10 V potential difference?", opts: ["(a) 10 J", "(b) 48 J", "(c) 40 J", "(d) 44 J"], ans: "C", explanation: "कार्य = आवेश × विभवांतर = 4 C × 10 V = 40 जूल। / Work = Charge × Potential difference = 4 C × 10 V = 40 Joules." }, { qText: "अत्यधिक प्रतिरोध वाले चालक को क्या कहा जाता है? / A conductor having very high resistance is called?", opts: ["(a) सुचालक / Conductor", "(b) विद्युतरोधी / Insulator", "(c) प्रतिरोधक / Resistor", "(d) अर्धचालक / Semiconductor"], ans: "C", explanation: "अत्यधिक प्रतिरोध वाले पदार्थ को प्रतिरोधक (Resistor) कहते हैं जो धारा के प्रवाह को नियंत्रित करता है। / A conductor with very high resistance is called a resistor." }, { qText: "विद्युत बल्ब में प्रकाश देने वाले पतले तार को क्या कहा जाता है? / The thin wire that glows in an electric bulb is called _______", opts: ["(a) प्रतिरोध / Resistance", "(b) फ्यूज / Fuse", "(c) रिले / Relay", "(d) फिलामेंट (तंतु) / Filament"], ans: "D", explanation: "विद्युत बल्ब में चमकने वाले पतले तार को फिलामेंट (Filament) कहते हैं, जो आमतौर पर टंगस्टन का बना होता है। / The thin glowing wire inside a bulb is called the filament, usually made of tungsten." }, { qText: "सिलाई मशीन के कार्यात्मक मॉडल के आविष्कार के लिए पहला अमेरिकी पेटेंट किसे प्रदान किया गया था? / Who received the first American patent for a functional sewing machine invention?", opts: ["(a) एलियास होवे / Elias Howe", "(b) एलेसेंड्रो वोल्टा / Alessandro Volta", "(c) अर्नेस्ट रदरफोर्ड / Ernest Rutherford", "(d) जॉन नेपियर / John Napier"], ans: "A", explanation: "एलियास होवे (Elias Howe) को 1846 में लॉकस्टिच डिजाइन वाली सिलाई मशीन का पहला अमेरिकी पेटेंट मिला था। / Elias Howe received the first US patent for the lockstitch sewing machine in 1846." }, { qText: "निम्नलिखित में से किस प्राणी ऊतक (Animal Tissue) में चपटी कोशिकाएं होती हैं? / Which animal tissue contains flat, scale-like cells?", opts: ["(a) प्लाज्मा कोशिकाएं / Plasma cells", "(b) घनाभाकार उपकला / Cuboidal epithelium", "(c) शल्की उपकला / Squamous epithelium", "(d) मास्ट कोशिकाएं / Mast cells"], ans: "C", explanation: "शल्की उपकला (Squamous epithelium) में पतली और चपटी कोशिकाएँ होती हैं जो सुरक्षात्मक परत बनाती हैं। / Squamous epithelium consists of flat, scale-like cells that form thin layers." }, { qText: "निम्नलिखित में से कौन वैज्ञानिक विकास के सिद्धांत (Theory of Evolution) से संबंधित हैं? / Who among the following is related to the theory of evolution?", opts: ["(a) मिलर / Miller", "(b) चार्ल्स डार्विन / Charles Darwin", "(c) जीन-बैप्टिस्ट लैमार्क / Jean-Baptiste Lamarck", "(d) ग्रेगर मेंडल / Gregor Mendel"], ans: "B", explanation: "चार्ल्स डार्विन (Charles Darwin) ने प्राकृतिक चयन द्वारा विकासवाद का सिद्धांत (Theory of Evolution) दिया था। / Charles Darwin formulated the theory of evolution by natural selection." }, { qText: "मानव हृदय में, फुफ्फुसीय शिरा (Pulmonary Vein) कहाँ आकर खुलती या जुड़ती है? / In the human heart, where does the pulmonary vein connect or open into?", opts: ["(a) बाएं आलिंद में / Left atrium", "(b) दाएं आलिंद में / Right atrium", "(c) बाएं निलय में / Left ventricle", "(d) दाएं निलय में / Right ventricle"], ans: "A", explanation: "फुफ्फुसीय शिरा (Pulmonary vein) फेफड़ों से शुद्ध ऑक्सीजन युक्त रक्त लेकर हृदय के बाएं आलिंद (Left atrium) में आती है। / The pulmonary vein carries oxygenated blood from lungs to the left atrium." }, { qText: "मस्तिष्क का कौन सा हिस्सा श्वसन (Breathing) की गति को नियंत्रित करता है? / Which part of the brain controls the rate of breathing?", opts: ["(a) मध्य मस्तिष्क / Mid brain", "(b) अग्र मस्तिष्क / Fore brain", "(c) मेडुला / Medulla", "(d) अनुमस्तिष्क / Cerebellum"], ans: "C", explanation: "मेडुला ऑब्लांगेटा (Medulla) श्वसन, रक्तचाप और हृदय गति जैसी अनैच्छिक गतिविधियों को नियंत्रित करता है। / The medulla oblongata controls involuntary functions like breathing, blood pressure, and heart rate." }, { qText: "निषेचित अंडा (युग्मनज) मानव शरीर में किसकी परत में समाविष्ट (Implant) हो जाता है? / The fertilized egg, zygote, gets embedded in the lining of which organ?", opts: ["(a) डिम्बवाहिनी / Oviduct", "(b) योनि / Vagina", "(c) गर्भाशय ग्रीवा / Cervix", "(d) गर्भाशय / Uterus"], ans: "D", explanation: "निषेचन के बाद बना युग्मनज विकसित होकर गर्भाशय (Uterus) की आंतरिक परत (Endometrium) में स्थापित होता है। / After fertilization, the zygote implants itself into the inner lining of the uterus." }, { qText: "निम्नलिखित में से कौन सा विकल्प सही सुमेलित नहीं है? / Which of the following options is NOT correctly matched?", opts: ["(a) मलेरिया : प्रोटोजोआ / Malaria : Protozoa", "(b) खसरा : जीवाणु / Measles : Bacteria", "(c) टिटनेस : जीवाणु / Tetanus : Bacteria", "(d) टाइफाइड : जीवाणु / Typhoid : Bacteria"], ans: "B", explanation: "खसरा (Measles) मॉर्बिलाइवायरस के कारण होता है, जीवाणु से नहीं। इसलिए विकल्प (b) गलत सुमेलित है। / Measles is caused by a virus (Morbillivirus), not bacteria. Thus, option (b) is incorrectly matched." }, { qText: "निम्नलिखित में से किस पौधे को ब्रायोफाइटा (Bryophyta) वर्ग में शामिल किया गया है? / Which of the following plants belongs to the Bryophyta division?", opts: ["(a) यूलोथ्रिक्स / Ulothrix", "(b) क्लेडोफोरा / Cladophora", "(c) रिक्सिया / Riccia", "(d) मार्सिलिया / Marsilea"], ans: "C", explanation: "रिक्सिया (Riccia) और मर्चेंटिया ब्रायोफाइटा वर्ग के अंतर्गत आते हैं जिन्हें पादप जगत का उभयचर भी कहते हैं। / Riccia belongs to Bryophyta, often referred to as the amphibians of the plant kingdom." }, { qText: "रक्षक कोशिकाएं (Guard Cells) पौधों की किस मुख्य प्रक्रिया में शामिल होती हैं? / Guard cells are primarily involved in which plant process?", opts: ["(a) वाष्पोत्सर्जन / Transpiration", "(b) परिसंचरण / Circulation", "(c) भोजन का परिवहन / Transport of food", "(d) अनुवर्तन गति / Tropic movement"], ans: "A", explanation: "रक्षक कोशिकाएँ (Guard cells) पत्तियों पर रंध्रों (Stomata) के खुलने और बंद होने को नियंत्रित कर वाष्पोत्सर्जन को संचालित करती हैं। / Guard cells regulate the opening and closing of stomatal pores, thereby controlling transpiration." }, { qText: "पौधों में निषेचन के बाद, निम्नलिखित में से कौन सा भाग बीज (Seed) में परिवर्तित होता है? / In a plant, which part develops into a seed after fertilization?", opts: ["(a) वर्तिकाग्र / Stigma", "(b) अंडाशय / Ovary", "(c) वर्तिका / Style", "(d) बीजांड / Ovule"], ans: "D", explanation: "निषेचन के बाद बीजांड (Ovule) बीज में बदल जाता है और अंडाशय (Ovary) पककर फल बनता है। / Post-fertilization, the ovule develops into a seed, while the ovary turns into a fruit." }, { qText: "भारत के पहले कृत्रिम उपग्रह (1975) और पहले स्वदेशी अंतरिक्ष मिशन (1980) का नाम क्या था? / What was the name of India's first satellite (1975) and first space mission (1980)?", opts: ["(a) आर्यभट्ट और पृथ्वी / Aryabhata and Prithvi", "(b) पृथ्वी और रोहिणी / Prithvi and Rohini", "(c) आर्यभट्ट और रोहिणी / Aryabhata and Rohini", "(d) रोहिणी और अग्नि / Rohini and Agni"], ans: "C", explanation: "भारत का पहला उपग्रह 'आर्यभट्ट' (1975) था और पहला सफल कक्षीय अंतरिक्ष मिशन 'रोहिणी' (1980) उपग्रह के प्रक्षेपण के साथ पूरा हुआ। / India's first satellite was Aryabhata (1975), and Rohini (1980) was the first satellite placed in orbit by an indigenous launcher." }, { qText: "वह विषमांगी मिश्रण (Heterogeneous Mixture) जिसमें विलेय के कण घुलते नहीं हैं बल्कि पूरे माध्यम में निलंबित रहते हैं, क्या कहलाता है? / A heterogeneous mixture with suspended particles that do not dissolve is called _______", opts: ["(a) असंतृप्त विलयन / Unsaturated solution", "(b) निलंबन / Suspension", "(c) कोलाइड / Colloid", "(d) संतृप्त विलयन / Saturated solution"], ans: "B", explanation: "निलंबन (Suspension) एक विषमांगी मिश्रण है जिसमें ठोस कण द्रव में बिना घुले लटके रहते हैं और नग्न आँखों से देखे जा सकते हैं। / A suspension is a heterogeneous mixture containing solid particles sufficiently large for sedimentation." }, { qText: "1 ग्राम हाइड्रोजन गैस ($1 \\text{ g of } H_2$) में कुल कितने अणु मौजूद होते हैं? / How many molecules are present in one gram of hydrogen gas?", opts: ["(a) $1.5 \\times 10^{23}$", "(b) $6.02 \\times 10^{23}$", "(c) $2.5 \\times 10^{23}$", "(d) $3.01 \\times 10^{23}$"], ans: "D", explanation: "$H_2$ का मोलर द्रव्यमान = 2g होता है। 2g में $6.022 \\times 10^{23}$ अणु होते हैं, इसलिए 1g में इसके आधे यानी $3.011 \\times 10^{23}$ अणु होंगे। / Molar mass of $H_2$ is 2g/mol. Since 2g contains Avogadro's number of molecules, 1g contains half of it: $3.01 \\times 10^{23}$." }, { qText: "पानी ($H_2O$) के सापेक्ष आणविक द्रव्यमान (Molecular Mass) की गणना करें: / Calculate the relative molecular mass of water ($H_2O$).", opts: ["(a) 20 u", "(b) 18 u", "(c) 2.0 u", "(d) 1.8 u"], ans: "B", explanation: "$H_2O$ का आणविक द्रव्यमान = $(2 \\times 1 \\text{ u for H}) + (16 \\text{ u for O}) = 18 \\text{ u}$ होता है। / The molecular mass of water ($H_2O$) is calculated as $(2 \\times 1) + 16 = 18 \\text{ u}$." }, { qText: "निम्नलिखित में से किस तत्व का इलेक्ट्रॉनिक विन्यास 2, 8, 3 होता है? / Which element has the electronic configuration 2, 8, 3?", opts: ["(a) मैग्नीशियम / Magnesium", "(b) एल्युमिनियम / Aluminium", "(c) आर्गन / Argon", "(d) सोडियम / Sodium"], ans: "B", explanation: "कुल इलेक्ट्रॉनों की संख्या = $2 + 8 + 3 = 13$ है, जो कि एल्युमिनियम (Al) का परमाणु क्रमांक है। / The total number of electrons is $2 + 8 + 3 = 13$, which belongs to Aluminium (Al)." }, { qText: "इनमें से किन दो तत्वों में संयोजी इलेक्ट्रॉनों (Valence Electrons) की संख्या पूरी तरह समान होती है? / Which two elements have the same number of valence electrons?", opts: ["(a) F और Cl / F and Cl", "(b) N और C / N and C", "(c) H और He / H and He", "(d) B और Br / B and Br"], ans: "A", explanation: "फ्लोरीन (F) और क्लोरीन (Cl) दोनों ही आवर्त सारणी के समूह 17 (हैलोजन) में हैं, इसलिए दोनों के बाहरी कोश में 7 संयोजी इलेक्ट्रॉन होते हैं। / Fluorine (F) and Chlorine (Cl) belong to Group 17, so both possess 7 valence electrons." }, { qText: "साधारण खाने का नमक (NaCl) रासायनिक रूप से किससे मिलकर बना होता है? / Common salt (NaCl) is chemically formed from?", opts: ["(a) एक मजबूत अम्ल और एक मजबूत क्षार / A strong acid and a strong base", "(b) एक कमजोर अम्ल और एक कमजोर क्षार / A weak acid and a weak base", "(c) एक कमजोर अम्ल और एक मजबूत क्षार / A weak acid and a strong base", "(d) एक मजबूत अम्ल और एक कमजोर क्षार / A strong acid and a weak base"], ans: "A", explanation: "NaCl एक उदासीन लवण है जो प्रबल अम्ल (HCl) और प्रबल क्षार (NaOH) की उदासीनीकरण अभिक्रिया से बनता है। / NaCl is a neutral salt formed by the neutralization of a strong acid (HCl) and a strong base (NaOH)." }, { qText: "धावन सोडा (वाशिंग सोडा) का सही रासायनिक सूत्र क्या है? / What is the correct chemical formula of washing soda?", opts: ["(a) $Na_2CO_3 \\cdot 10H_2O$", "(b) $Na_2CO_3 \\cdot H_2O$", "(c) $Na_2CO_3 \\cdot 6H_2O$", "(d) $Na_2CO_3$"], ans: "A", explanation: "धावन सोडा रासायनिक रूप से सोडियम कार्बोनेट डेकाहाइड्रेट है, जिसका सही सूत्र $Na_2CO_3 \\cdot 10H_2O$ है। / Washing soda is chemically Sodium Carbonate Decahydrate, represented by $Na_2CO_3 \\cdot 10H_2O$." } ]; // DOM elements const questionsPanel = document.getElementById("questionsPanel"); function buildQuiz() { questionsPanel.innerHTML = ""; questionsData.forEach((q, idx) => { const qNumber = idx + 1; const card = document.createElement("div"); card.className = "quiz-card"; const questionDiv = document.createElement("div"); questionDiv.className = "question"; questionDiv.innerText = `${qNumber}. ${q.qText}`; card.appendChild(questionDiv); const optionsDiv = document.createElement("div"); optionsDiv.className = "options-wrapper"; const letters = ["A", "B", "C", "D"]; q.opts.forEach((optText, optIdx) => { const letterVal = letters[optIdx]; const label = document.createElement("label"); label.className = "option-label"; const radio = document.createElement("input"); radio.type = "radio"; radio.name = `q_${idx}`; radio.value = letterVal; const span = document.createElement("span"); span.className = "option-text"; span.innerText = optText; label.appendChild(radio); label.appendChild(span); optionsDiv.appendChild(label); }); card.appendChild(optionsDiv); const explanationBox = document.createElement("div"); explanationBox.className = "explanation-box"; explanationBox.id = `explanation_${idx}`; explanationBox.innerHTML = ` Explanation / व्याख्या: ${q.explanation} `; card.appendChild(explanationBox); questionsPanel.appendChild(card); }); } function submitQuizEvaluation() { let score = 0; const totalQ = questionsData.length; const allLabels = document.querySelectorAll(".option-label"); allLabels.forEach(label => { label.classList.remove("correct-highlight", "wrong-highlight"); }); for (let i = 0; i < totalQ; i++) { const expBox = document.getElementById(`explanation_${i}`); if (expBox) expBox.classList.remove("show"); } for (let i = 0; i < totalQ; i++) { const correctLetter = questionsData[i].ans; const selectedRadio = document.querySelector(`input[name="q_${i}"]:checked`); const allRadios = document.querySelectorAll(`input[name="q_${i}"]`); allRadios.forEach(radio => { const parentLabel = radio.parentElement; if (radio.value === correctLetter) { parentLabel.classList.add("correct-highlight"); } if (selectedRadio && radio.checked && radio.value !== correctLetter) { parentLabel.classList.add("wrong-highlight"); } }); const expBox = document.getElementById(`explanation_${i}`); if (expBox) expBox.classList.add("show"); if (selectedRadio && selectedRadio.value === correctLetter) { score++; } } const resultDiv = document.getElementById("resultBox"); resultDiv.style.display = "block"; const percentage = Math.round((score / totalQ) * 100); let feedbackMsg = ""; if (percentage >= 80) feedbackMsg = "🏆 उत्कृष्ट! Excellent!"; else if (percentage >= 60) feedbackMsg = "👍 अच्छा प्रयास! Good effort!"; else feedbackMsg = "📚 और अभ्यास करें। Keep practicing!"; resultDiv.innerHTML = `📊 Your Score: ${score} / ${totalQ} (${percentage}%) ${feedbackMsg}✨ सही उत्तर हरे में, गलत लाल में ✨⭐ सभी प्रश्नों की व्याख्या नीचे दी गई है | Explanations below each question.`; setTimeout(() => { resultDiv.scrollIntoView({ behavior: "smooth", block: "nearest" }); }, 80); } function handleSubmit() { submitQuizEvaluation(); } function init() { buildQuiz(); const submitBtn = document.getElementById("submitQuizBtn"); if (submitBtn) submitBtn.addEventListener("click", handleSubmit); } document.addEventListener("DOMContentLoaded", init);