CSS Prepare

optional · CSS study notes

⭐ Most Repeated Questions — Paper-I, Section-B

CSS Computer Science (Optional) — Paper-I, Section-B. A frequency-based index across the three Section-B topics (Algorithms & Data Structures, Software Engineering, Compiler Construction). This index currently reflects the CSS Computer Science Paper-I 2026 exam — the first Section-B past paper reviewed for this project — with 4 question-patterns extracted per topic (12 total), each with a complete model solution and the reasoning an examiner is actually checking for. Unlike the Section-A index (built from 2016–2024 papers), this page will grow as more Section-B papers are reviewed in future.

How this index was built

Each subject-matter page below was built directly from the CSS Computer Science Paper-I 2026 exam (Section-B, Q5–Q8). As with the Section-A index, a question "pattern" here means the underlying concept and question type (not just the exact wording) — so future years' papers can be added to the same pages when the same skill is tested with a different scenario. Every question shows the year and question number it was drawn from.

The Three Topic Pages

Algorithms & Data Structures

Binary Search preconditions, time vs space complexity, stack-based postfix evaluation, and choosing the right data structure (Array/BST/AVL/Hash Table) under real-world constraints — 4 questions.

Software Engineering

SDLC maintenance economics, UML Use Case Diagrams, Agile customer collaboration, and a full requirements-conflict resolution scenario from the 2026 paper, plus 8 further confirmed-repeated patterns added from the 2019–2025 papers — requirements verification/validation, 3-tier web architecture (a near-verbatim repeat), black-box/white-box testing and QA vs QC vs Testing, the Spiral model and named Agile frameworks, software quality attributes and CMMI, Aspect-Oriented Software Engineering, project planning phases and PERT, and the Software Process Improvement framework — 12 questions total, the deepest-covered topic in this index.

Compiler Construction

DFA construction for a regular expression, lexeme/token/pattern theory, register allocation for three-address code, and step-by-step lexical analysis of a malformed input from the 2026 paper, plus 40 further confirmed patterns added from the 2016–2025 papers — finite automata and NFA-to-DFA construction, regular expressions and CFGs, top-down/bottom-up parsing and parse trees, lexers vs parsers, the compiler/interpreter/assembler pipeline, and code generation/optimization (register allocation, instruction scheduling, loop and peephole optimization, constant folding) — 54 questions total, now the deepest-covered topic in this index.


Quick-Reference: What Was Tested in 2026, at a Glance

#TopicQuestion ThemeTypeMarks
1Algorithms & DSWhy Binary Search needs sorted dataTheory6
2Algorithms & DSTime complexity vs space complexityTheory6
3Algorithms & DSStack-based postfix expression evaluationTheory + example8
4Algorithms & DSData structure choice for millions of product IDsApplied/scenario8
5Software EngineeringWhy Maintenance is the costliest SDLC phaseTheory6
6Software EngineeringPurpose of Use Case DiagramsTheory6
7Software EngineeringWhy Agile needs frequent customer interactionTheory8
8Software EngineeringResolving conflicting requirements + SDLC impactApplied/scenario6
9Compiler ConstructionConstructing a DFA for (ab)*abbNumeric/construction
10Compiler ConstructionLexeme vs token vs patternTheory6
11Compiler ConstructionRegister allocation for three-address codeApplied/scenario8
12Compiler ConstructionLexical analysis of a malformed input stringApplied/scenario6

⚠️

Wording throughout is paraphrased/summarized from the official 2026 FPSC past paper for study purposes, not reproduced verbatim in full. Always cross-check against the original paper PDF before an exam.

Continue studying