CBSE Class 12 Computer Science Sample Paper 2014 Set G

Read and download the CBSE Class 12 Computer Science Sample Paper 2014 Set G, designed by expert teachers according to the latest 2025-26 curriculum and examination pattern issued by CBSE, NCERT, and KVS. These Class 12 Computer Science sample papers include detailed step-by-step solutions, helping students to practice and evaluate their performance against the most recent marking schemes.

Solved Sample Paper for Class 12 Computer Science PDF

Our Class 12 Computer Science model papers are important for understanding the weightage of different chapters and the difficulty level of expected questions. By solving these guess papers Class 12 students can identify weak areas and improve time management. We also suggest referring to our Class 12 Computer Science Question Papers of previous years to further strengthen your exam preparation.

Class 12 Computer Science Sample Paper with Solutions

 

1. (a) Differentiate between a global variable and a local variable. Also give suitable example in C++. 

2. (b) Name the Header file(s) that shall be needed for successful compilation of the following C++ code

void main()

{

char st[20];

gets(st);

if(isaplha(st[0])

cout<<”Starts with alphabet”;

else

cout<<strlen(st);

} 1

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

Underline each correction. 

#include<iostream.h>

#define SIZE =10

void main()

{

int a[SIZE]={10,20,30,40,50};

float x=2;

SIZE=5;

for(int i=0;i<SIZE;i++)

cout<<a[i]%x;

}

(d) Find the output of the following program : 

#include<iostream.h>

#include<string.h>

struct Student

{

int rno;

char name[20];

};

void main()

{

student a[2]={1,”Amit”,}{2,”Sumit”}};

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

{

cout<<”\n Rno”<<a[i].rno;

cout<<”\n Name “;

for(int j=0;j<strlen(a[i].name);j++)

cout<<a[i].name[i]<<” “;

}

}

(e) Find the output of the following program 

#include<iostream.h>

void Modify(int &a,int b=10)

{

if(b%10==0)

a+=5;

for(int i=5;i<=a;i++)

cout<<b++<<”:”;

cout<<endl;

}

void Disp(int x)

{

if(x%3==0)

Modify(x);

else

Modify(x,3);

}

void main()

{

Disp(3);

Disp(4);

Modify(2,20);

}

(f) In the following C++ program , fill in the blanks for the statement1 with the help of random function , if the number generated by the random number is supposed to be between the range of 20-2000 

#include<iostream.h>

#include<stdlib.h>

void main()

{

int r;

randomize();

r=___________________//statement 1

cout<<r;

}

(g) Define typedef with a suitable example. 

2.(a) Differentiate between a default and a parameterized constructor in context of class and object . Give suitable example in C++. 

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

class Computer

{

char C_name[20];

char Config[100];

public:

Computer(Computer &obj); // function1

~Computer(); //function 2

};

(i) Write the statement(s) which will invoke the function 1.

(ii) Name the specific feature of the class shown by function 2. Also write the time of its invoke.

(c) Define a class Shop in C++ with the description given below : 

private members name array of 40 characters address array of 40 characters type of item array of 3X20 characters availqty array of 3 integers totalqty array of 3 integers public members init() function to ask and store the values of address ,type of items , availqty & totalqty.

purchase() function to ask the qty purchased and type of item from the user and updates the totalqty and avialqty accordingly . 

for example : if the type of items available in the shop are : “Cosmetic” , ”Food Products” , ”Medicines” . And the shop keeper purchase the “Cosmetic” item then update the availqty and totalqty ofthe“Cosmetic”item. display() function to display the details of the item in the following format :

Name : <SHOP NAME >

Address :<ADDRESS >

Items : <Type of Item 1> <Type of Item 2> <Type Of item 3>

Balance Stock : <avialqty> <availqty> <avialqty> 

 

 

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

How to download CBSE Class 12 Computer Science Sample Paper 2014 Set G in PDF?

Students can easily download the CBSE Class 12 Computer Science Sample Paper 2014 Set G from our website to prepare for their upcoming examinations. To score high marks, it is important for Class 12 students to understand the exaact pattern as per which teachers design the question papers. We strongly suggest that you practice these latest sample papers for Computer Science and solve different types of questions that are expected to come this year. You can downloadin PDF format so that you can practice offline. We also recommend that Class 12 students solve these papers actual exam conditions at home.

Why should you solve CBSE Class 12 Computer Science Sample Paper 2014 Set G?

Practicing these model papers has several benefits for Class 12 students:

  • New Question Bank: This set has fresh questions for Computer Science which are different from previous years.
  • Exam Pattern Knowledge: Solving more sets will help you to understand the weightage of each chapter in Class 12 and also the type of questions asked.
  • Identify Weak Areas: Comparing your score in each set to find out topics in Class 12 Computer Science for which you need hard work.
  • Speed and Accuracy: Attempting MCQ questions and long-form problems for Class 12 Computer Science makes you faster and better and you will be able to finish your exam on time.

What should you do after solving CBSE Class 12 Computer Science Sample Paper 2014 Set G?

  1. Check Your Work: Match your answers with the solutions given by our teachers in the Computer Science Sample Paper PDF.
  2. Learn from Mistakes: Class 12 students should focus on the questions which you solved incorrectly and understand the error.
  3. Revision: If you find a question difficult you shoul refer to NCERT book for Class 12 Computer Science to understand concepts and then try the question again.
  4. Continuous Practice: Solve multiple sets of Computer Science sample papers from studiestoday.com to build confidence before the CBSE exams.
Where can I download the PDF for CBSE Class 12 Computer Science Sample Paper 2014 Set G?

You can download the complete PDF for CBSE Class 12 Computer Science Sample Paper 2014 Set G for free from StudiesToday.com. Our resources for Class 12 Computer Science are updated for the latest academic session and follow the official exam pattern.

Are solutions provided for CBSE Class 12 Computer Science Sample Paper 2014 Set G?

Yes, CBSE Class 12 Computer Science Sample Paper 2014 Set G comes with detailed, teacher-verified solutions. We have provided step-by-step answers for Computer Science to help students of Class 12 understand correct methodology and marking scheme.

How can practicing CBSE Class 12 Computer Science Sample Paper 2014 Set G help in exam preparation?

Practicing this Computer Science paper helps in time management and identifying important topics. For Class 12, solving mock papers is the best way to gain confidence and reduce exam-day anxiety.

Is the CBSE Class 12 Computer Science Sample Paper 2014 Set G accessible on mobile and tablets?

Yes, all our study materials for Class 12 Computer Science are provided in a mobile-friendly PDF format. You can easily download CBSE Class 12 Computer Science Sample Paper 2014 Set G on your mobile device.