CBSE Class 12 Computer Science Sample Paper 2014 Set E

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

Computer Science Class 12 Sample Paper

 

a) What is the difference between Auto variables and Static variables? Give an example to illustrate the same. 

b) Name the header files for the following functions 

(1) cgets

(2) floor

(3) isalpha

(4) gets

c)In the following C++ program what is expected value of myscore from options (i) to (iv) given below. 

#include<stdlib.h>

#include<iostream.h>

void main( )

{

randomize( );

int score[]={ 25, 20,34,56, 72, 63};

int myscore=score[2+random(2)];

cout<<myscore<<endl;

}

i) 25 ii) 34 iii) 20 iv) None of these

d)Give the output of thefollowing program (Assuming all required header files are included in the program )

void swap(char &c1,char &c2)

{

char temp;

temp=c1;

c1=c2;

c2=temp;

}

void update(char *str)

{ int k,j,l1,l2;

l1 = (strlen(str)+1)/2;

l2=strlen(str);

for(k=0,j=l1-1;k<j;k++,j--)

{

if(islower(str[k]))

swap(str[k],str[j]);

}

for(k=l1,j=l2-1;k<j;k++,j--)

{

if(isupper(str[k]))

swap(str[k],str[j]);

}

}

void main()

{

char data[100]={"gOoDLUck"};

cout<<"Original Data : "<<data<<endl;

update(data);

cout<<"Updated Data "<<data;

}

e) Give the output of the following program segment : 

void main()

{ int x[] = { 11,22, 33, 55, 112};

int *p = x ;

while(*p<110)

{ if(*p%3 !=0)

*p=*p+1 ;

else

*p=*p+2 ;

P++ ;

}

for( int i=4 ;i>=1 ;i--)

{ cout<<x[i]<< ‘*’ ;

if(i%3= =0 )

cout<<endl ;

} cout<<x[0]*3<<endl ;

}

Q-2 a. Define Multilevel and Multiple Inheritance with example . 

b. Define a class ELECTION in C++ with the following descriptions: 

Write a suitable main ( ) function also to declare 3 objects of ELECTION type and find the winner and display the details .

Private members :

Data : candidate_name , party , vote_received

Public members :

Functions : Enterdetails ( ) – To input data

Display ( ) – To display the details of the winner

Winner ( ) – To return the details of the winner trough the object after

comparing the votes received by three candidates .

d. Answer the questions (i) to (iv) based on the following code :

class RED 4

{

char n [ 20 ];

void input ( );

protected :

int x , y ;

void read ( );

public :

RED ( );

RED ( int a );

void get_red ( );

void put_red ( );

};

class WHITE : protected RED

{

void a , b ;

protected :

int c , d ;

void get_white( );

public:

WHITE ( );

Void put_white ( );

};

class BLACK : private WHITE

{

void * p ;

char st[20];

protected :

int q;

void get_black( );

public:

BLACK ( );

void put_black ( );

}ob;

a. Name the data members and functions which are accessible by the objects of class BLACK.

b. Give the size of object ob

c. Name the OOPS concept implemented above and its type .

d. Name the members accessible by function get_black( );

3. a) Write a function in C++ to delete a name from a list of names. 

b) An array A[13][14] is stored in the memory along the column with each element occupying 4 bytes. Find out the Base address and address of the element A[3][7] if the element A[4][4] is stored at the address 1300. 

c) Consider the following portion of a program , which implements names queue for Books . Write the definition of function Insert(), to insert a new node in the queue with required information . 

struct Book

{

char names[4][20];

};

class QueueofBooks

{

Book Q[10];

public :

int front ,rear;

QueueofBooks()

{

front=rear=-1; 

}


Please click the link below to Download Full Pdf file for CBSE Class 12 Computer Science Sample Paper 2014 Set E

CBSE Class 12 Computer Science Sample Paper 2014 Set E

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

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

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

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

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 E available in multiple languages

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