CBSE Class 12 Computer Science (C++) 2018 Previous Year Question Paper Set-4
This is the CBSE Class 12 Computer Science (C++) 2018 Main Exams Previous Year Question Paper, Set-4. The paper is designed for students to practice and prepare for their board examinations. It contains a total of 7 questions and is allocated a maximum of 70 marks, with a time limit of 3 hours. The question paper is divided into three sections: Section A (C++), Section B (Python), and Section C (compulsory for all). Candidates must choose to answer either Section A or Section B. Solving this previous year paper will help students understand the exam pattern, question types, and marking scheme, thereby improving their confidence and performance in the upcoming board exams.
Quick info
| Board | CBSE |
|---|---|
| Class | 12 |
| Subject | Computer Science (C++) |
| Session | 2018 |
| Language | English |
| Type | Previous Year Question Paper |
| Exam type | Board Exam |
Paper pattern
The paper has 7 questions divided into three sections: Section A (C++), Section B (Python), and Section C (compulsory). Candidates must answer either Section A or Section B.
Topics covered
Paper topics
- C++ Tokens
- Header Files
- String Manipulation
- Object-Oriented Programming
- Data Structures
- Database Management
- Networking Concepts
- Boolean Algebra
- Programming Logic
Important topics
- C++ Tokens
- Header Files
- String Manipulation
- Object-Oriented Programming
- Classes and Objects
- Inheritance
- Polymorphism
- Data Structures
- Arrays
- Linked Lists
- Database Management
- SQL Queries
- Networking Concepts
- TCP/IP
- HTTP
- Boolean Algebra
- Logic Gates
- Combinational Circuits
- Sequential Circuits
- Programming Logic
- Algorithms
- Flowcharts
PDF preview
Read page by page below. PDF is streamed from the official NCERT website — no download button on this page.
Question paper text
SET-4
Series SGN
Code No. 91
Roll No.
Candidates must write the Code on the
title page of the answer-book.
Please check that this question paper contains 23 printed pages.
Code number given on the right hand side of the question paper should be written on the title page of the answer-book by the candidate.
- Please check that this question paper contains 7 questions.
Please write down the Serial Number of the question before attempting it.
15 minute time has been allotted to read this question paper. The question paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the students will read the question paper only and will not write any answer on the answer-book during this period.
COMPUTER SCIENCE
Time allowed: 3 hours
Maximum Marks: 70
General Instructions:
(i) SECTION A refers to programming language C++.
- SECTION B refers to programming language Python.
- SECTION C is compulsory for all.
- Answer either SECTION A or SECTION B.
- It is compulsory to mention on the page 1 in the answer book whether you are attempting SECTION A or SECTION B.
- All questions are compulsory within each section.
P.T.O. 91
SECTION A [Only for candidates, who opted for C++]
2
- (a) Write the type of C++ tokens (keywords and user defined identifiers) from the following:
- else
- Long
- 4Queue
- count
- The following C++ code during compilation reports errors as follows:
Error: 'ofstream' not declared Error: 'strupr' not declared Error: 'strcat' not declared Error: 'FIN' not declared
Write the names of the correct header files, which must be included to compile the code successfully: 1 void main() ł ofstream FIN("WISH.TXT"); char TEXT2[]="good day"; char TEXT1[]="John!"; strupr(TEXT2); strcat(TEXT1, TEXT2); FIN<<TEXT1<<endl;</pre> } 91 2
Frequently asked questions
What is this document?
This is the CBSE Class 12 Computer Science (C++) 2018 Main Exams Previous Year Question Paper, Set-4, for board exam practice.
What is the subject and class?
This question paper is for Computer Science (C++) for Class 12 students.
What is the year and set?
This is the 2018 Main Exams paper, Set-4.
How does solving previous year papers help?
Solving previous year question papers helps students understand the board pattern, question types, and improve their marks.
What is the structure of the paper?
The paper has 7 questions divided into Section A (C++), Section B (Python), and Section C (compulsory), with candidates choosing between Section A or B.
Content reviewed by the NCERT Help team. Editorial Team and update policy
Question Papers PDF on NCERT Help. URL unchanged for search indexing.