CBSE Class 12 Computer Science Sample Paper 2017

CBSE Class 12 Computer Science sample paper for CBSE board exam 2017 is available here. With this article, students can download the complete PDF of the sample paper. All the questions of this sample paper are important for coming CBSE Class 12 Computer Science board exam 2017.

Created On: Mar 21, 2017 11:00 IST
Modified On: Mar 21, 2017 15:19 IST

CBSE Class 12 Computer Science Sample Paper 2017

Download CBSE Sample Paper PDF for Class 12 Computer Science board exam 2017. All the questions of this Sample Paper are very important for coming Class 12 Computer Science board exam 2017.

About CBSE Sample Paper for Class 12th Computer Science

This Sample Paper is based on latest CBSE syllabus and the format of the question paper is almost similar to per latest CBSE Sample Paper issued by the board. This 70 marks paper is to be solved within 3 hours of duration.

Some randomly selected questions from this sample paper

Q. What is the difference between Implicit & Explicit type casting? Give suitable examples to support your answer.

CBSE Class 12 Computer Science Syllabus 2017

Q. Name the header file(s) that shall be needed for successful compilation of the following C++ code:

void main( )

{ clrscr();

char name[20];



cout<<”String matched!!!”;


cout<<”Not matching!!!”;


Class 12 Computer Science Sample Paper by CBSE

Q. Rewrite the following program after removing the syntactical error(s), if any. Underline each correction.

#include <iostream.h>

class InService

{ intgroup_no;


void get_info(){cin>>group_no;}

void disp_info{cout<<group_no;}}

void main()

{ InServiceI;



Q. Find the output of the following program assuming all necessary header files are included:

void Encoding(char E[])

{ for (inti=strlen(E);i>=0;i-=2)

if (E[i]==’A’ || E[i]==’E’)


else if (isupper(E[i]))


else E[i]=’%’; }

void main()

{char line[]=”VidYa BAl BHaWaN”;//The two

words in the string

//line are separated by single space




Q. Find the output of the following program-


class student





cout<<”\n Computer Science“;




cout<<” subject”;



void main()


cout<<“is my favourite”;


Q. Study the following program and select the possible output from it. Also find the maximum & minimum value of count




void main( )

{ randomize( );






(i) 70*71*

(ii) 71*70*

(iii) 73*72*71*70*

(iv) 70*71*72*

Q. Observe the program segment given below carefully, and answer the question that follows:

class Candidate


long CId;                    //Candidate’s Id

char CName [20] ;    //Candidate’s Name

float Score;              //Candidate’s Score


void Enroll ( );

void Disp ( ) ;

void MarksScore ( ); //Function to change


longR_CId () {return CId;)

} ;

void ScoreUpdate (long Id)


fstream File; (“Candi.DAT”,ios::binary|ios::in|ios::out);


int Record = 0, Found = 0 ;

while (!Found &&*) &C, sizeof(C)))


if(Id ==C.R_CId ( ))


cout<<”Enter new Score” ;

C.MarksScore ( );

______________ / / Statement 1

______________ / /Statement 2

Found = 1;


Record ++;


if (Found ==1) cout<<”Record Updated”;

File.close ( ) ;


Write the Statement1 to position the File Pointer at the beginning of the Record forwhich the Candidate’s ld matches with the argument passed, and Statement2 to write the updated

Record at that position.

(b) Write a function that calculate the average word size in a text file “CONSOLIDATE.TXT” where each word is separated by a single space.

(c) Write a function in C++ to search for anOrder

No from a binary file “Order.DAT”, assuming

the binary file is containing the objects of the

following class. 3

class ORDER



char Member_type[20];


intRet_Ord_no(){return Order_no;}

void get_val(){cin>>Order_no;gets(Member_


void disp_val(){cout<<Order_no<<Member_

type<<endl;} };

Download CBSE Class 12 Computer Science Sample Paper 2017

Jagran Play
रोमांचक गेम्स खेलें और जीतें एक लाख रुपए तक कैश
ludo_expresssnakes_ladderLudo miniCricket smash
ludo_expresssnakes_ladderLudo miniCricket smash
Comment (0)

Post Comment

7 + 7 =
Disclaimer: Comments will be moderated by Jagranjosh editorial team. Comments that are abusive, personal, incendiary or irrelevant will not be published. Please use a genuine email ID and provide your name, to avoid rejection.