This is a solved set of NEB Class 12 Computer Science questions from an older model paper, worked through the way an examiner reads them. The point is not only the answers. It is where the marks sit inside each question, and why two students who know the same material can walk out with very different scores.
Every question below carries its original mark split — [1+4], [2+6], 5. Those numbers are instructions. Most lost marks in this subject come from ignoring them.
What this guide covers
- How the marks actually break down
- The answer skeleton that scores
- Q10 — Centralized or distributed database for a bank 1+4
- Q12 — Object-oriented vs procedure-oriented programming 2+3
- Q13 — Five qualities of good software 5
- Q14 — Mobile computing, advantages and disadvantages 5
- Q15 — Client-server architecture 2+6
- Q16 — C programs using structures and files 8
- Mistakes that cost marks
- Frequently asked questions
How the marks actually break down
The paper this set comes from splits as follows:
| Group | Pattern | Total | What it means per question |
|---|---|---|---|
| Group B — Short answer | 5 × 5 | 25 | Roughly 5 distinct points, about 60–90 words each answer |
| Group C — Long answer | 2 × 8 | 16 | Definition plus a developed body; or a full working program |
Table 1 — Mark distribution for the Group B and Group C sections of this paper.
Inside a question, a split like [1+4] is doing real work. It says: one mark for stating your position, four for defending it. A student who writes a beautiful four-paragraph defence but never states the position plainly loses that first mark for nothing.
[1+4] → one sentence answer, then four reasons.[2+3] → two marks of definition, three marks of comparison.[2+6] → short “why”, then a long two-sided body.5 → five named points. Not four. Not a paragraph.The answer skeleton that scores
Every short answer in this subject fits the same three-part shape:
| Part | Length | Job |
|---|---|---|
| Opening line | 1 sentence | Answer the question directly, in the question’s own words |
| Named points | 1 per mark | Bold label, then one or two sentences of explanation |
| Closing line | 1 sentence | Tie the points back to the question that was asked |
Table 2 — The three-part skeleton used by every model answer below.
The labelled points matter more than most students realise. An examiner marking hundreds of scripts is scanning for the keyword. If your point about data accuracy is buried mid-paragraph, it may not be found. If it starts with the bolded word Data Consistency, it will be.
Q10 — Centralized or distributed database for a bank 1+4
Model answer. Financial institutions such as banks have traditionally preferred a centralized database system over a distributed one. Four reasons:
Data consistency. All data sits in one location, so every branch reads the same balance at the same moment. In banking, a transaction that is visible in one place and not another is not an inconvenience — it is a defect.
Security. A single point of entry is easier to monitor, audit and harden than many. Access control, encryption and logging are applied once rather than replicated across sites.
Integrity and control. Constraints, backups and recovery procedures are enforced centrally, so there is one authoritative copy to restore from and one audit trail to answer to a regulator with.
Transaction efficiency. Transactions complete without coordinating across network sites. Distributed commits need protocols such as two-phase commit, which add latency and introduce new failure modes.
For a bank, where consistency and auditability outrank raw scale, these four properties make the centralized model the conventional answer.
Older circulating notes give a fifth reason: “centralized systems are more easily scaled up.” That is backwards and you should not write it. Horizontal scalability is the clearest single advantage of a distributed system — you add machines. A centralized system scales vertically, by buying a bigger machine, and that hits a hard ceiling.
If you want a genuine fifth reason, use simplicity of administration: one installation to patch, tune and back up.
The alternative version of this question
Five arguments, one per mark:
Simplicity. Data is tables of rows and columns — a model that non-technical staff can reason about, which lowers both training and maintenance cost.
Flexibility. Columns and tables can be added without restructuring everything around them, which suits organisations whose requirements change.
Data integrity. Primary keys, foreign keys and constraints are enforced by the DBMS itself, so invalid data is rejected at the door rather than discovered later.
Scalability. The model handles growth in both rows and concurrent users, with indexing and query optimisation to keep access times workable.
Compatibility. SQL is a standard supported by nearly every DBMS and reporting tool, so a relational database integrates with the software an organisation already owns.
For the underlying theory — keys, normalization, ER modelling — see the full DBMS fundamentals guide, or the Nepali version.
Q12 — Object-oriented vs procedure-oriented programming 2+3
Definitions (2 marks). Object-Oriented Programming (OOP) organises a program around objects — bundles of data together with the operations that act on that data. Procedure-Oriented Programming (POP) organises a program around a sequence of procedures or functions that operate on data passed to them.
Comparison (3 marks). Three points of difference:
| Aspect | OOP | POP |
|---|---|---|
| Unit of organisation | Objects that interact with each other | Functions executed one after another |
| Data handling | Data is encapsulated inside objects and accessed through methods | Data is kept separate and passed into functions |
| Effect on large programs | Modular, easier to extend and maintain | Simpler to learn, harder to maintain as size grows |
Table 3 — Three-point comparison of OOP and POP, matching the three comparison marks.
Neither style is better in the abstract; the choice depends on the size of the program and what it has to do. C is procedure-oriented; C++ and Java are object-oriented.
The split is
2+3, so the answer gives exactly two definitions and exactly three differences. A table makes the three-way structure visible at a glance — the examiner can count your points without reading a word.Q13 — Five qualities of good software 5
Good software meets its users’ requirements, performs its functions accurately and efficiently, and can be maintained without breaking. Five qualities:
Functionality. It does what the user requires, correctly and completely.
Reliability. It runs without failure under normal conditions, and recovers predictably when something does go wrong.
Maintainability. It can be modified, corrected and extended over time without unintended side effects elsewhere in the system.
Usability. The interface is clear enough that a user can work with it with minimal training.
Efficiency. It uses processor time, memory and storage economically rather than wastefully.
Depending on the system, security, portability, scalability and compatibility may matter just as much.
Five marks, five bolded qualities, one or two sentences each. The closing line adds extra qualities without padding the five — it shows range without diluting the structure.
Q14 — Mobile computing, advantages and disadvantages 5
Definition. Mobile computing is the use of portable computing devices — smartphones, tablets, laptops, wearables — to access and process information while moving, without being tied to a fixed location or a wired connection.
| Advantages | Disadvantages |
|---|---|
| Portability — information and applications are reachable from anywhere, at any time. | Security — devices are lost, stolen and connected to untrusted networks, so exposure is higher. |
| Flexibility — users can work or communicate while travelling. | Battery life — operation is limited by charge, and charging is not always possible. |
| Connectivity — devices share data over mobile networks and Wi-Fi. | Small screen — viewing and editing longer documents is harder. |
| Efficiency — tasks that once needed a desk can be finished in transit. | Limited resources — processing power, memory and storage are smaller than a desktop’s. |
| Entertainment — media and games on the same device. | Distraction — constant notifications work against sustained concentration. |
Table 4 — Paired advantages and disadvantages of mobile computing.
Whether mobile computing suits a given task depends on what that task needs: reach and immediacy favour it, sustained heavy processing does not.
Q15 — Client-server architecture 2+6
Why organisations prefer it (2 marks). Client-server architecture gives an organisation centralized management and control of its network resources, and it scales — data and applications stay on managed servers while any number of client machines across locations reach them over the network.
Advantages and disadvantages (6 marks). Three of each:
| Advantages | Disadvantages |
|---|---|
| Centralized management — storage, security, user accounts and backup are administered in one place rather than machine by machine. | Cost — dedicated server hardware, software licences and administration are an ongoing expense. |
| Security — sensitive data lives on controlled servers instead of being scattered across individual desktops. | Single point of failure — if the server goes down, every client loses the resource at once. |
| Scalability and reliability — clients can be added without redesigning the network, and resources stay available to all of them. | Network dependency and complexity — everything relies on the link, and setup demands specialist skill. |
Table 5 — Three advantages and three disadvantages, matching the six available marks.
The architecture suits organisations that value control and shared access over independence of individual machines.
Six marks almost always means three and three, not “write everything you know”. Listing eight advantages and two disadvantages scores worse than three balanced pairs, because the question asked for both sides. For the underlying networking, see OSI and TCP/IP models and topologies.
Q16 — C programs using structures and files 8
#include <stdio.h>
struct student {
int roll_number;
char name[50];
int sub1_marks, sub2_marks, sub3_marks;
float total;
float percentage;
};
int main(void) {
struct student stud[12];
int i;
printf("Enter information of 12 students:\n");
for (i = 0; i < 12; i++) {
printf("Enter roll number: ");
scanf("%d", &stud[i].roll_number);
printf("Enter name: ");
scanf("%49s", stud[i].name); /* no & — an array is already an address */
printf("Enter marks in sub1 (out of 100): ");
scanf("%d", &stud[i].sub1_marks);
printf("Enter marks in sub2 (out of 100): ");
scanf("%d", &stud[i].sub2_marks);
printf("Enter marks in sub3 (out of 100): ");
scanf("%d", &stud[i].sub3_marks);
stud[i].total = stud[i].sub1_marks + stud[i].sub2_marks + stud[i].sub3_marks;
stud[i].percentage = stud[i].total / 3; /* total out of 300, so /3 gives % */
}
printf("\nStudent details:\n\n");
printf("Roll No.\tName\tSub1\tSub2\tSub3\tTotal\tPercentage\n");
for (i = 0; i < 12; i++) {
printf("%d\t\t%s\t%d\t%d\t%d\t%.2f\t%.2f%%\n",
stud[i].roll_number, stud[i].name,
stud[i].sub1_marks, stud[i].sub2_marks, stud[i].sub3_marks,
stud[i].total, stud[i].percentage);
}
return 0;
}1.
scanf("%s", &stud[i].name) is wrong. name is char[50], which already decays to a pointer. Adding & gives char (*)[50], a different type. Compiled with gcc -Wall it produces:warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[50]'
It happens to work on most compilers, but it is a type error and an examiner who knows C can take a mark for it. Write scanf("%49s", stud[i].name).
2. %s stops at the first space. Enter “Ram Bahadur” and the program does not just truncate the name — it feeds “Bahadur” into the next scanf, which expects a number. Tested, the table came out as:
1 Ram -1815353984.00 -605118016.00%
Every later row is shifted too. If names may contain spaces, read the line with fgets() instead.
Why the percentage is total / 3. Three subjects out of 100 each means the total is out of 300. The percentage is total / 300 × 100, which simplifies to total / 3. The circulating version is correct here — a total of 285 gives 95.00% either way.
The alternative version of this question
score.dat to store students’ information with Reg_no, name, gender and address. The program should ask the user to continue or not. When finished, it should also display all the records in proper format. [8]#include <stdio.h>
#include <stdlib.h>
struct student {
int reg_no;
char name[50];
char gender[10];
char address[100];
};
int main(void) {
struct student s;
FILE *fp;
char choice;
fp = fopen("score.dat", "wb");
if (fp == NULL) {
printf("Error creating file!\n");
exit(1);
}
do {
printf("Enter registration number: ");
scanf("%d", &s.reg_no);
printf("Enter name: ");
scanf("%49s", s.name);
printf("Enter gender: ");
scanf("%9s", s.gender);
printf("Enter address: ");
scanf("%99s", s.address);
fwrite(&s, sizeof(struct student), 1, fp);
printf("Do you want to continue? (y/n): ");
scanf(" %c", &choice);
} while (choice == 'y' || choice == 'Y');
fclose(fp);
fp = fopen("score.dat", "rb");
if (fp == NULL) {
printf("Error opening file!\n");
exit(1);
}
printf("\n%-15s %-20s %-10s %-40s\n", "Registration", "Name", "Gender", "Address");
printf("-----------------------------------------------------------------------\n");
while (fread(&s, sizeof(struct student), 1, fp)) {
printf("%-15d %-20s %-10s %-40s\n", s.reg_no, s.name, s.gender, s.address);
}
fclose(fp);
return 0;
}File questions are marked on whether the program does all four: opens the file and checks the handle, writes records in a loop the user controls, closes and reopens for reading, and reads back until
fread returns zero. Miss the NULL check or the fclose and you lose marks even if the logic is right.scanf("%99s", s.address) will capture only the first word. The version above is what the paper expects; a correct program would use fgets. Say so in one line if you have room — it shows you understand the limitation rather than having missed it.Mistakes that cost marks
| Mistake | Cost | Fix |
|---|---|---|
| Writing a paragraph where the question says 5 | Structure marks | Five bolded labels, one per mark |
Ignoring the [1+4] or [2+6] split | The first 1 or 2 marks | Answer the short part explicitly before the long part |
| Listing all advantages and no disadvantages | Half the body marks | Balance both sides evenly |
Programs with no NULL check or fclose | 1–2 marks | Open, check, use, close — every time |
| Explaining a term the question did not ask about | Time, not marks | Re-read the verb: describe, justify, explain, develop |
| No closing sentence | The last mark in long answers | One line tying the points back to the question |
Table 6 — The six most common ways marks are lost on this paper.
Frequently asked questions
Is this the full NEB Class 12 Computer Science model paper?
No. This set covers Group B questions 10, 12, 13 and 14, and Group C questions 15 and 16. Question 11 is not present in the source document, and Group A is not included. Treat it as a practice set for the short and long answer sections, not a complete paper.
Should I memorise these answers word for word?
No — memorise the structure. The topics rotate between years, but the mark splits and the expected shape of an answer barely change. A student who can turn any topic into “one opening line, five labelled points, one closing line” can handle a question they have never seen.
Why does the guide disagree with the answer about scalability?
Because the circulating answer is factually wrong, and we would rather lose a point of fidelity than teach a mistake. Distributed systems scale better than centralized ones — that is the main reason distributed systems exist. Use simplicity of administration as the fourth or fifth reason instead.
Will I lose marks for writing scanf("%s", &name)?
Possibly. Many examiners accept it because it compiles and usually runs. It is still a type error that gcc -Wall flags, and the correct form is no harder to write, so there is no reason to risk it.
How long should a 5-mark answer be?
Around 60 to 90 words — roughly five short labelled points. Longer answers do not score higher; they cost you time on the questions that follow.
Where can I find the full notes for these topics?
The concept notes live in separate guides: DBMS fundamentals and the Nepali DBMS notes for Q10, OSI and TCP/IP models for Q15, Recent Trends in Technology for Q14, and the full Class 12 Computer Science notes hub for everything else.
