CBSE Class 12 Computer Science Question Paper 2014 - Outside Delhi

CBSE Class 12 Computer Science Question Paper 2014 - Outside Delhi CBSE,CCE and NCERT students can refer to the attached file. All educational material on the website has been prepared by the best teachers having more than 20 years of teaching experience in various schools. The study material available on our website for all CBSE classes and subjects have been prepared by teachers from all over the country. All study material has been carefully designed keeping into mind the latest CBSE examination trends.  

COMPUTER SCIENCE

Time allowed : 3 hours Maximum Marks : 70

Instructions :

(i) All questions are compulsory.

(ii) Programming Language : C++

1. (a) What is the difference between call by reference and call by value with respect to memory allocation ? Give a suitable example to illustrate using C++ code.

    (b) Observe the following C++ code and write the name(s) of the header file(s), which will be essentially required to run it in a C++ compiler : 1

void main()

{

char CH,STR[20];

cin>>STR;

CH=toupper(STR[0]);

cout<<STR<<starts with<<CH<<endl;

}

(c) Rewrite the following C++ code after removing all the syntax error(s), if present in the code. Make sure that you underline each correction done by you in the code. 2

Important Note :

– Assume that all the required header files are already included, which are essential to run this code.

– The corrections made by you do not change the logic of the program.

typedef char[80] STR;

void main()

{

Txt STR;

gets(Txt);

cout<<Txt[0]<<’\t<<Txt[2];

cout<<Txt<<endline;

}

(d) Obtain the output from the following C++ program as expected to appear on the screen after its execution. 2

Important Note :

- All the desired header files are already included in the code, which are required to run the code.

void main()

{

char *Text=AJANTA;

int *P, Num[]={1,5,7,9};

P=Num;

cout<<*P<<Text<<endl;

Text++;

P++;

cout<<*P<<Text<<endl;

}

(e) Obtain the output of the following C++ program, which will appear on the screen after its execution. 3

Important Note :

● All the desired header files are already included in the code, which are required to run the code.

class Game

{

int Level, Score;

char Type;

public:

Game(char GType=’P’)

{Level=1;Score=0;Type=GType;}

void Play(int GS);

void Change();

void Show()

{

cout<<Type<<”@”<<Level<<endl;

cout<<Score<<endl;

}

};


Please refer to the link below for CBSE Class 12 Computer Science Question Paper 2014 - Outside Delhi

Tags: 

 


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

Training Programme on the Alternative Academic Calendar

In view of the extraordinary situation prevailing in the world due to COVID-19 pandemic, the CBSE Board had announced the ‘Revised Academic Curriculum for classes 9- 12 for the session 2020-21’. The reduced topics will not be part of the internal assessment or for the...

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

Re verification of Class 10 Board Exams Marks

Modalities and Schedule for Secondary School (Class X) 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 of Marks...

CBSE tele counselling for board exams

The 23rd edition of post-result counselling facility will be activated by CBSE with the help of 95 volunteer principals and trained counsellors from within affiliated schools located in and outside India. While there are 73 Counsellors in India including special...

Board Cancelled Official CBSE Statement

Keeping in view the requests received from various State Governments and the changed circumstances as on date, following has been decided- 1. Examinations for classes X and XII which were scheduled from 1st July to 15th, 2020 stand cancelled. 2. Assessment of the...

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

×
Studies Today