CBSE Class 12 Computer Science Sample Paper 2014 Set B

Read and download PDF of CBSE Class 12 Computer Science Sample Paper 2014 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 2014 Set B

Computer Science Class 12 Sample Paper

 

1. (a) What is the difference between Global Variable and Local Variable? Also, give a suitable C++ code to illustrate both. 

(b) Which C++ header file(s) will be essentially required to be included to run execute the following C++ code: 

void main()

{

char Msg[ ]="Sunset Gardens";

for (int I=5;I<strlen(Msg);I++)

puts(Msg);

}

(c) Rewrite the following program after removing the syntactical errors (if any).

Underline each correction. 

#include [iostream.h]

class MEMBER

{

int Mno;float Fees;

PUBLIC:

void Register(){cin>>Mno>>Fees;}

void Display{cout<<Mno<<" : "<<Fees<<endl;}

};

void main()

{

MEMBER M;

Register();

M.Display();

}

(d) Find the output of the following program: 

#include <iostream.h>

struct GAME

{ int Score, Bonus;};

void Play(GAME &g, int N=10)

{

g.Score++;g.Bonus+=N;

}

void main()

{

GAME G={110,50};

Play(G,10);

cout<<G.Score<<":"<<G.Bonus<<endl;

Play(G);

cout<<G.Score<<":"<<G.Bonus<<endl;

Play(G,15);

cout<<G.Score<<":"<<G.Bonus<<endl;

}

(e) Find the output of the following program: 

#include <iostream.h>

void Secret(char Str[ ])

{

for (int L=0;Str[L]!='\0';L++);

for (int C=0;C<L/2;C++)

if (Str[C]=='A' || Str[C]=='E')

Str[C]='#';

else

{

char Temp=Str[C];

Str[C]=Str[L-C-1];

Str[L-C-1]=Temp;

}

}

void main()

{

char Message[ ]="ArabSagar";

Secret(Message);

cout<<Message<<endl;

}

(f) In the following program, if the value of Guess entered by the user is 65, what will be the expected output(s) from the following options (i), (ii), (iii) and (iv)? 

#include <iostream.h>

#include <stdlib.h>

void main()

{

int Guess;

randomize();

cin>>Guess;

for (int I=1;I<=4;I++)

{

New=Guess+random(I);

cout<<(char)New;

}

}

(i) ABBC

(ii) ACBA

(iii) BCDA

(iv) CABD

2. (a) What do you understand by Data Encapsulation and Data Hiding? Also, give a suitable C++ code to illustrate both. 

(b) Answer the questions (i) and (ii) after going through the following class: 

class Seminar

{

int Time;

public:

Seminar() //Function 1

{

Time=30;cout<<"Seminar starts now"<<end1;

}

void Lecture() //Function 2

{

cout<<"Lectures in the seminar on"<<end1;

}

Seminar(int Duration) //Function 3

{

Time=Duration;cout<<"Seminar starts now"<<end1;

}

~Seminar()

//Function 4

{

cout<<"Vote of thanks"<<end1;

}

};

i) In Object Oriented Programming, what is Function 4 referred as and when does it get invoked/called?

ii) In Object Oriented Programming, which concept is illustrated by Function 1 and Function 3 together? Write an example illustrating the calls for these functions.



Please click the link below to download full pdf file for CBSE Class 12 Computer Science Sample Paper 2014 Set B

CBSE Class 12 Computer Science Sample Paper 2014 Set B

We hope you liked the above provided CBSE Class 12 Computer Science Sample Paper 2014 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 2014 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 2014 Set B in Pdf

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

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

Regular practice of sample question paper given on studiestoday for CBSE Class 12 Computer Science Sample Paper 2014 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 2014 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 2014 Set B available in multiple languages

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