Courses / Computer Science XII (HSSC-II) – FBISE Complete SLO-Based Course
Practical Based Assessment (PBA) – Lab Tasks, Practical Exam and Viva
Start Here – Course Guide, Situational Questions and Practical Exam · 30 min read
Lab tasks (do all and keep them in your practical file)
| # | Task | SLO | Lesson |
|---|---|---|---|
| 1 | Create a list of 10 items; add, insert, remove and sort; print with indexes | C-02 | 3.3 |
| 2 | Nested list of 5 students × 3 marks: total, average and topper | C-03 | 3.3 |
| 3 | Dictionary phone book: add, search, update, delete contacts | C-02 | 3.3 |
| 4 | Dictionary of student → list of subjects; list students taking a subject | C-03 | 3.3 |
| 5 | Write marks to a file, append more, read and average them | C-02 | 3.4 |
| 6 | Read a text file and count each letter of the alphabet | C-03 | 3.4 |
| 7 | Copy only lines containing a word from one file to another | C-02 | 3.4 |
| 8 | Class BankAccount with deposit/withdraw (no negative balance) |
C-01/C-02 | 3.2 |
| 9 | Class Student with marks dictionary, average and result |
C-01 | 3.2 |
| 10 | SQLite: create students table, insert 5 records |
C-02 | 3.7 |
| 11 | SQLite: update, delete, select with WHERE and ORDER BY | C-02 | 3.7 |
| 12 | Menu-driven library/shop record manager with SQLite | C-02 | 3.7 |
| 13 | Normalise a given table to 3NF and create the tables in SQLite | C-02 | 3.6 |
| 14 | Write unittest tests (normal, boundary, edge) for a grading function |
C-04 | 3.8 |
| 15 | Find and fix a logic bug using breakpoints and watches (screenshot) | C-04 | 3.8 |
| 16 | Use print debugging to trace a loop and fix it | C-04 | 3.8 |
| 17 | Binary search with a trace of low, high, mid | B-02 | 2.4 |
| 18 | BST insert + in/pre/post-order traversals | B-02 | 2.3 |
| 19 | Design and test an MVP; present hypothesis, metrics and decision | H-01 | 8.2 |
Typical practical exam format
- Program writing and execution – one program from tasks 1–14 (e.g. letter count, SQLite records).
- Debugging – a given program with errors to fix using tests, breakpoints or prints.
- Practical file – your completed tasks.
- Viva voce – oral questions (below).
- Where required, MVP presentation (task 19).
Viva questions
- What is the difference between a list and a dictionary? Why is lookup by key fast?
- What do the modes "r", "w" and "a" do? Why use
with? - What is a primary key? A foreign key? Why normalise to 3NF?
- What does
commit()do? Why use?placeholders in SQL? - What is a unit test? What is a breakpoint? What is a watch?
- What is the difference between syntax, runtime and logic errors?
- What is a class? An object? What is
self? - What is an MVP? What was your riskiest assumption and how did you test it?
Previous: How to Answer Situational Questions (FBISE Model Paper Method) · Next: 1.1 Usability, Accessibility and Human–Computer Interaction (HCI)
All lessons in Computer Science XII (HSSC-II) – FBISE Complete SLO-Based Course