NIOS · Class 12 · Set 1
Computer Science
Practice for NIOS 2026-27 public examinations, usually held in April-May and October-November, alongside On-Demand windows.
Independent practice paper — verify on official board sources
Disclaimer: BharatBoard is an independent student and parent guide — not affiliated with, associated with, or endorsed by any Central Board, State Board, school, educational institution, recruitment commission, or government body, and does not represent any government entity. We recommend that you contact and verify all exam results, date sheets, syllabi, school admission dates, eligibility criteria, fee schedules, scholarships, and government job notifications directly with the respective school, institution, Central Board, State Board, or recruitment body via their official websites and notifications. These questions are original practice items for revision. Follow the official syllabus, the prescribed textbooks, and your school or institution. Model answers are a study aid. They are not an official marking scheme.
NIOS Class 12 Computer Science, Set 1, is an original BharatBoard revision set of 20 marks. It is shorter than a full board paper. The official syllabus and sample papers on the NIOS website remain the authority.
Timed Exam Mode
Official 60-minute writing countdown
General instructions & how to use this paper
- This revision set has 15 questions and 20 marks. Ten questions are one mark. Five questions are two marks. Attempt every question. A calculator is not needed.
- Timing is typical months only — always verify the exact dates on the official board website, which change every session.
Section A
· Multiple-choice questionsAttempt all ten 1-mark questions.
Which Object-Oriented Programming pillar bundles private data attributes together with member functions operating on them inside one class unit?
Model answer · Option D
Encapsulation shields internal object state from accidental outside corruption by binding data and methods inside a class capsule.
Deriving a new class (e.g., SportsCar) that automatically reuses attributes and methods of an existing class (Vehicle) illustrates:
Model answer · Option C
Inheritance models "is-a" hierarchies, eliminating redundant code while letting derived classes specialise behaviour.
Which special C++ class member function bears the exact class name, declares no return type (not even void), and runs automatically upon object creation?
Model answer · Option B
Whenever an object is instantiated, its constructor executes immediately to initialise data members to valid starting values.
Which prefix character precedes the class name when declaring a C++ destructor?
Model answer · Option A
A destructor like ~Student() takes no arguments and releases dynamically allocated resources when an object goes out of scope.
If no visibility label is written at the start of a C++ class body, what access level applies by default to its members?
Model answer · Option D
Unlike struct (which defaults to public), C++ classes enforce data hiding by making unlabelled members private by default.
What name denotes a strongly typed C++ variable engineered specifically to store the RAM memory address of another variable?
Model answer · Option C
Declared with an asterisk (such as int *ptr;), a pointer holds the hexadecimal address of a target memory cell.
Function-call activation frames and browser Back-button histories rely on which Last-In-First-Out (LIFO) linear data structure?
Model answer · Option B
In a Stack, both insertion (PUSH) and removal (POP) occur strictly at one end called TOP.
Print-spooler job waiting lines and breadth-first traversals operate on which First-In-First-Out (FIFO) linear data structure?
Model answer · Option A
A Queue inserts incoming elements at REAR and serves/removes waiting elements strictly from FRONT in arrival order.
In E.F. Codd’s relational database terminology, a named vertical column of a table representing one property (e.g., Roll_No) is an:
Model answer · Option D
Each vertical column of a relation is an attribute drawing permissible atomic values from a defined domain.
Which SQL Data Manipulation query retrieves specified columns and filtered rows from one or more database tables?
Model answer · Option C
SELECT projects chosen attributes and applies WHERE/ORDER BY clauses without destructive schema changes.
Section B
· Short-answer questionsAttempt all five 2-mark questions.
Define Polymorphism in C++ OOP and illustrate compile-time polymorphism using function overloading.
Model answer
Polymorphism lets one function name perform distinct tasks based on context, such as area(float r) for circles and area(int l, int b) for rectangles.
Contrast a C++ Constructor and a C++ Destructor regarding invocation timing and overloading.
Model answer
Constructors run at object birth and can be overloaded with parameters, whereas a destructor (~ClassName) runs at object destruction and cannot be overloaded.
Distinguish between PUSH and POP operations on an array-backed Stack, mentioning overflow and underflow conditions.
Model answer
PUSH increments TOP to insert an item (failing on Overflow when full), whereas POP removes the TOP item (failing on Underflow when empty).
Explain the integrity role of a primary key in a relational database table.
Model answer
A primary key attribute (or minimal column set) uniquely identifies every tuple in a table and strictly forbids NULL or duplicate entries.
Differentiate SQL Data Definition Language (DDL) from Data Manipulation Language (DML) with two commands each.
Model answer
DDL commands (CREATE, ALTER, DROP) define or modify table schemas, whereas DML commands (INSERT, UPDATE, DELETE, SELECT) manage row data.
Official syllabus & blueprint sources
Syllabus scope and question-paper structure were verified against the official portals below, which remain the sole authority.