Jagran Josh Logo
  1. Home
  2. |  
  3. Board Exams|  

CBSE Class 12 Computer Science Sample Paper: 2018

Nov 14, 2017 11:18 IST
CBSE Sample Paper for 12th Computer Science board exam 2018
CBSE Sample Paper for 12th Computer Science board exam 2018

CBSE Sample Paper for Class 12th Computer Science board exam 2018 (along with Answer Key or Marking Scheme) is available here for download in PDF format. This Sample Paper is recently released by CBSE and is very important for CBSE Class 12th Computer Science board exam 2018.

This CBSE 12th Computer Science Sample Paper is helpful in understanding the latest examination pattern and the level of questions which can be asked in the coming CBSE class 12 Computer Science board exam 2018.

Students of Class 12th must solve this Sample Paper and refer their solutions with the Marking Scheme provided to assess their preparation level of CBSE Class 12 Computer Science board exam 2018. All the questions of this CBSE sample paper are very important for the coming CBSE board exam 2017.

CBSE Class 12 Computer Science Syllabus 2017 – 2018

Some part of CBSE Class 12 Computer Science Sample Paper: 2018 is given below:

Sample Question Paper

Subject: Computer Science

Class: XII (2017-18)

Time: 3 Hrs.                                                                                                                M.M.:70

Instructions:

(a) All questions are compulsory,

(b) Answer either Section A or Section B:

• Section A - Programming Language with C++

• Section B - Programming Language with Python

 (c) Section C is compulsory.

SECTION – A (C++)

Question 1:

(a) What is the role of a parameter/argument passed in a function? Can a default value be assigned to a parameter (Yes/No)? If yes, justify your answer with the help of a suitable example otherwise give reason.

CBSE Class 12 Sample Paper 2018: All Subjects

(b)

Raman suggests Kishan the following header files which are required to be included in the given C++ program. Identify the header files which are wrongly suggested by Raman.

Program:

void main()

{

char Grade;

cin.get (Grade):

if (isalpha(Grade))

cout.put (Grade):

}

Suggested header files:-

1. iostream.h

2. stdio.h

3. conio.h

4. ctype.h

(c)

Rewrite the following program after removing the syntactical errors (is any). Underline each correction.

Typdef int Num;

Num full = 100;

Num Calc (int X)

{

full = (X>2)?1:2

reture (full%2)

}

Void main

{

int full = 1000;

full = Calc (::full);

cout<<::full<<”::”>>full>>end1;

}

(d)

Write the output of the following C++ program code(assume all necessary header files are included in program):

void Encrypt (char *S, int key)

{

Char *Temp = S;

if (key%2 = = 0)

{

key --;

while (*Temp!= ‘\0’)

}

{

*Temp += key;

Temp += key;

}

}

void main ()

{

int Key_Set [ ] = {1, 2, 3};

char Pvt_Msg [ ] = “ Computer2017”;

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

{

Encrypt (Pvt_Msg, Key_Set [C]);

cout <<”New Encrypted Message after Pass “<<C+1<<” is :”<<Pvt_Msg;

cout<<<end1;

}

}

(e)

Write the output of the following C++ program code (assume all necessary header files are included in program):

struct Ticket

{

char Level;

int Price;

};

void Compute (Ticket &T)

{

if (T.Level ==’A’)

T.Price +=50;

else if (T.Level == ’B’)

T.Price +=30;

else if (T.Level == ’C’)

T.Price +=25;

cout <<T.Level << ”::” << T.Price << endl;

}

void main ()

{

Ticket Mon_Show [ ] = {{‘C’, 250},{‘A’, 300}, {‘B’,350}};

for (int count = 2; count >= 0; )

{

Compute (Mon_Show [count --]);

}

}

(f)

Consider the following C++ program code and choose the option(s) which are not possible as output. Also, print the minimum & maximum value of variable Pick during complete execution of the program.(assume all necessary header files are included in program):

const int Num = 5;

void main ()

{

randomize ();

int V1 – 1, V2 – 5, Pick;

while (V1 < V2)

{

Pick = random (NUM) + (V2 – V1);

cout << Pick << ”:”;

V1++;

}

}

(a) 5:6:6:6

(b) 4:7:5:3

(c) 8:6:1:2

(d) 7:5:3:1

Other questions of this section and section B are available in the PDF of the Sample Paper.

Download

CBSE Sample Paper for Class 12 Computer Science Board Exam 2018 in PDF format

Answer key (or Marking Scheme) of CBSE 12th Computer Science Sample Paper: 2018

Post Comment

Latest Videos

Register to get FREE updates

    All Fields Mandatory
  • (Ex:9123456789)
  • Please Select Your Interest
  • Please specify

  • By clicking on Submit button, you agree to our terms of use
    ajax-loader
  • A verifcation code has been sent to
    your mobile number

    Please enter the verification code below

Newsletter Signup
Follow us on
X

Register to view Complete PDF