CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B

Read and download PDF of CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B designed as per the latest curriculum and examination pattern for Class 12 issued by CBSE, NCERT and KVS. The latest Class 12 Computer Science Sample Papers have been provided with solutions so that the students can solve these practice papers and then compare their answers. This will help them to identify mistakes and improvement areas in Computer Science Class 12 which they need to study more to get better marks in Class 12 exams. After solving these guess papers also refer to solved Class 12 Computer Science Question Papers available on our website to build strong understanding of the subject

Sample Paper for Class 12 Computer Science Pdf

Students can refer to the below Class 12 Computer Science Sample Paper designed to help students understand the pattern of questions that will be asked in Class 12 exams. Please download CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B

Computer Science Class 12 Sample Paper

 

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. 

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 : 

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 : 

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

}

(f) Look at the following C++ code and find the possible output(s) from the options (i) to (iv) following it. Also, write the maximum and the minimum values that can be assigned to the variable CHANGER. 

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

• The function random(n) generates an integer between 0 and n – 1

• void main()

{

randomize();

int CHANGER;

CHANGER=random(3);

char CITY[][25]={“DELHI”,”MUMBAI”,”KOLKATA”,”CHENNAI”};

for(int I=0;I<=CHANGER;I++)

{

for(int J=0;J<=I;J++) cout<<CITY[J]; cout<<endl; } }

 

Please click the link below to download CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B

CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B

We hope you liked the above provided CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B. To get an understanding of the type of questions which were asked in exams, it is important for Class 12 students to understand the way sample Paper are set by teachers. Students can download the Sample Paper for Class 12 Computer Science which will be coming in the exams so that you can practise them and solve all types of questions that can be asked in exams. By doing CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B you will understand the regular questions and MCQ questions for Class 12 Computer Science which are always asked. You can download CBSE Class 12 Computer Science Sample Paper and Class 12 Computer Science Question Papers in PDF. You should attempt all the last year question paper for Class 12 and Class 12 Computer Science MCQ Test in examination conditions at home and then compare their answers with the solutions provided by our teachers.

Where can I download CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B in Pdf

You can download CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B from StudiesToday.com

How can I improve my scores by solving CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B

Regular practice of sample question paper given on studiestoday for CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B can help you to score better marks in exams

Are there any websites that offer free CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B

Yes, studiestoday.com provides all latest CBSE Class 12 Computer Science Sample Papers with answers based on the latest format issued for current academic session

Are mock CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B available in multiple languages

Yes, mock CBSE Class 12 Computer Science Sample Paper 2018 Solved Set B are available in multiple languages, including English, Hindi