CBSE Class 12 Computer Science Question Paper 2016 Delhi

Scroll down for PDF

CBSE Class 12 Computer Science Question Paper 2016 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.

Computer Science

1. (a) Out of the following, find those identifiers, which cannot be used for naming Variable, Constants or Functions in a C++ program :  _Cost, Price*Qty, float, Switch, Address One, Delete, Number12, do

(b) Jayapriya has started learning C++ and has typed the following program. When she compiled the following code written by her, she discovered that she needs to include some header files to successfully compile and execute it. Write the names of those header files, which are required to be included in the code. 1

void main()

{

float A,Number,Outcome;

cin>>A>>Number;

Outcome=pow(A,Number);

cout<<Outcome<<endl;

}

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

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

#define Equation(p,q)=p+2*q

void main()

{

float A=3.2;B=4.1;

C=Equation(A,B);

cout<<’Output=’<<C<<endl;

}

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

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

typedef char STRING[80];

void MIXITNOW(STRING S)

{

int Size=strlen(S);

for(int I=0;I<Size–1;I+=2)

{

char WS=S[I];

S[I]=S[I+1];

S[I+1]=WS;

}

for(I=1;I<Size;I+=2)

if(S[I]>=’M’ && S[I]<=’U’)

S[I]=’@’;

}

void main()

{

STRING Word=”CRACKAJACK”;

MIXITNOW(Word);

cout<<Word<<endl;

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

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

class Stock

{

long int ID;

float Rate;

int Date;

public:

Stock(){ID=1001;Rate=200;Date=1;}

void RegCode(long int I,float R)

{

ID=I;

Rate=R;

}

void Change(int New,int DT)

{

Rate+=New;

Date=DT;

}

void Show()

{

cout<<”Date :”<<Date<<endl;

cout<<ID<<”#”<<Rate<<endl;

}

};

void main()

{

Stock A,B,C;

A.RegCode(1024,150);

B.RegCode(2015,300);

B.Change(100,29);

C.Change(–20,20);

A.Show();

B.Show();

C.Show();

Please click below link CBSE Class 12 Computer Science Question Paper 2016.

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

Registration of NEET 2020 starts

The NEET 2020 registration process would start on Monday, December 2nd, 2019. National Testing Agency, NTA would carry out the county’s undergraduate entrance exam for medical and dental admissions.  The examination is scheduled to take place in English, Hindi, and...

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

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

Error in the evaluation of answer sheets in CBSE

The education board has witnessed many events where invigilators are being suspended for allotting wrong marks to the students.  This has affected students mainly of classes X and XII in the 2019 CBSE Board Exams. The central board of secondary education has taken...

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 Circular Aryabhatta Ganit Challenge

For students with a keen interest in mathematics are now provided with a better opportunity to explore their knowledge. CBSE has announced to conduct an exam for the purpose of generating interest in maths among students. It is a trial to clarify the myth that...

×
Studies Today