CBSE Class 12 Computer Science Question Paper 2013 (4)

CBSE Class 12 Computer Science Question Paper 2013 (4). 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) Differentiate between a Logical Error and Syntax Error. Also give suitable examples of each in C++. 

(b) Name the header file(s) that shall be needed for successful compilation of the following C++ code : 

     void main( )


         char Text[40];




(c) Rewrite the following program after removing the syntactical error(s), if any. Underline each correction. 

       #include <iostream.h>

       const int Size 5;

       void main()


          int Array[Size];

          Array = {50,40,30,20,10};

          for(Ctr=0; Ctr<Size; Ctr++)



2. (a) Differentiate between Protected and Private members of a class in context of Inheritance using C++

(b) Write a function in C++ which accepts an integer array and its arguments and replaces elements having even values with its half and elements having odd values with twice its value. 

Example : if an array of five elements initially contains the elements as

3, 4, 5, 16, 9

then the function should rearrange the content of the array as

6, 2, 10, 8, 18

(c) An array Arr[15][20] is stored in the memory along the row with each element occupying 4 bytes. Find out the Base Address and address of the element Arr[3][2], if the element Arr[5][2] is stored at the address 1500.

(d) Write a function in C++ to delete a node containing customer’s information, from a dynamically allocated Queue of Customers implemented with the help of the following structure :   

       struct Customer


            int CNo;

            char CName[20];

            Customer *Link;


(e) Write a function in C++ which accepts a 2D array of integers and its size as arguments and displays the elements of middle row and the elements of middle column. 

[Assuming the 2D Array to be a square matrix with odd dimension

i.e. 3×3, 5×5, 7×7 etc...]

Example, if the array content is

3 5 4

7 6 9

2 1 8

Output through the function should be :

Middle Row : 7 6 9

Middle Column : 5 6 1

(f) Evaluate the following postfix notation of expression : 

15 3 2 + / 7 + 2 *

Please click the link below to download pdf file of CBSE Class 12 Computer Science Question Paper 2013 (4).



Click to View or Download pdf file
Click for more Computer Science Study Material

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

CBSE Reduced Syllabus Clarification

CBSE board has issued the following clarification relating to various news reports regarding reduction in syllabus and questions from the reduced syllabus during board exams. Please read below: It has come to notice of the Board through a section of media reports that...

Cogito and The Question Book A series on Thinking skills by CBSE

The Board has dedicated this academic session 2020-21 for ‘Competency Based Learning’. Skills connected to Critical & Creative thinking, Problem Solving, Collaboration and Communication are core to successful living in the 21st Century. To focus on the importance...

FAQs CBSE Board Exam Results Class 10 and 12

FAQs CBSE Board Exam Results Class 10 and 12 Q.1. What does the term RT in the marksheet mean? Ans.The term RT means REPEAT IN THEORY. This is the term used from 2020 instead of FAIL IN THEORY(FT) Q.2. What does the term RP in the marksheet mean? Ans.The term RP means...

CBSE Decision on Board Exam 2020

The Class 10 and 12 exams are cancelled, and results for both 10th and 12th would be declared by July 15 based on internal exams. CBSE Class 12 students would have the option to appear for the exams at a later date. CBSE has a scheme in which marks scored in past 3...

CBSE Reduced Syllabus Class 9 and 10

The prevailing health emergency in the country and at different parts of the world as well as the efforts to contain the spread of Covid-19 pandemic has resulted in loss of class room teaching due to closure of schools. Therefore the CBSE Board has decided to revise...

Re verification of Class 12 Board Exams Marks

Modalities and Schedule for Senior Secondary School (Class XII) Examinations, 2020 in the subjects whose examinations have been conducted by CBSE for the processes of (I) Verification of Marks (II) Obtaining Photocopy of the Evaluated Answer Book(s) (Ill) Re-evaluation...

Studies Today