Blog
Most Repeated Topics in UOS Past Papers: Analysis of 51 BS CS Papers (2014–2026)

Which topics come up again and again in University of Sargodha (UOS) BS Computer Science exams? We analysed 51 UOS past papers from our archive – Programming Fundamentals, OOP, Digital Logic Design, Operating Systems and Discrete Structures, from 2014 to 2026 – and counted how many papers each topic appeared in. The result is a data-backed list of what to revise first.
Key findings
- Constructors & destructors appeared in 14 of 14 OOP papers, and inheritance in 13.
- In Digital Logic Design, number-system conversions, logic gates, codes (BCD/Gray/Excess-3) and complements appeared in all 12 papers.
- CPU scheduling, deadlock and process synchronisation were in every Operating Systems paper (8 of 8).
- Arrays and functions were in all 10 Programming Fundamentals papers; loops and structures in 9.
- Graphs and trees appeared in all 7 Discrete Structures papers analysed.
- Some topics students often skip are rare: templates (3 of 14 OOP papers), disk scheduling (3 of 8 OS papers) and comparators (2 of 12 DLD papers).
How we did this analysis
We took every UOS past paper in these five subjects that has a typed text version on Shining Study (image-only papers were excluded), isolated the question text, and checked each paper for a defined list of syllabus topics using keyword matching. A topic is counted once per paper if any question mentions it, whether as a short question or a long one. “Share of papers” is the number of papers containing the topic divided by the papers analysed for that subject.
Limits: sample sizes are small (7–14 papers per subject), papers come mainly from 2014–2019 with some recent years, and keyword matching can miss a question worded unusually. Treat this as a revision guide, not a prediction of your next paper.
Programming Fundamentals: most repeated topics
10 papers analysed (2014–2019). Practise writing complete programs with loops and arrays – almost every paper asks you to write code, not just define terms. Arrays, functions and loops together cover nearly every long question.
| Topic | Papers | Share of papers |
|---|---|---|
| Arrays (1-D / 2-D) | 10 / 10 | 100% |
| Functions & parameters | 10 / 10 | 100% |
| Loops (for / while / do-while) | 9 / 10 | 90% |
| Structures | 9 / 10 | 90% |
| Pointers | 8 / 10 | 80% |
| Operators & expressions | 8 / 10 | 80% |
| Switch / if-else / conditions | 7 / 10 | 70% |
| Recursion | 5 / 10 | 50% |
| Data types & variables | 5 / 10 | 50% |
| Strings | 3 / 10 | 30% |
| Algorithm / flowchart | 2 / 10 | 20% |
| Compiler / interpreter / translators | 1 / 10 | 10% |
➜ All Programming Fundamentals past papers
Object Oriented Programming: most repeated topics
14 papers analysed (2015–2026). Constructors/destructors appeared in every single paper, and inheritance in all but one. Learn each concept with a short C++ example – most long questions ask you to “explain with a program”.
| Topic | Papers | Share of papers |
|---|---|---|
| Constructors & destructors | 14 / 14 | 100% |
| Inheritance (types) | 13 / 14 | 93% |
| Polymorphism / virtual functions | 11 / 14 | 79% |
| Abstract classes & interfaces | 11 / 14 | 79% |
| Encapsulation / data hiding | 9 / 14 | 64% |
| Operator overloading | 7 / 14 | 50% |
| Exception handling | 7 / 14 | 50% |
| Static members | 6 / 14 | 43% |
| File handling | 6 / 14 | 43% |
| Copy constructor / this pointer | 5 / 14 | 36% |
| Function overloading | 4 / 14 | 29% |
| Friend functions / classes | 4 / 14 | 29% |
| Templates | 3 / 14 | 21% |
| Composition / aggregation / association | 2 / 14 | 14% |
➜ All Object Oriented Programming past papers
Digital Logic Design: most repeated topics
12 papers analysed (2014–2018). Number-system conversions, codes (BCD, Gray, Excess-3) and complements were in every paper, so treat them as guaranteed short questions. Multiplexers and flip-flops are the most common design questions.
| Topic | Papers | Share of papers |
|---|---|---|
| Number systems & conversion | 12 / 12 | 100% |
| Logic gates / universal gates | 12 / 12 | 100% |
| Codes (BCD, Gray, Excess-3, parity) | 12 / 12 | 100% |
| Complements (1s/2s) & signed numbers | 12 / 12 | 100% |
| Boolean algebra & De Morgan | 11 / 12 | 92% |
| SOP / POS forms | 11 / 12 | 92% |
| Multiplexers / decoders / encoders | 11 / 12 | 92% |
| Flip-flops & latches | 11 / 12 | 92% |
| Adders & subtractors | 10 / 12 | 83% |
| K-map minimisation | 8 / 12 | 67% |
| Counters | 5 / 12 | 42% |
| Registers / shift registers | 4 / 12 | 33% |
| Comparators | 2 / 12 | 17% |
➜ All Digital Logic Design past papers
Operating Systems: most repeated topics
8 papers analysed (2014–2017). CPU scheduling, deadlock and process synchronisation were in all 8 papers. Practise at least two Gantt-chart numericals (FCFS, SJF, Round Robin, priority) and one Banker’s algorithm problem.
| Topic | Papers | Share of papers |
|---|---|---|
| CPU scheduling (FCFS, SJF, RR, priority) | 8 / 8 | 100% |
| Deadlock (conditions, Banker’s) | 8 / 8 | 100% |
| Synchronisation (semaphores, critical section) | 8 / 8 | 100% |
| Paging & page replacement | 7 / 8 | 88% |
| Virtual memory / thrashing | 7 / 8 | 88% |
| Threads | 7 / 8 | 88% |
| Process & PCB / states | 6 / 8 | 75% |
| Segmentation / fragmentation | 6 / 8 | 75% |
| System calls / OS services | 6 / 8 | 75% |
| OS types (batch, time-sharing, real-time) | 5 / 8 | 63% |
| File systems | 3 / 8 | 38% |
| Disk scheduling | 3 / 8 | 38% |
➜ All Operating Systems past papers
Discrete Structures: most repeated topics
7 papers analysed (2014–2018). Graphs/trees appeared in every paper analysed. Logic (truth tables, equivalences), sets, relations and functions together make up most of the paper.
| Topic | Papers | Share of papers |
|---|---|---|
| Graphs & trees | 7 / 7 | 100% |
| Logic & truth tables | 6 / 7 | 86% |
| Sets & set operations | 6 / 7 | 86% |
| Relations (reflexive, symmetric, transitive) | 6 / 7 | 86% |
| Functions (one-one, onto) | 6 / 7 | 86% |
| Predicates & quantifiers | 5 / 7 | 71% |
| Proof techniques & induction | 5 / 7 | 71% |
| Recurrence relations / sequences | 5 / 7 | 71% |
| Counting (permutations & combinations) | 4 / 7 | 57% |
| Matrices | 3 / 7 | 43% |
| Probability | 2 / 7 | 29% |
➜ All Discrete Structures past papers
Questions that were repeated word-for-word
Some questions appeared in almost identical wording in two or more papers:
- OS: “What is critical section?”, “List and discuss various services provided by the operating system”, “Compare batch operating systems and time-sharing operating systems”.
- DLD: “Implement the following function using a multiplexer”, and number-conversion questions on binary, BCD and Gray code.
- Programming Fundamentals: “What is a preprocessor directive?”, “Describe the importance of the default statement in a switch statement”, “What are syntax errors?”
- Discrete Structures: “Determine whether each of these functions is a bijection”, and proving logical equivalences with De Morgan’s laws.
A 3-week revision plan based on the data
- Week 1 – the “every paper” topics. Master the 100% topics in your subject first (see the tables). These are almost guaranteed marks.
- Week 2 – the 70–90% topics. Practise numericals and programs: Gantt charts and paging (OS), K-maps and flip-flop circuits (DLD), operator overloading and exception handling (OOP), pointers and recursion (PF), relations and recurrence (Discrete).
- Week 3 – full past papers under time. Solve 3–4 complete papers in 2.5 hours each. Many of our papers now include solved answers to check your work.
Tip: short questions (2 marks each, usually 16 of them) make up around 40% of most UOS papers, and they are drawn mostly from the high-frequency topics above.
Frequently asked questions
Do UOS papers repeat questions?
Exact repeats are uncommon, but topics repeat heavily – several topics appeared in every paper we analysed. Revising by topic frequency is more reliable than hoping for an identical question.
Which subjects were analysed?
Programming Fundamentals, Object Oriented Programming, Digital Logic Design, Operating Systems and Discrete Structures – the BS CS/IT/SE subjects with the most typed past papers in our archive. We plan to add Data Structures, Databases and Computer Networks as more text versions are added.
Can I share or use this data?
Yes. You are welcome to share these findings or use the tables in your own notes, class or article – please credit and link to this page.
Related: All UOS past papers · UOS CGPA to Percentage · GPA Calculator · Best time to study, according to science