NEB Class 12 Science Computer Science Question Paper 2082 (Set D) Nepal
This is the official NEB Class 12 (Science stream) Computer Science question paper for 2082 Set D, as set in the regular annual examination. It carries 50 full marks and a time allowance of 120 minutes, across 16 questions. On Kekkei you can attempt this Computer Science past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your NEB Class 12 Computer Science exam or solving previous years' question papers, this 2082 paper is a great way to practise under real exam conditions.
Group 'A'
Multiple choice questions. Rewrite the correct option of each question in your same answer sheet.
Which of the following is the purpose of using primary key in database ?
To uniquely identify a record
A primary key uniquely identifies each record (row) in a table, so the correct answer is A) To uniquely identify a record.
A company needs to modify an existing table by adding a new column for employee email addresses. For this, which SQL command should be used ?
ALTER
Adding a new column to an existing table is done with the ALTER TABLE statement, so the correct answer is B) ALTER.
Which protocol is used for secure communication over a computer network ?
HTTPS
HTTPS (HyperText Transfer Protocol Secure) encrypts communication using SSL/TLS, providing secure communication over a network, so the correct answer is C) HTTPS.
Which control structure in JS (Java Script) is used to execute a block of code repeatedly based on a given condition ?
For loop
A loop executes a block of code repeatedly based on a condition. Among the options, A) For loop is the looping control structure, so it is the correct answer.
Select the invalid variable name in PHP.
$1name
In PHP a variable name must start with a letter or underscore after the $ sign and cannot start with a digit. $1name starts with a digit, so it is invalid. The correct answer is C) $1name.
The statement
int number ( int a); is a ...
function declaration
The statement int number(int a); (with a semicolon and no body) declares the prototype of a function; it tells the compiler about the function's name, return type and parameters without defining it. Hence it is a C) function declaration.
In which of the following programming, the emphasis is given on data rather than on procedures ?
Object-oriented programming
Object-oriented programming organizes software around data (objects) rather than functions/procedures, so emphasis is on data. The correct answer is C) Object-oriented programming.
Which type of feasibility study evaluates whether a system can be developed with the available technology ?
Technical feasibility
Technical feasibility evaluates whether the existing/available technology and technical resources are sufficient to develop the proposed system. The correct answer is C) Technical feasibility.
Which of the following is NOT a type of cloud computing service ?
Hardware as a Service (HaaS)
The three standard cloud service models are IaaS, PaaS and SaaS. "Hardware as a Service (HaaS)" is not a standard cloud computing service model, so the correct answer is D) Hardware as a Service (HaaS).
Group 'B'
Short answer questions.
Write any three differences between DDL and DML. Give examples of each. [3+2]
OR
What is normalization ? Explain 2NF and 3NF. [2+3]
Differences between DDL and DML (any three):
| DDL (Data Definition Language) | DML (Data Manipulation Language) |
|---|---|
| Defines and modifies the structure/schema of database objects. | Manipulates the data stored within those objects. |
Commands: CREATE, ALTER, DROP, TRUNCATE. | Commands: INSERT, UPDATE, DELETE, SELECT. |
| Changes are usually auto-committed (cannot be rolled back easily). | Changes can be committed or rolled back. |
| Works on schema/metadata level. | Works on the actual data (rows). |
Examples: DDL example — CREATE TABLE student(id INT, name VARCHAR(30)); ; DML example — INSERT INTO student VALUES(1,'Ram');
OR
Normalization is the process of organizing the data and relations (tables) in a database to reduce data redundancy and avoid insertion, update and deletion anomalies by decomposing larger tables into smaller, well-structured ones linked by relationships.
2NF (Second Normal Form): A relation is in 2NF if (i) it is already in 1NF and (ii) it has no partial dependency, i.e., every non-prime (non-key) attribute is fully functionally dependent on the whole primary key, not on just a part of a composite key.
3NF (Third Normal Form): A relation is in 3NF if (i) it is already in 2NF and (ii) it has no transitive dependency, i.e., no non-prime attribute depends on another non-prime attribute; every non-key attribute depends only on the primary key.
Write JavaScript code to input any three numbers and find the smallest number among them. [5]
OR
Write a PHP script to connect to a MySQL database. [5]
JavaScript to find the smallest of three numbers:
// Input any three numbers
var a = parseFloat(prompt("Enter first number:"));
var b = parseFloat(prompt("Enter second number:"));
var c = parseFloat(prompt("Enter third number:"));
var smallest = a;
if (b < smallest) {
smallest = b;
}
if (c < smallest) {
smallest = c;
}
document.write("The smallest number is " + smallest);
OR
PHP script to connect to a MySQL database:
<?php
$servername = "localhost";
$username = "root";
$password = "";
$database = "mydb";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $database);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
echo "Connected successfully";
?>
Write short notes on class and inheritance in oops with example. [5]
Class: A class is a user-defined data type in object-oriented programming that acts as a blueprint or template for creating objects. It encapsulates data members (attributes) and member functions (methods) that operate on that data. Objects are instances of a class.
Example (C++):
class Student {
public:
int roll;
string name;
void display() {
cout << roll << " " << name;
}
};
Inheritance: Inheritance is an OOP feature by which one class (the derived/child class) acquires the properties and behaviours (members) of another class (the base/parent class). It promotes code reusability and supports the "is-a" relationship.
Example (C++):
class Person {
public:
string name;
void info() { cout << name; }
};
// Student inherits from Person
class Student : public Person {
public:
int roll;
};
Here Student inherits the name attribute and info() method from Person.
What is Requirement Gathering ? Explain different Requirement Gathering methods. [1+4]
Requirement Gathering is the process in the early phase of system/software development in which an analyst collects, identifies and documents the needs, expectations and constraints of the users and stakeholders for the proposed system.
Different Requirement Gathering methods:
- Interview – The analyst directly asks questions (structured or unstructured) to users and stakeholders to collect detailed requirements.
- Questionnaire / Survey – A set of written questions is distributed to many users to gather information quickly from a large group.
- Observation – The analyst observes how users currently perform their work to understand real requirements and existing problems.
- Document/Record Review – Existing documents, forms, reports and records of the current system are studied to extract requirements.
- Brainstorming / Group meetings (JAD) – Stakeholders and developers discuss together to generate and refine requirements.
- Prototyping – A preliminary working model is built and shown to users to refine and confirm requirements.
What is AI ? Explain application areas of AI in education. [5]
Artificial Intelligence (AI) is the branch of computer science concerned with building machines and software systems that can perform tasks that normally require human intelligence, such as learning, reasoning, problem solving, perception, understanding language and decision making.
Application areas of AI in education:
- Personalized / Adaptive learning – AI analyzes each student's performance and learning pace to deliver customized content and recommendations.
- Intelligent Tutoring Systems – AI-based tutors provide one-to-one guidance, hints and feedback to students like a human tutor.
- Automated grading and assessment – AI automatically evaluates objective questions, assignments and even essays, saving teachers' time.
- Chatbots / virtual assistants – AI chatbots answer students' queries 24/7 and assist with administrative tasks.
- Smart content creation – AI helps generate study materials, summaries, quizzes and interactive content.
- Predicting performance / early warning – AI predicts at-risk students from their data so timely support can be given.
- Language learning and translation – AI-powered tools help in learning languages and translating content.
Group 'C'
Long answer questions.
What is transmission medium ? Explain its major types with advantages and disadvantages. [2+6]
Transmission medium is the physical path or channel through which data (signals) travel from a sender to a receiver in a communication system. It can be guided (wired) or unguided (wireless).
Major types:
A. Guided (Wired) media – signals travel through a solid physical medium.
- Twisted Pair Cable – pairs of insulated copper wires twisted together (e.g., telephone/LAN cable).
- Advantages: cheap, easy to install, light weight.
- Disadvantages: high attenuation, low bandwidth, susceptible to noise/interference over long distances.
- Coaxial Cable – a central copper conductor surrounded by insulation, a metal shield and an outer cover.
- Advantages: higher bandwidth than twisted pair, better noise immunity, supports longer distances.
- Disadvantages: more expensive and bulkier than twisted pair, harder to install.
- Fiber Optic Cable – transmits data as light pulses through thin glass/plastic fibers.
- Advantages: very high bandwidth and speed, very low attenuation, immune to electromagnetic interference, highly secure.
- Disadvantages: expensive, fragile, difficult to install and splice.
B. Unguided (Wireless) media – signals are transmitted through air/space without a physical conductor.
- Radio waves – omnidirectional waves used for AM/FM radio and wireless networks.
- Advantages: cover large areas, can penetrate walls, no cabling.
- Disadvantages: less secure, prone to interference, lower bandwidth.
- Microwaves – high-frequency line-of-sight transmission between towers/antennas.
- Advantages: high bandwidth, no cabling cost over difficult terrain.
- Disadvantages: needs line of sight, affected by weather, costly towers.
- Infrared – short-range communication (e.g., remote controls).
- Advantages: secure (cannot pass through walls), cheap.
- Disadvantages: very short range, line of sight required, cannot penetrate obstacles.
- Satellite – uses satellites to relay signals over very long distances.
- Advantages: covers very large/global area, suitable for remote areas.
- Disadvantages: very expensive, propagation delay, weather dependent.
Write a C program that reads the account_number, name and address of ten customers from users and displays the account_number, name and address of these customers using Array and structure. [8]
OR
What are the components of a function of C ? Describe the Call - by - value and Call - by - reference and passing the function parameters. [4+4]
C program using an array of structures for ten customers:
#include <stdio.h>
struct Customer {
int account_number;
char name[50];
char address[50];
};
int main() {
struct Customer c[10];
int i;
// Read details of ten customers
for (i = 0; i < 10; i++) {
printf("Enter details of customer %d\n", i + 1);
printf("Account Number: ");
scanf("%d", &c[i].account_number);
printf("Name: ");
scanf("%s", c[i].name);
printf("Address: ");
scanf("%s", c[i].address);
}
// Display details of ten customers
printf("\nCustomer Details:\n");
for (i = 0; i < 10; i++) {
printf("%d\t%s\t%s\n", c[i].account_number, c[i].name, c[i].address);
}
return 0;
}
OR
Components of a function in C:
- Function declaration / prototype – tells the compiler the function's return type, name and parameter types, e.g.
int sum(int, int); - Function definition – contains the actual body (code) of the function, including the function header and the statements inside
{ }. - Function call – the statement that invokes/executes the function, e.g.
sum(a, b);
A function also has a return type, a function name, a parameter list (formal parameters) and a function body.
Call by value: A copy of the actual argument's value is passed to the function's formal parameter. Changes made to the parameter inside the function do NOT affect the original argument.
void change(int x) { x = 100; } // original unchanged
Call by reference: The address (reference) of the actual argument is passed (in C, using pointers). The function works on the original memory location, so changes made inside the function DO affect the original argument.
void change(int *x) { *x = 100; } // original changed
// called as: change(&a);
Passing function parameters: Arguments supplied in the function call are called actual parameters, and the variables that receive them in the function definition are called formal parameters. In call by value the actual values are copied to the formal parameters; in call by reference the addresses of the actual parameters are passed so the function can modify the originals.
Frequently asked questions
- Where can I find the NEB Class 12 Computer Science question paper 2082?
- The full NEB Class 12 Computer Science 2082 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
- Does the Computer Science 2082 paper come with solutions?
- Yes. Every question on this Computer Science past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
- How many marks is the NEB Class 12 Computer Science 2082 paper?
- The NEB Class 12 Computer Science 2082 paper carries 50 full marks and is meant to be completed in 120 minutes, across 16 questions.
- Is practising this Computer Science past paper free?
- Yes — reading and attempting this Computer Science past paper on Kekkei is completely free.