code2pdf_66efdda59db7c
code2pdf_66efdda59db7c
class PDF(FPDF):
def header(self):
self.set_font("Arial", "B", 12)
self.cell(0, 10, "Class 10 - Science (ICSE)", ln=True, align="C")
def footer(self):
self.set_y(-15)
self.set_font("Arial", "I", 8)
self.cell(0, 10, f"Page {self.page_no()}", 0, 0, "C")
pdf = PDF()
pdf.add_page()
# SECTION A
pdf.chapter_title("SECTION A")
pdf.chapter_body("(OBJECTIVE TYPE QUESTIONS)")
questions_a = [
"1. Identify the type of reaction and balance the following equation:\nFe + Cl2 → FeCl3\n",
"2. When calcium oxide reacts with water, it forms calcium hydroxide and releases a large amount of heat. This reaction is an example of:\n",
"3. Which of the following reactions would involve both oxidation and reduction?\n",
"4. Which of the following metals cannot displace hydrogen from dilute acids?\n",
"5. Which of the following is a non-metal that does not form acidic oxides?\n",
"6. Which gas is evolved when zinc reacts with sodium hydroxide solution?\n",
"7. Assertion (A): Copper does not react with dilute hydrochloric acid.\nReason (R): Copper is less reactive than hydrogen in the reactivity series.\n",
"8. Assertion (A): Metals are good conductors of electricity.\nReason (R): Metals have free electrons that allow the flow of current.\n",
]
# SECTION B
pdf.chapter_title("SECTION B")
pdf.chapter_body("(VERY SHORT ANSWER TYPE QUESTIONS)")
questions_b = [
"9. What is meant by a redox reaction? Provide one example from daily life.\n",
"10. Write the chemical equation for the reaction between aluminium and iron(III) oxide in the thermite process. Identify the type of reaction.\n",
"11. Explain why metals such as potassium and sodium are stored in kerosene.\n",
]
# SECTION C
pdf.chapter_title("SECTION C")
pdf.chapter_body("(SHORT ANSWER TYPE QUESTIONS)")
questions_c = [
"12. Differentiate between a combination reaction and a displacement reaction with suitable examples.\n",
"13. A metal X reacts with cold water to form a metal hydroxide and hydrogen gas. Identify the metal and write the balanced chemical equation for the reaction.
"14. Why is aluminium preferred over iron for making aircraft bodies even though iron is cheaper and more widely available?\n",
]
# SECTION D
pdf.chapter_title("SECTION D")
pdf.chapter_body("(LONG ANSWER TYPE QUESTIONS)")
questions_d = [
"15. Balance the following chemical equation and describe the steps involved:\nKClO3 → KCl + O2\nExplain how the law of conservation of mass is applied in this case.
"16. Explain in detail the electrochemical reaction occurring in the electrolysis of molten sodium chloride. Provide a diagram to illustrate the process.\n"
]
# SECTION E
pdf.chapter_title("SECTION E")
pdf.chapter_body("(CASE-BASED STUDY TYPE QUESTIONS)")
questions_e = [
"17. Case Study: Rusting of Iron\nRusting is a chemical process in which iron reacts with oxygen and moisture to form rust (iron oxide).\n",
"a) Write the chemical equation for the rusting of iron.\n",
"b) Why is rusting considered a problem in the construction industry?\n",
"c) Suggest two methods to prevent rusting and explain how they work.\n",
"OR\n",
"Case Study: Reaction of Metals with Water\nSome metals react with water to form metal hydroxides and release hydrogen gas.\n",
"a) Write the chemical equation for the reaction of sodium with water.\n",
"b) Why is the reaction between sodium and water considered highly dangerous?\n",
"c) How do metals like calcium react with cold water, and how does this differ from sodium’s reaction?\n",
]