9th Class Chemistry chapter no 8 PDF Paper 9th Chemistry Ch-8 Paper Generator - BISE Sahiwal /* --- 1. RESET & BASICS --- */ * { box-sizing: border-box; } html, body { margin: 0; padding: 0; background-color: #525659; font-family: 'Times New Roman', serif; -webkit-print-color-adjust: exact; } /* --- 2. CONTROL PANEL --- */ #ui-controls { background: white; padding: 25px; max-width: 900px; margin: 20px auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); border-top: 5px solid #28a745; } .control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; text-align: left; } .input-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #333; } .input-group input, .input-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; } .btn-container { display: flex; gap: 15px; } .btn { flex: 1; background-color: #28a745; color: white; border: none; padding: 12px; font-size: 16px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; } .btn:hover { background-color: #218838; } .btn-dl { background-color: #007bff; } .btn-dl:hover { background-color: #0069d9; } /* --- 3. PAPER CONTAINER --- */ #paper-preview { width: 210mm; min-height: 297mm; margin: 0 auto 50px auto; background: white; padding: 12mm 12mm; box-shadow: 0 0 20px rgba(0,0,0,0.5); position: relative; height: auto; } /* --- 4. PRINTING STATE --- */ body.printing-mode { background: white; } body.printing-mode #ui-controls { display: none; } body.printing-mode #paper-preview { margin: 0; box-shadow: none; width: 100%; padding: 5mm; } /* --- 5. TYPOGRAPHY & URDU --- */ .urdu-text { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; display: inline-block; font-size: 14px; line-height: 1.6; margin-left: 10px; vertical-align: middle; } /* --- 6. HEADER LAYOUT --- */ .header-sec { text-align: center; border-bottom: 2px solid #000; padding-bottom: 5px; margin-bottom: 15px; } .bise-title { font-size: 22px; font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: 1px; } .sub-title { font-size: 16px; font-weight: bold; margin: 5px 0; } .meta-table { width: 100%; border-collapse: collapse; margin-top: 10px; border-top: 1px solid #000; } .meta-table td { padding: 4px 0; font-weight: bold; font-size: 14px; vertical-align: bottom; } .roll-no-box { border-bottom: 1px dotted #000; display: inline-block; width: 150px; } /* --- 7. CONTENT LAYOUTS --- */ .section-header { background-color: #000; color: #fff; padding: 5px 10px; font-weight: bold; font-size: 16px; margin: 15px 0 10px 0; display: flex; justify-content: space-between; align-items: center; } .mcq-container { column-count: 2; column-gap: 20px; } .mcq-box { break-inside: avoid; margin-bottom: 8px; border-bottom: 1px dashed #ccc; padding-bottom: 4px; font-size: 13px; } .mcq-q { font-weight: bold; display: flex; justify-content: space-between; align-items: baseline; } .mcq-opts { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 4px; font-size: 12px; } .mcq-opt { width: 48%; margin-bottom: 2px; } .sub-heading { font-weight: bold; text-decoration: underline; font-size: 15px; margin: 15px 0 5px 0; } .short-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .short-item { border: 1px solid #ddd; padding: 5px 8px; font-size: 13px; background: #fdfdfd; break-inside: avoid; } .long-item { margin-bottom: 15px; border-bottom: 1px solid #000; padding-bottom: 10px; break-inside: avoid; } /* --- 8. NATIVE PRINT --- */ @media print { body { background: white; margin: 0; } #ui-controls { display: none; } #paper-preview { margin: 0; box-shadow: none; width: 100%; } } ⚗️ 9th Chemistry Paper Generator (Chapter 8) Institute Name / Title: Paper Type: Full Paper (Obj + Subj) Objective Only (12 Marks) Subjective Only (48 Marks) 🔄 Generate New Paper 📄 Download PDF // ============================================ // 1. DATABASE (Chapter 8: Periodic Table & Periodicity) // ============================================ const db_mcqs = [ // --- History & Periodic Law --- { q: "Mendeleev arranged elements in his Periodic Table on the basis of:", u: "مینڈلیف نے اپنے پیریاڈک ٹیبل میں ایلیمنٹس کو کس بنیاد پر ترتیب دیا؟", o: ["Atomic Number", "Atomic Mass", "Electronic Configuration", "Atomic Volume"], k: "B" }, { q: "Who presented the Law of Octaves?", u: "لا آف آکٹیوز کس نے پیش کیا؟", o: ["Dobereiner", "Newlands", "Mendeleev", "Moseley"], k: "B" }, { q: "Modern Periodic Law was presented by:", u: "جدید پیریاڈک لا کس نے پیش کیا؟", o: ["Dobereiner", "Newlands", "Mendeleev", "H. Moseley"], k: "D" }, { q: "Dobereiner put forward the concept of:", u: "ڈوبرائنر نے کون سا تصور پیش کیا؟", o: ["Triads", "Octaves", "Periods", "Groups"], k: "A" }, { q: "How many elements were known when Mendeleev presented his table?", u: "مینڈلیف کے ٹیبل پیش کرنے کے وقت کتنے ایلیمنٹس معلوم تھے؟", o: ["63", "92", "56", "118"], k: "A" }, { q: "The atomic number was discovered in:", u: "ایٹمی نمبر کب دریافت ہوا؟", o: ["1911", "1913", "1869", "1864"], k: "B" }, // --- Structure (Groups & Periods) --- { q: "The vertical columns in the periodic table are called:", u: "پیریاڈک ٹیبل میں عمودی قطاریں کہلاتی ہیں:", o: ["Periods", "Groups", "Rows", "Blocks"], k: "B" }, { q: "The horizontal rows in the periodic table are called:", u: "پیریاڈک ٹیبل میں افقی قطاریں کہلاتی ہیں:", o: ["Groups", "Periods", "Families", "Blocks"], k: "B" }, { q: "How many periods are there in the Modern Periodic Table?", u: "جدید پیریاڈک ٹیبل میں کتنے پیریڈز ہیں؟", o: ["7", "8", "9", "18"], k: "A" }, { q: "How many groups are there in the Modern Periodic Table?", u: "جدید پیریاڈک ٹیبل میں کتنے گروپس ہیں؟", o: ["7", "8", "10", "18"], k: "D" }, { q: "Which period is called the 'Short Period'?", u: "کون سا پیریڈ 'شارٹ پیریڈ' کہلاتا ہے؟", o: ["1st", "2nd & 3rd", "4th & 5th", "6th"], k: "B" }, { q: "The first period contains only ____ elements.", u: "پہلے پیریڈ میں صرف ____ ایلیمنٹس ہیں۔", o: ["2", "8", "18", "32"], k: "A" }, { q: "Elements of Group 17 are called:", u: "گروپ 17 کے ایلیمنٹس کہلاتے ہیں:", o: ["Alkali metals", "Alkaline earth metals", "Halogens", "Noble gases"], k: "C" }, { q: "Group 18 elements are known as:", u: "گروپ 18 کے ایلیمنٹس کہلاتے ہیں:", o: ["Halogens", "Noble Gases", "Alkali Metals", "Lanthanides"], k: "B" }, { q: "Lanthanides and Actinides belong to which block?", u: "لانتھینائیڈز اور ایکٹینائیڈز کس بلاک سے تعلق رکھتے ہیں؟", o: ["s-block", "p-block", "d-block", "f-block"], k: "D" }, { q: "Transition elements are found in:", u: "ٹرانزیشن ایلیمنٹس پائے جاتے ہیں:", o: ["s-block", "p-block", "d-block", "f-block"], k: "C" }, // --- Periodicity & Trends --- { q: "The ability of an atom to attract the shared pair of electrons is called:", u: "ایٹم کی شیئرڈ الیکٹران پیئر کو اپنی طرف کھینچنے کی صلاحیت کہلاتی ہے:", o: ["Ionization Energy", "Electron Affinity", "Electronegativity", "Shielding Effect"], k: "C" }, { q: "Atomic size ____ in a period from left to right.", u: "پیریڈ میں بائیں سے دائیں ایٹم کا سائز ____ ہوتا ہے۔", o: ["Increases", "Decreases", "Remains same", "None"], k: "B" }, { q: "Shielding effect ____ down the group.", u: "گروپ میں اوپر سے نیچے شیلڈنگ ایفیکٹ ____ ہوتا ہے۔", o: ["Increases", "Decreases", "Remains constant", "Zero"], k: "A" }, { q: "Which element has the highest Electronegativity?", u: "سب سے زیادہ الیکٹرونیگیٹیویٹی کس ایلیمنٹ کی ہے؟", o: ["Oxygen", "Chlorine", "Fluorine", "Nitrogen"], k: "C" }, { q: "Unit of Ionization Energy is:", u: "آیونائزیشن انرجی کا یونٹ ہے:", o: ["kJ/mol", "J", "Calorie", "Newton"], k: "A" }, { q: "Electron affinity of Fluorine is:", u: "فلورین کی الیکٹران ایفینیٹی ہے:", o: ["-328 kJ/mol", "-349 kJ/mol", "-297 kJ/mol", "+100 kJ/mol"], k: "A" }, { q: "Cesium (Cs) has the lowest:", u: "سیزیم (Cs) کی سب سے کم ہے:", o: ["Atomic size", "Ionization Energy", "Shielding effect", "Atomic number"], k: "B" }, { q: "The amount of energy released when an electron is added to an atom is:", u: "جب ایٹم میں الیکٹران داخل ہوتا ہے تو خارج ہونے والی انرجی کہلاتی ہے:", o: ["Ionization Energy", "Electron Affinity", "Electronegativity", "Bond Energy"], k: "B" }, { q: "Atomic radius is measured in:", u: "ایٹم کا ریڈیس کس میں ماپا جاتا ہے؟", o: ["Nanometer", "Picometer", "Meter", "Centimeter"], k: "B" }, { q: "In a period, Ionization Energy usually:", u: "پیریڈ میں آیونائزیشن انرجی عام طور پر:", o: ["Increases", "Decreases", "Remains constant", "First decreases then increases"], k: "A" }, // --- Mixed/Conceptual --- { q: "Elements in the same group have similar:", u: "ایک ہی گروپ کے ایلیمنٹس کی ____ ایک جیسی ہوتی ہیں۔", o: ["Atomic mass", "Number of shells", "Chemical properties", "Physical properties"], k: "C" }, { q: "The general configuration of s-block elements is:", u: "ایس بلاک ایلیمنٹس کی جنرل کنفیگریشن ہے:", o: ["ns1-2", "np1-6", "nd1-10", "nf1-14"], k: "A" }, { q: "Which of the following is a metalloid?", u: "مندرجہ ذیل میں سے کون سا میٹلائیڈ ہے؟", o: ["Sodium", "Silicon", "Carbon", "Neon"], k: "B" }, { q: "Which group contains Alkaline Earth Metals?", u: "الکلائن ارتھ میٹلز کس گروپ میں ہیں؟", o: ["Group 1", "Group 2", "Group 13", "Group 17"], k: "B" }, { q: "The 4th period contains ____ elements.", u: "چوتھے پیریڈ میں ____ ایلیمنٹس ہیں۔", o: ["8", "18", "32", "10"], k: "B" }, { q: "Which halogen has the largest atomic size?", u: "کس ہیلوجن کا ایٹمی سائز سب سے بڑا ہے؟", o: ["F", "Cl", "Br", "I"], k: "D" }, { q: "Shielding effect is caused by:", u: "شیلڈنگ ایفیکٹ کی وجہ ہے:", o: ["Valence electrons", "Inner electrons", "Protons", "Neutrons"], k: "B" }, { q: "The most electronegative element of the 3rd period is:", u: "تیسرے پیریڈ کا سب سے زیادہ الیکٹرونیگیٹو ایلیمنٹ ہے؟", o: ["Na", "Al", "S", "Cl"], k: "D" }, { q: "Moseley's Periodic Law is based on:", u: "موزلے کا پیریاڈک لا کس بنیاد پر ہے؟", o: ["Atomic Mass", "Atomic Number", "Density", "Melting Point"], k: "B" }, { q: "Group 17 elements are also called:", u: "گروپ 17 کے ایلیمنٹس کو یہ بھی کہتے ہیں:", o: ["Salt formers", "Base formers", "Acid formers", "Noble"], k: "A" } ]; const db_shorts = [ // --- Definitions --- { q: "Define Periodic Law.", u: "پیریاڈک لا کی تعریف کریں۔" }, { q: "State Modern Periodic Law.", u: "جدید پیریاڈک لا بیان کریں۔" }, { q: "Define Ionization Energy and give its unit.", u: "آیونائزیشن انرجی کی تعریف کریں اور اس کا یونٹ لکھیں۔" }, { q: "Define Electron Affinity.", u: "الیکٹران ایفینیٹی کی تعریف کریں۔" }, { q: "What is Electronegativity?", u: "الیکٹرونیگیٹیویٹی کیا ہے؟" }, { q: "Define Shielding Effect.", u: "شیلڈنگ ایفیکٹ کی تعریف کریں۔" }, { q: "What is Atomic Radius?", u: "ایٹم کا ریڈیس کیا ہے؟" }, { q: "Define Transition Elements.", u: "ٹرانزیشن ایلیمنٹس کی تعریف کریں۔" }, { q: "What are Mendeleev's Periodic Table defects?", u: "مینڈلیف کے پیریاڈک ٹیبل کے نقائص کیا ہیں؟" }, { q: "Define Periodicity of properties.", u: "پروپرٹیز کی پیریڈیسٹی کی تعریف کریں۔" }, // --- Reasoning --- { q: "Why does atomic size decrease in a period?", u: "پیریڈ میں ایٹم کا سائز کیوں کم ہوتا ہے؟" }, { q: "Why does atomic size increase down a group?", u: "گروپ میں نیچے جاتے ہوئے ایٹم کا سائز کیوں بڑھتا ہے؟" }, { q: "Why does Ionization Energy decrease down a group?", u: "گروپ میں نیچے جاتے ہوئے آیونائزیشن انرجی کیوں کم ہوتی ہے؟" }, { q: "Why does Ionization Energy increase in a period?", u: "پیریڈ میں آیونائزیشن انرجی کیوں بڑھتی ہے؟" }, { q: "Why noble gases have very high ionization energies?", u: "نوبل گیسوں کی آیونائزیشن انرجی بہت زیادہ کیوں ہوتی ہے؟" }, { q: "Why is the second ionization energy higher than the first?", u: "دوسری آیونائزیشن انرجی پہلی سے زیادہ کیوں ہوتی ہے؟" }, { q: "Why does Electronegativity increase along a period?", u: "پیریڈ میں الیکٹرونیگیٹیویٹی کیوں بڑھتی ہے؟" }, { q: "Does shielding effect change in a period? Explain.", u: "کیا پیریڈ میں شیلڈنگ ایفیکٹ تبدیل ہوتا ہے؟ وضاحت کریں۔" }, { q: "Why are halogens highly electronegative?", u: "ہیلوجنز کی الیکٹرونیگیٹیویٹی زیادہ کیوں ہوتی ہے؟" }, { q: "Why Alkali metals are good reducing agents?", u: "الکلی میٹلز اچھے ریڈیوسنگ ایجنٹ کیوں ہیں؟" }, // --- Concepts --- { q: "Write the names of elements of Group 1.", u: "گروپ 1 کے ایلیمنٹس کے نام لکھیں۔" }, { q: "Differentiate between Groups and Periods.", u: "گروپس اور پیریڈز میں فرق بیان کریں۔" }, { q: "What is meant by 'Blocks' in the Periodic Table?", u: "پیریاڈک ٹیبل میں 'بلاکس' سے کیا مراد ہے؟" }, { q: "Write the electronic configuration of Valence Shell of Group 17.", u: "گروپ 17 کے ویلنس شیل کی الیکٹرانک کنفیگریشن لکھیں۔" }, { q: "Who were Dobereiner and Newlands?", u: "ڈوبرائنر اور نیولینڈز کون تھے؟" }, { q: "What are Lanthanides and Actinides?", u: "لانتھینائیڈز اور ایکٹینائیڈز کیا ہیں؟" }, { q: "Give the trend of Electron Affinity in the periodic table.", u: "پیریاڈک ٹیبل میں الیکٹران ایفینیٹی کا رجحان بیان کریں۔" }, { q: "Name the blocks of the periodic table.", u: "پیریاڈک ٹیبل کے بلاکس کے نام لکھیں۔" }, { q: "What is the significance of the atomic number in the modern periodic table?", u: "جدید پیریاڈک ٹیبل میں ایٹمی نمبر کی کیا اہمیت ہے؟" }, { q: "Why is Hydrogen placed at the top of Group 1?", u: "ہائیڈروجن کو گروپ 1 میں سب سے اوپر کیوں رکھا گیا ہے؟" }, { q: "What are Normal Elements?", u: "نارمل ایلیمنٹس کیا ہیں؟" }, { q: "Write two defects of Newlands' Law of Octaves.", u: "نیولینڈز کے لا آف آکٹیوز کے دو نقائص لکھیں۔" }, { q: "What is the trend of metallic character in a group?", u: "گروپ میں میٹالک خاصیت کا کیا رجحان ہے؟" }, { q: "Define Mendeleev's Periodic Law.", u: "مینڈلیف کا پیریاڈک لا بیان کریں۔" }, { q: "How many elements are in the 1st and 2nd periods?", u: "پہلے اور دوسرے پیریڈ میں کتنے ایلیمنٹس ہیں؟" }, { q: "Why is the 6th period called the 'Longest Period'?", u: "چھٹے پیریڈ کو 'لانگسٹ پیریڈ' کیوں کہا جاتا ہے؟" } ]; const db_longs = [ { q: "State and explain the Shielding Effect and its trend in the Periodic Table.", u: "شیلڈنگ ایفیکٹ کی تعریف کریں اور پیریاڈک ٹیبل میں اس کے رجحان کی وضاحت کریں۔", marks: 5 }, { q: "Define Ionization Energy. Explain its trend in Groups and Periods with reasons.", u: "آیونائزیشن انرجی کی تعریف کریں۔ گروپس اور پیریڈز میں اس کے رجحان کی وجوہات کے ساتھ وضاحت کریں۔", marks: 5 }, { q: "Discuss the important features of the Modern Periodic Table.", u: "جدید پیریاڈک ٹیبل کی اہم خصوصیات پر بحث کریں۔", marks: 5 }, { q: "What is Electronegativity? Explain its variation in the Periodic Table.", u: "الیکٹرونیگیٹیویٹی کیا ہے؟ پیریاڈک ٹیبل میں اس کی تبدیلی کی وضاحت کریں۔", marks: 4 }, { q: "Compare Mendeleev’s Periodic Table with the Modern Periodic Table.", u: "مینڈلیف کے پیریاڈک ٹیبل اور جدید پیریاڈک ٹیبل کا موازنہ کریں۔", marks: 5 }, { q: "Define Atomic Size/Radius. Why does it increase in a group and decrease in a period?", u: "ایٹم کے سائز/ریڈیس کی تعریف کریں۔ یہ گروپ میں کیوں بڑھتا ہے اور پیریڈ میں کیوں کم ہوتا ہے؟", marks: 4 }, { q: "Explain Electron Affinity and its trends in the periodic table.", u: "الیکٹران ایفینیٹی اور پیریاڈک ٹیبل میں اس کے رجحانات کی وضاحت کریں۔", marks: 5 }, { q: "Write a detailed note on Groups and Periods of the Periodic Table.", u: "پیریاڈک ٹیبل کے گروپس اور پیریڈز پر تفصیلی نوٹ لکھیں۔", marks: 5 }, { q: "Discuss the history of the Periodic Table (Dobereiner, Newlands, Mendeleev).", u: "پیریاڈک ٹیبل کی تاریخ (ڈوبرائنر، نیولینڈز، مینڈلیف) پر بحث کریں۔", marks: 4 }, { q: "Explain the classification of elements into s, p, d, and f blocks.", u: "ایلیمنٹس کی ایس، پی، ڈی، اور ایف بلاکس میں درجہ بندی کی وضاحت کریں۔", marks: 4 } ]; // ============================================ // 2. LOGIC FUNCTIONS // ============================================ function shuffle(array) { let currentIndex = array.length, randomIndex; while (currentIndex != 0) { randomIndex = Math.floor(Math.random() * currentIndex); currentIndex--; [array[currentIndex], array[randomIndex]] = [array[randomIndex], array[currentIndex]]; } return array; } function getDualText(eng, urdu) { if (!urdu || eng.trim() == urdu.trim()) return `${eng}`; return `${eng} ${urdu}`; } function generatePaper() { const preview = document.getElementById('paper-preview'); const instName = document.getElementById('instName').value; const pType = document.getElementById('paperType').value; // --- PREPARE DATA --- // 1. MCQs const mcqs = shuffle([...db_mcqs]).slice(0, 12); // 2. Shorts (Need 24 total for Q2, Q3, Q4) let shortsPool = shuffle([...db_shorts]); // Duplicate if not enough while(shortsPool.length < 24) { shortsPool = shortsPool.concat(db_shorts); } const q2 = shortsPool.slice(0, 8); const q3 = shortsPool.slice(8, 16); const q4 = shortsPool.slice(16, 24); // 3. Longs (Need 2 full questions, A & B) let longsPool = shuffle([...db_longs]); const longQs = [ { a: longsPool[0], b: longsPool[1] }, { a: longsPool[2], b: longsPool[3] } ]; // --- DETERMINE MARKS/TIME --- let timeAllowed = "2:10 Hours"; let totalMarks = "60"; if(pType === 'obj') { timeAllowed = "15 Mins"; totalMarks = "12"; } if(pType === 'subj') { timeAllowed = "1:55 Hours"; totalMarks = "48"; } // --- BUILD HTML --- let html = ` ${instName} CHEMISTRY - 9th Class (Chapter 8: Periodic Table & Periodicity) Time Allowed: ${timeAllowed} Total Marks: ${totalMarks} Name: ______________________ Roll No: `; // --- RENDER OBJECTIVE --- if (pType === 'full' || pType === 'obj') { html += ` PART - I (Objective) Marks: 12 Q.1: Choose the correct answer. (12 x 1 = 12) ${mcqs.map((m, i) => ` ${i+1}. ${m.q} ${m.u} (A) ${getDualText(m.o[0], m.o[0])} (B) ${getDualText(m.o[1], m.o[1])} (C) ${getDualText(m.o[2], m.o[2])} (D) ${getDualText(m.o[3], m.o[3])} `).join('')} `; } // --- RENDER SUBJECTIVE --- if (pType === 'full' || pType === 'subj') { if(pType === 'full') html += ``; html += ` PART - II (Subjective) Marks: 48 SECTION - I Note: Attempt any FIVE parts from each question. (5 x 2 = 10 each) ${renderShortBlock(2, q2)} ${renderShortBlock(3, q3)} ${renderShortBlock(4, q4)} SECTION - II Note: Attempt any TWO questions. (9 x 2 = 18) ${longQs.map((q, i) => ` Q.${5+i} (a): ${q.a.q} (${q.a.marks}) ${q.a.u} (b): ${q.b.q} (${q.b.marks}) ${q.b.u} `).join('')} `; } preview.innerHTML = html; } function renderShortBlock(qNum, questions) { return ` Q.${qNum}: ${questions.map((q, i) => ` (${i+1}) ${q.q} ${q.u} `).join('')} `; } function downloadPDF() { document.body.classList.add('printing-mode'); window.scrollTo(0, 0); const element = document.getElementById('paper-preview'); const opt = { margin: [10, 10, 10, 10], filename: 'Chemistry-9th-Ch8-Paper.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2, useCORS: true, scrollY: 0 }, jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }, pagebreak: { mode: ['avoid-all', 'css', 'legacy'] } }; html2pdf().from(element).set(opt).save().then(() => { document.body.classList.remove('printing-mode'); }); } // Initialize on load window.onload = generatePaper;