Generate these sections in order (all inside the main-content div):

File Handling - Text File (Part 1/4) — Lecture 17

CBSE | XII CS | Computational Thinking and Programming | 35 min

1. Learning Objectives

[3–5 objectives derived from what the PYQs above test — use <ul><li>]

2. 35-Minute Lecture Flow

[HTML table: Time | Activity | Teacher Action — include a PYQ discussion slot]

3. Concept Notes

[For EVERY sub-concept tested in PYQs: - .def-box for definition (with "In exam language: ..." line) - .key-box with syntax/rules as <ul><li> - .example-box for worked examples - <pre><code> for code with .kw/.bi/.st/.cm/.nm token spans - .recall-box for Output with exact expected output After each concept, embed 1–2 actual PYQs in .pyq-box with .pyq-meta (year · marks · type)]

4. Examiner Tricks & Common Mistakes

[One .warn-box per trick from Section 5 — be specific, give the wrong vs right answer]

5. Board Work Plan

[Numbered list: exactly what to write on the blackboard, in order]

6. Classroom Practice Questions

[Modelled on PYQ style. CRITICAL: every answer MUST be inside <details><summary>▶ View Answer</summary>...</details> — never expose the answer directly. 3×1M MCQ — use this exact structure: <div class="mcq-box"> <b>Q1.</b> Question text?<br> <ul class="options"> <li>a) ...</li> <li>b) ...</li> <li>c) ...</li> <li>d) ...</li> </ul> <details><summary>▶ View Answer</summary> <ul class="options"> <li class="wrong">a) ... — reason why wrong</li> <li class="correct">b) ... ✓ — reason why correct</li> ... </ul> </details> </div> (Note: options list shown WITHOUT .correct/.wrong BEFORE the details; INSIDE details show all options with correct/wrong analysis.) 3×2M short answer in .self-test-box: <div class="self-test-box"><b>Q4.</b> Question<br><details><summary>▶ View Answer</summary>Full answer</details></div> 2×3-5M programming in .self-test-box: <div class="self-test-box"><b>Q7.</b> Question<br><details><summary>▶ View Answer</summary><pre><code>...code...</code></pre></details></div> 1 HOTS in .self-test-box with <details><summary>▶ View Answer</summary>answer</details>]

7. PYQ Discussion (All 0 Questions)

[For EVERY single PYQ provided in Section 4 — no skipping. Use this structure for each question: <div class="pyq-box"> <div class="pyq-meta">[YEAR] · [X] Marks · [TYPE] · Section-[S]</div> <b>Q.</b> [full question text — include code if any]<br><br> <b>Concept tested:</b> [concept name]<br> <details><summary>▶ View Model Answer</summary> <b>Model Answer:</b> [full answer with code/table as needed, using .kw/.bi/.st token spans in <pre><code>]<br> <b>Common mistake:</b> [what students get wrong — be specific] </details> </div>]

8. Student Notes (Copy-ready)

[Concise notes — every concept from PYQs — in .key-box and .def-box; self-check questions in .self-test-box with <details><summary>▶ View Answer</summary>answer</details>]

9. Homework

[2×1M + 2×2M + 1×3M + 1×5M — same PYQ pattern; mark difficulty with .critical/.high/.medium tag. EVERY answer wrapped in <details><summary>▶ View Answer</summary>...</details> inside .self-test-box or .mcq-box]

10. Exam Tips

[5 specific tips as .tip-box — derived from PYQ patterns for THIS topic only]

11. Last-Minute Revision Cards

<div class="card-grid"> [One .card per concept: <div class="card-title">[concept]</div> + 1 rule + 1 example] </div>