Skip to content
NEB • Grade XII • Past Paper
NEB Grade XII Computer Science 2080 (2023) New Course Question Paper — Full Analysis, Unit-Wise Weightage and Preparation Guide
← Back

Introduction

The NEB Grade XII Computer Science examination for 2080 (2023), set under the “New Course” designation (Sub Code 4281), was set for students whose registration numbers begin with 78 or 79, carrying full marks of 50 across a 2-hour sitting. This paper leans noticeably toward practical, hands-on web and database skills — jQuery methods, PHP database connectivity, SQL DDL commands, and JavaScript coding all appear within the first dozen questions, making it a genuinely useful benchmark for students who want to test whether their coding fluency matches their theoretical knowledge.

What makes this paper worth close study is how many of its questions test a specific technical detail that’s easy to get subtly wrong. The IPv4 address MCQ, for instance, requires students to actually check each octet of four different addresses against the valid 0–255 range rather than just recognizing the general dotted-decimal format. The FILE pointer question in C demands precise understanding that FILE is technically a structure type, with a FILE pointer variable pointing to it — a distinction that’s easy to gloss over if a student has only ever used FILE *fp without stopping to consider what it actually represents under the hood. This same precision-testing continues through Group B and Group C, where students are asked not just to write a working PHP script that inserts data into a specific database and table, but to do so using exact given connection parameters — testing careful, literal implementation rather than approximate understanding.

Programming in C and networking together anchor the heaviest-weighted portions of this paper, with C in particular tested through two genuinely substantial Group C questions — one requiring a user-defined function to calculate a sphere’s surface area, and its alternative requiring an array of fifty staff records filtered by a salary condition. Database management, web technologies, system analysis and design, object-oriented and event-driven programming, and cloud computing round out a paper that, much like other recent NEB Computer Science sets, samples broadly across the full syllabus rather than concentrating narrowly.

In this article, we’ll break down the complete question pattern, map out exactly where the marks were concentrated unit by unit, work through the reasoning behind every MCQ answer, discuss the approach and provide working code or explanations for each descriptive question, and lay out a preparation strategy built specifically around what this paper demands. We’ve also answered the questions students most frequently ask about this exam.

Exam Overview

DetailInformation
BoardNational Examinations Board (NEB)
LevelGrade XII (+2)
SubjectComputer Science
Year2080 (2023)
Subject Code4281
CourseNew Course
Applicable toStudents whose registration numbers start with 78 or 79
Full Marks50
Time Allotted2 hours
Total Questions16 (9 MCQs + 5 short-answer + 2 long-answer)
🎯
Get NN Premium Subscription

Unlock all courses, entrance mock sets, PDF notes & more — just Rs. 250.

Get Premium →

Full Question Paper

Question Pattern Analysis

This paper follows NEB’s standard three-group structure, scaled to Computer Science’s 50-mark, 2-hour format:

Group A — Very Short Answer / Multiple Choice Questions (9 × 1 = 9 marks) All 9 MCQs are compulsory and span web scripting (jQuery), database management (DML statements, MySQL connectivity), networking fundamentals (the World Wide Web, IPv4 addressing, coaxial cable), C programming (the FILE structure), and system development methodology (the SDLC testing phase). Several questions demand precise technical checking rather than general recognition — validating IPv4 addresses octet by octet, and correctly identifying which single option among several similar-looking database commands is genuinely a DML statement.

Group B — Short Answer Questions (5 × 5 = 25 marks) Questions 10 to 14 cover the relational data model (with an “Or” choice on writing actual SQL DDL commands for a given schema), database connectivity syntax combined with a practical PHP insert script (with an “Or” choice on a JavaScript factorial program), the distinction between event-driven/object-oriented programming and procedural programming, the importance of system testing within the SDLC, and cloud computing with its advantages and disadvantages.

Group C — Long Answer Questions (2 × 8 = 16 marks) Questions 15 and 16 test network topology alongside a detailed comparison of guided and unguided transmission media, and a substantial C programming question combining a conceptual explanation of pointer advantages with a complete user-defined function program (with an “Or” choice on structures, requiring an array-based program that filters and displays specific records by a salary condition).

A clear pattern across this paper is its preference for pairing a short conceptual explanation with a genuinely practical coding task within the same question — Q11 (database connectivity plus a working insert script), Q13 (testing’s importance), and Q16 (pointer advantages plus a working function-based program) all follow this same “explain, then implement” structure, rewarding students who can move fluently between theory and working code within a single answer.

Topics Covered

Based on a full review of all 16 questions, this paper draws from the following core areas of the NEB Grade XII Computer Science syllabus:

  • Web Technologies — jQuery shortcuts and methods, server-side scripting for database connectivity, JavaScript programming logic
  • Database Management Systems — DML versus DDL statement identification, the relational data model, writing SQL DDL commands from a given schema, PHP-based database insertion
  • Networking and Data Communication — the World Wide Web, IPv4 address validation, coaxial cable and guided/unguided transmission media, network topology
  • Programming in C — the FILE structure and file pointers, pointer advantages, user-defined functions, structures combined with arrays and conditional filtering
  • System Analysis and Design — SDLC phases, specifically the role and importance of system testing
  • Object-Oriented and Event-Driven Programming — how event-driven/OOP approaches differ from procedural programming
  • Emerging Technologies — cloud computing, its advantages and disadvantages

Unit-Wise Weightage

Grouping the 50 marks by broad Computer Science unit shows how this paper distributed its emphasis:

UnitApproximate MarksWeightage
Networking and Data Communication11~22%
Programming in C9~18%
Web Technologies (jQuery/PHP/JavaScript)8~16%
Database Management Systems6~12%
System Analysis and Design6~12%
Object-Oriented / Event-Driven Programming5~10%
Emerging Technologies (Cloud Computing)5~10%

Networking claims the largest single share here, driven substantially by Q15’s detailed transmission media question, while Programming in C and Web Technologies together account for over a third of the paper. As with other recent NEB Computer Science sets, the overall distribution is fairly even across units, reinforcing that broad, well-rounded preparation matters more in this subject than concentrating heavily on just one or two favorite topics.

Unit-Wise Discussion

Web Technologies (Q1, Q5, Q6, Q11): The jQuery shortcut MCQ tests a basic but essential fact — that the dollar sign ($) serves as jQuery’s standard shortcut alias. The jQuery hide-element MCQ tests the exact method name, hide(), among several plausible-sounding but incorrect distractors. The MySQL connection function MCQ tests recognition of mysqli_connect() as the correct PHP function for establishing a database connection. Q11 combines defining the general syntax for database connectivity with writing a complete, working PHP script that inserts specific data into a named database and table using explicitly given connection parameters — a genuinely practical test of server-side scripting ability.

Database Management Systems (Q2, Q10): The DML statement MCQ tests the ability to distinguish data manipulation commands (like SELECT) from data definition commands (CREATE, ALTER, DROP), which are frequently confused since both categories fall under the broader SQL umbrella. Q10 asks students to either explain the relational data model conceptually with an example, or to write actual SQL DDL commands to create a table matching a specific given schema — testing both theoretical understanding and precise, working SQL syntax.

Networking and Data Communication (Q3, Q4, Q9, Q15): The World Wide Web MCQ tests the specific definition of WWW as a collection of hyperlinked documents, distinct from HTML (a markup language), a single webpage, or email systems. The IPv4 validation MCQ requires checking each of four candidate addresses against the valid octet range of 0–255, plus recognizing that letters have no place in a numeric IPv4 address. The coaxial cable MCQ tests its classification as a guided (wired) transmission medium. Q15 is the paper’s most substantial networking question, requiring both a definition of network topology and a detailed comparison between guided and unguided transmission media with concrete examples of each.

Programming in C (Q7, Q16): The FILE pointer MCQ tests precise understanding that FILE is technically a structure type defined for representing file streams, with a FILE pointer variable used to reference and interact with an open file. Q16 is the paper’s most demanding single question, requiring both an explanation of pointer advantages and a complete C program using a user-defined function to calculate a sphere’s surface area from a given radius; its alternative shifts to structures, requiring a complete program that stores fifty staff records and then filters and displays only those within a specific salary range — both genuinely comprehensive tests of practical C programming ability.

System Analysis and Design (Q8, Q13): The SDLC phase MCQ tests recognition that testing, specifically, is the phase most directly responsible for ensuring software quality before deployment, distinct from implementation, maintenance, or the earlier system study phase. Q13 asks students to explain why system testing specifically matters within the broader SDLC, rewarding answers that go beyond a one-line definition to cover multiple concrete benefits like bug detection, requirement verification, and building stakeholder confidence.

Object-Oriented and Event-Driven Programming (Q12): This question asks students to explain how event-driven programming (and by extension, object-oriented programming) differs from procedural programming — a conceptual comparison covering control flow (predetermined sequence versus event-triggered execution), the relationship between data and functions (separate in procedural programming versus bundled together in OOP), and typical use cases (linear tasks versus interactive, GUI-based, or web applications).

Emerging Technologies (Q14): This question asks for a definition of cloud computing alongside its specific advantages (cost savings, scalability, remote accessibility) and disadvantages (internet dependency, security concerns, limited infrastructure control) — a topic that rewards balanced, two-sided answers rather than only listing benefits.

Difficulty Analysis

This paper sits at a moderate difficulty level, with its demands coming primarily from the precision required in both technical recall and practical coding, rather than from any single conceptually advanced topic. Group A requires genuine attention to detail rather than surface familiarity — the IPv4 validation question in particular can trip up students who check only the general format of an address without verifying each octet’s numeric range individually. Group B is comfortably scorable for well-prepared students, though Q11’s PHP insertion script specifically requires using the exact connection parameters given in the question (server name, username, password, and database name), meaning a generically correct script that ignores these specifics would likely lose marks. Group C is the most demanding section — Q16’s requirement to combine a user-defined function with proper mathematical calculation (or, in its alternative, to combine a fifty-element structure array with a conditional filtering loop) requires sustained, accurate coding across multiple lines without a single syntax or logic error breaking the entire program.

MCQ Explanations (Group A)

Q1. Shortcut sign used for jQuery The correct answer is the $ sign. jQuery uses the dollar sign as its standard shorthand alias for the jQuery function itself, allowing developers to write $(selector) instead of the full jQuery(selector).

Q2. Which of the following is a DML statement The correct answer is Select. SELECT is a Data Manipulation Language command used to retrieve data from a database, distinct from CREATE, CREATE VIEW, ALTER, and DROP, which are all Data Definition Language commands used to define or modify database structure.

Q3. Collection of hyperlinked documents on the Internet The correct answer is www. The World Wide Web specifically refers to the interconnected system of hyperlinked documents (webpages) accessible via the Internet, distinct from HTML (the markup language used to create individual documents), a single webpage, or email systems.

Q4. Valid IPv4 address among the given options The correct answer is 192.168.1.1. Each octet in a valid IPv4 address must fall between 0 and 255; the other options fail this test — EEE.000.33.000 contains letters instead of numbers, 257.2.5.1 has a first octet exceeding 255, and 202.70.71.262 has a final octet exceeding 255.

Q5. jQuery method used to hide selected elements The correct answer is hide(). This is the standard jQuery method for hiding matched elements, distinct from the incorrect or non-existent method names given as distractors.

Q6. Function used to connect to a MySQL database The correct answer is mysqli_connect(). This PHP function establishes a connection to a MySQL database server using parameters for the server name, username, password, and database name.

*Q7. True statement about FILE fpt The correct answer is FILE is a structure and fpt is a pointer to the structure of FILE type. In C, FILE is technically a structure type (typically defined in stdio.h) that holds information about an open file stream, and a variable declared as FILE *fpt is a pointer used to reference and interact with that structure.

Q8. SDLC phase used to ensure quality software The correct answer is testing. The testing phase of the System Development Life Cycle is specifically dedicated to identifying defects and verifying that the software meets its intended requirements before deployment, distinguishing it from implementation, maintenance, and the earlier system study phase.

Q9. Coaxial cable is an example of The correct answer is Guided Transmission media. Coaxial cable is a physical, wired transmission medium, placing it in the guided media category alongside twisted pair and fiber optic cable, as opposed to unguided (wireless) media like radio waves or microwaves.

Group B and C Answer Discussion

Q10 (Relational data model / Or: SQL DDL commands): The relational data model organizes data into tables (relations) made up of rows (tuples) and columns (attributes), where each table represents a distinct entity type, and relationships between tables are established through keys — a primary key uniquely identifies each row within its own table, while a foreign key in one table references the primary key of another, linking related data together. For example, a “Student” table with columns like StudentID, Name, and Class could be linked to a “Marks” table containing StudentID, Subject, and Score, with StudentID serving as a foreign key in the Marks table that references the Student table’s primary key. In the alternative, writing the SQL DDL command to create the given schema looks like:

CREATE TABLE student_info (
    regno INTEGER,
    name CHARACTER(25),
    class INTEGER,
    gender CHARACTER(1),
    address CHARACTER(25)
);

Q11 (Database connectivity syntax and PHP insert script / Or: JavaScript factorial): The general syntax for database connectivity in PHP follows the pattern mysqli_connect("servername", "username", "password", "database"), returning a connection object used for subsequent queries. Using the specific parameters given in the question, a complete PHP script to insert a new student record looks like:

<?php
$conn = mysqli_connect("localhost", "root", "", "student_DB");

if (!$conn) {
    die("Connection failed: " . mysqli_connect_error());
}

$first_name = "John";
$last_name = "Doe";
$mark = 85;
$email = "john@example.com";

$sql = "INSERT INTO student (first_name, last_name, mark, email) 
        VALUES ('$first_name', '$last_name', $mark, '$email')";

if (mysqli_query($conn, $sql)) {
    echo "New record inserted successfully";
} else {
    echo "Error: " . mysqli_error($conn);
}

mysqli_close($conn);
?>

In the alternative, a JavaScript program to calculate the factorial of a given number reads user input and multiplies through a loop (or uses recursion):

let num = parseInt(prompt("Enter a number:"));
let fact = 1;
for (let i = 1; i <= num; i++) {
    fact = fact * i;
}
document.write("Factorial of " + num + " is " + fact);

Q12 (Event-driven/OOP versus procedural programming): Procedural programming organizes code as a sequence of instructions or procedures that execute in a predetermined, top-down order, with data and functions kept largely separate from each other, making it well-suited to simple, linear tasks. Event-driven programming, closely tied to object-oriented programming in practice, instead structures program flow around events — user actions like clicks or key presses, or system-generated triggers — meaning the order of execution isn’t fixed in advance but depends on what events actually occur; in OOP specifically, data and the methods that operate on that data are bundled together into objects, promoting encapsulation, reusability through inheritance, and better modularity for larger, more interactive systems like GUI applications and modern web development.

Q13 (Importance of system testing in SDLC): System testing is the phase where a complete, integrated software system is evaluated against its specified requirements before deployment. Its importance includes detecting and eliminating bugs before they reach production (avoiding far costlier post-deployment fixes), verifying that the system genuinely meets both functional and non-functional requirements, assessing performance, reliability, and security under realistic conditions, uncovering integration issues between different modules that might not surface during isolated unit testing, and ultimately building confidence among stakeholders and end users that the system will perform as intended.

Q14 (Cloud computing): Cloud computing is the delivery of computing services — including servers, storage, databases, networking, and software — over the Internet on a pay-as-you-go basis, allowing users to access powerful computing resources remotely without owning or maintaining the underlying physical infrastructure themselves. Its advantages include significant cost savings (no need to purchase and maintain physical hardware), scalability (resources can be increased or decreased based on actual demand), and accessibility from virtually anywhere with an internet connection. Its disadvantages include a fundamental dependency on internet connectivity, ongoing security and privacy concerns around storing data on third-party servers, potential service outages beyond the user’s direct control, and reduced control over exactly where and how the underlying infrastructure operates.

Q15 (Network topology and transmission media): Network topology refers to the arrangement or layout pattern of interconnected devices and links within a computer network, describing how nodes are physically or logically connected — common examples include bus, star, ring, mesh, and tree topologies. Guided (wired) transmission media carry signals through a physical, confined path, including twisted pair cable, coaxial cable, and fiber optic cable; these generally offer greater security and reliability with less susceptibility to interference, but require physical installation and offer limited mobility. Unguided (wireless) transmission media, including radio waves, microwaves, and satellite communication, carry signals through free space without a physical conductor, offering much greater mobility and easier installation across large or difficult terrain, but are generally more susceptible to interference, eavesdropping, and environmental factors like weather.

Q16 (Pointer advantages and sphere area program / Or: Structure-based staff filtering program): Pointers offer several advantages in C programming, including enabling direct and efficient memory access and manipulation, facilitating dynamic memory allocation at runtime, allowing call-by-reference function calls that let functions modify the original arguments passed to them, and forming the foundation for implementing complex data structures like linked lists and trees. A complete C program using a user-defined function to calculate a football’s (sphere’s) surface area from an input radius looks like:

#include <stdio.h>

float findArea(float radius) {
    float area;
    area = 4 * 3.14159 * radius * radius;
    return area;
}

int main() {
    float radius, area;
    
    printf("Enter the radius of the football: ");
    scanf("%f", &radius);
    
    area = findArea(radius);
    
    printf("Surface area of the football is: %.2f\n", area);
    
    return 0;
}

In the alternative, a structure in C is a user-defined data type that groups variables of different data types together under a single name, allowing related data to be organized and accessed as a unit. A complete program storing fifty staff records and filtering those with salaries between 25,000 and 40,000 looks like:

#include <stdio.h>

struct Staff {
    int staff_id;
    char name[50];
    float salary;
};

int main() {
    struct Staff staff[50];
    int i;
    
    for (i = 0; i < 50; i++) {
        printf("Enter staff ID for staff %d: ", i + 1);
        scanf("%d", &staff[i].staff_id);
        printf("Enter name for staff %d: ", i + 1);
        scanf("%s", staff[i].name);
        printf("Enter salary for staff %d: ", i + 1);
        scanf("%f", &staff[i].salary);
    }
    
    printf("\nStaff with salary between 25000 and 40000:\n");
    for (i = 0; i < 50; i++) {
        if (staff[i].salary >= 25000 && staff[i].salary <= 40000) {
            printf("ID: %d, Name: %s, Salary: %.2f\n",
                   staff[i].staff_id, staff[i].name, staff[i].salary);
        }
    }
    
    return 0;
}

Student Preparation Tips

  1. Practice validating IPv4 addresses octet by octet, not just by general format. Q4 shows that NEB is willing to test this level of detail — always check that all four octets fall strictly within 0–255 and contain no letters or invalid characters.
  2. Keep a clear mental separation between DDL and DML commands. Confusing SELECT (a DML command) with structure-modifying commands like CREATE, ALTER, and DROP is a common and easily avoidable mistake — a quick reference table sorted by command purpose helps cement this distinction.
  3. Practice writing PHP database scripts using exact given parameters, not generic placeholders. Q11 specifically supplies server name, username, password, and database name — get in the habit of substituting the exact values given in a question rather than leaving them generic, since this precision is often specifically graded.
  4. Build fluency with both loop-based and recursive approaches to classic programming problems like factorial calculation. Having both methods ready means you can adapt quickly regardless of which specific phrasing a question uses.
  5. Practice C programs that combine two concepts together, not just one at a time. Q16 requires combining either a user-defined function with mathematical calculation, or a structure with an array and a conditional filter — practicing these combinations specifically, rather than each concept in isolation, closes the gap between “understanding structures” and “writing a working structures program.”
  6. Organize transmission media and topology revision comparatively. Building a side-by-side comparison of guided versus unguided media (covering security, mobility, cost, and typical examples) makes Q15-style questions considerably faster to answer completely.
  7. Revise system testing and other SDLC phases with concrete justifications, not just definitions. Q13 rewards students who can explain multiple distinct reasons why testing matters, rather than offering a single generic sentence.
  8. Prepare balanced, two-sided answers for technology topics like cloud computing. Questions asking for both advantages and disadvantages specifically reward comprehensive, balanced answers over one-sided ones that only list benefits.

Frequently Asked Questions

Q1. What is the full marks and time duration for the NEB Grade XII Computer Science 2080 paper? The paper carries full marks of 50 and is to be completed within 2 hours.

Q2. How many groups are there in this Computer Science paper, and how are marks distributed? There are three groups: Group A (9 MCQs, 1 mark each = 9 marks), Group B (5 short-answer questions, 5 marks each = 25 marks), and Group C (2 long-answer questions, 8 marks each = 16 marks).

Q3. Which unit carries the highest weightage in this Computer Science paper? Networking and Data Communication carries the highest weightage at roughly 22%, driven substantially by the detailed transmission media question in Group C, followed by Programming in C at around 18%.

Q4. What programming languages should students be prepared to code in for this exam? Based on this paper, students should be comfortable writing working code in C (for Group C’s programming questions) and PHP or JavaScript (since Group B’s Q11 offers a choice between a PHP database script and a JavaScript factorial program) — practicing database connectivity syntax specifically is worth extra attention given how often it appears.

Q5. Are “Or” choice questions common in this paper, and how should students use them? Yes, this paper includes “Or” choices in Q10, Q11, and Q16. Students should quickly assess which option plays to their strengths — for instance, Q11’s choice between a database-focused PHP script and a purely algorithmic JavaScript program represents genuinely different skill sets.

Q6. How important is database management for the NEB Computer Science board exam? Quite important — this paper tests database concepts through MCQs (DML identification, MySQL connection functions), a conceptual short-answer question (the relational data model), and practical coding (SQL DDL commands and a PHP insertion script), showing that both theory and hands-on syntax are expected.

Q7. Is this question paper suitable for practice by students preparing for a different registration range or set? Yes. While registration numbers determine which exact paper version a student receives, the syllabus, unit weightage, and overall difficulty level remain consistent across different NEB Computer Science papers from the same course and year, making this paper valuable practice material broadly.

Conclusion

The NEB Grade XII Computer Science 2080 New Course paper reflects a genuinely well-rounded test of the full syllabus, with Networking and Programming in C claiming the largest shares of marks, closely followed by Web Technologies, Database Management, System Analysis and Design, Object-Oriented/Event-Driven Programming, and Cloud Computing. What distinguishes this paper is its consistent pairing of conceptual explanation with genuinely practical implementation — asking students not just to define database connectivity but to write a working script using specific given parameters, and not just to explain pointer advantages but to demonstrate them through a complete, functioning program. Students preparing for their own examination should use the MCQ reasoning and descriptive answer discussion above, including the worked code examples, as a template for practicing this specific style of precision-focused, implementation-heavy question set.