CBSE Class 12 Computer Science Question Paper 2013 (4)

Scroll down for PDF

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];

         strcpy(Text,”AISSCE”);

         puts(Text);

       }

(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++)

          cout>>Array[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 size.as 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).

Tags: 


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

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...

CBSE Board Introduces Experiential Learning for Student

CBSE Academic Session 2019-20: Board Introduces Experiential Learning for Student: The education sector has grown for some new changes. As per the latest updates the Central Board of Secondary Education has been good in making all the possible efforts to improve...

CBSE Board Secretary says Class 10 and 12 CBSE Exam Pattern to be modified

The Central Board of Secondary Education is expected to introduce a few changes to the exam pattern for class 10 and board exams by 2023. Anurag Tripathi, secretary of CBSE speaking at an Assoham School Education Summit said that although this year class 10 students...

TIPS: Study habits for success

Being a student is fairly a difficult job. Alongside maintaining your curricular as well as extra-curricular activities adds more to it. Performance in academics is one of the major concerns. Every parent now tries to get their children more indulged in studies. Need...

CBSE to conduct a voluntary test for class 11th and 12th

Nowadays students have the liberty to choose the field they seem to fit in. A few years back the problem was parents who burdened children with their own choices. On the other side, now students along with their parent's support are free to choose their field. Not any...

Extension of dates by CBSE for Single Girl Child Merit (SGC) scholarship

CBSE has announced to extend dates for SGC scholarship. Previously the dates to submit the SGC scholarship form were 18 October 2019. Now dates have shifted. For online submission, the last date is 31st October. Whereas date for submission of hard copies of renewal...

×
Studies Today