Read and download PDF of CBSE Class 12 Computer Science Sample Paper 2014 Set G 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 G
Computer Science Class 12 Sample Paper
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
CBSE Class 12 Computer Science Sample Paper 2023 Set A |
CBSE Class 12 Computer Science Sample Paper 2023 Solved |
CBSE Class 12 Computer Science Boards 2021 Sample Paper Solved |
CBSE Class 12 Computer Science Sample Paper 2021 Set A |
CBSE Class 12 Computer Science Sample Paper 2021 Set C Solved |
CBSE Class 12 Computer Science Sample Paper 2014 Set G
We hope you liked the above provided CBSE Class 12 Computer Science Sample Paper 2014 Set G. 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 G 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.
You can download CBSE Class 12 Computer Science Sample Paper 2014 Set G from StudiesToday.com
Regular practice of sample question paper given on studiestoday for CBSE Class 12 Computer Science Sample Paper 2014 Set G can help you to score better marks in exams
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
Yes, mock CBSE Class 12 Computer Science Sample Paper 2014 Set G are available in multiple languages, including English, Hindi