CBSE Class 12 Computer Science Compartment Question Paper 2018

Scroll down for PDF

CBSE Class 12 Computer Science Compartment Question Paper 2018. Students can download the last year question papers using the link below. Free download of examination question papers with solutions. Last 10 year question papers should be practised to get better marks in examinations.


1. (a) Write the type of C++ tokens (keywords and user-defined identifiers) from the following: 

(i) Struct       (ii) return          (iii) else        (iv) stack

(b) The following C++ code during compilation reports errors as follows: 

Error: ‘ofstream’ not declared

Error: ‘strcpy’ not declared

Error: ‘strcat’ not declared

Error: ‘F’ not declared

Write the names of the correct header files, which must be included to compile the code successfully:

CBSE _Class _12 ComputerS_Question_Paper_

(c). Rewrite the following C++ code after removing any/all syntactical errors with each correction underlined. 

Note: Assume all required header files are already included in the program.

CBSE _Class _12 ComputerS_Question_Paper_1

(d). Find and write the output of the following C++ program code : 3

Note: Assume all required header files are already included in the program.

CBSE _Class _12 ComputerS_Question_Paper_2

Please click the link below to download pdf file of CBSE Class 12 Computer Science Compartment Question Paper 2018.


Click on the text For more study material for Computer Science please click here - Computer Science

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

Requirements for admissions in CBSE affiliated Schools

CBSE gives an advanced form of education. They try to indulge students in interactions and teach application based subjects along with some others. Due to this preponderance of parents, they tend to admit their children in CBSE affiliated schools. General conditions...


Central Board of Secondary Education, CBSE is to conduct the 10th and 12th Board Examination 2020 from February 15, 2020. Due to University Admissions, CBSE has shifted Board Exams dates from 1 March to February 15 from 2019. This year too CBSE would be making changes...

How to crack a competitive examination

“How I crack a competitive examination” is a frequently asked question by today’s students. Cracking a competitive exam is a challenging task. Attaining a huge amount of study and solving several complex problems in a limited amount of time is a huge task. Competitive...

JEE Entrance Exam 2020 Dates Registration Admit Cards Exam Pattern

JEE Entrance exam is conducted for students who wish to pursue engineering in different subjects or categories like mechanical, CS, etc.. It is officially organized and conducted by NTA. Formerly it was organized by CBSE. It avails seats for students in IITs, NITs, and...

CBSE examination board hike the fee for class 10th and 12th

The CBSE (Central Board Secondary Education) increased the examination fees for classes 10 and 12 of the 2020 boards, with no profit no loss principle, from Rs. 750 to Rs 1500, for all categories of students, including SC/ST candidates for all schools throughout India...

Seven Motivational tips for every student

If you’re are a student or a learner and you doesn’t feel like study then this article is going to be very important for you, Reading constantly and Staying motivated as a student is one of the most challenging tasks and barriers to educational success. Education is...

Studies Today