Go Back   2021-2022 StudyChaCha > StudyChaCha Discussion Forum > General Topics

  #1  
Old January 17th, 2014, 05:27 PM
Super Moderator
 
Join Date: Apr 2013
Default

Will you provide some previous year question papers of Computer Science of Class 12th of CBSE Board?

You need CBSE Class 12 Computer Science Sample question paper, here I am giving here;
CBSE 12th CS Question paper
Section A (C++)
Q1 (a) Differentiate between ordinary function and member functions in C++. Explain with an example. [2]
(b) Write the related library function name based upon the given information in C++.
(i) Get single character using keyboard. This function is available in stdio.h file.
(ii) To check whether given character is alpha numeric character or not. This function is available in ctype.h file. [1]
(c) Rewrite the following C++ program after removing all the syntactical errors (if any), underlining each correction. :
include
#define PI=3.14
void main( )
{ float r;a;
cout’enter any radius’;
cin>>r;
a=PI*pow(r,2);
cout ”Area=” a
}

[2]
(d) Write the output from the following C++ program code:
#include
#include
void strcon(char s[])
{
for(int i=0,l=0;s[i]!='\0';i++,l++);
for(int j=0; j {
if (isupper(s[j]))
s[j]=tolower(s[j])+2;
else if ( islower(s[j]))
s[j]=toupper(s[j])-2;
else
s[j]='@';
}
}

void main()
{
char *c="Romeo Joliet";
strcon(c);
cout"Text= "cendl;
c=c+3;
cout"New Text= "cendl;
c=c+5-2;
cout"last Text= "c
} [2]
(e) Find the output of the following C++ program:
#include
#include
#include
class Class
{
int Cno,total;
char section;
public:
Class(int no=1)
{
Cno=no;
section='A';
total=30;
}
void addmission(int c=20)
{
section++;
total+=c;
}
void ClassShow()
{
coutCno":"section":"totalendl;
}
};

void main()
{
Class C1(5),C2;
C1.addmission(25);
C1.ClassShow();
C2.addmission();
C1.addmission(30);
C2.ClassShow();
C1.ClassShow();
}
(f) Study the following C++ program and select the possible output(s) from it :
Find the maximum and minimum value of L.
#include
#include
#include
void main()
{
randomize();
char P[]="C++PROGRAM";
long L;
for(int I=0;P[I]!='R';I++)
{
L=random (sizeof(L)) +5;
coutP[L]"-";
}
}
i) R-P-O-R-
ii) P-O-R-+-
iii)O-R-A-G-
iv) A-G-R-M-
Q2(a) How encapsulation and abstraction are implemented in C++ language? Explain with an example. [2]
(b) Answer the questions (i) and (ii) after going through the following C++ class:
class Stream
{
int StreamCode ; char Streamname[20];float fees;
public:
Stream( ) //Function 1
{StreamCode=1; strcpy (Streamname,"DELHI"); fees=1000;}

void display(float C) //Function 2
{
coutStreamCode":"Streamname":"feesendl;
}

~Stream( ) //Function 3
{
cout"End of Stream Object"endl;
}
Stream (int SC,char S[ ],float F) ; //Function 4
};

i) In Object Oriented Programming, what are Function 1 and Function 4 combined together referred as? Write the definition of function 4.
ii) What is the difference between the following statements?
Stream S(11,”Science”,8700);
Stream S=Stream(11,”Science”,8700);
(c) Define a class Customer with the following specifications.
Private Members :
Customer_no integer
Customer_name char (20)
Qty integer
Price, TotalPrice, Discount, Netprice float
Member Functions:
Public members:
* A constructer to assign initial values of Customer_no as 111,Customer_name as “Leena”, Quantity as 0 and Price, Discount and Netprice as 0.
* Input( ) – to read data members(Customer_no, Customer_name, Quantity and Price) call Caldiscount().
* Caldiscount ( ) – To calculate Discount according to TotalPrice and NetPrice
TotalPrice = Price*Qty
TotalPrice >=50000 – Discount 25% of TotalPrice
TotalPrice >=25000 and TotalPrice <50000 - Discount 15% of TotalPrice
TotalPrice <250000 - Discount 10% of TotalPrice
Netprice= TotalPrice-Discount
*Show( ) – to display Customer details. [4]
(d) Answer the questions (i) to (iv) based on the following code:
class AC
{
char Model[10];
char Date_of_purchase[10];
char Company[20];
public( );
AC( );
void entercardetail( );
void showcardetail( );
};

class Accessories : protected AC
{
protected:
char Stabilizer[30];
char AC_cover[20];
public:
float Price;
Accessories( );
void enteraccessoriesdetails( );
void showaccessoriesdetails( );
};

class Dealer : public Accessories
{
int No_of_dealers;
char dealers_name[20];
int No_of_products;
public:
Dealer( );
void enterdetails( );
void showdetails( );
};
(i) How many bytes will be required by an object of class Dealer and class Accessories?
(ii) Which type of inheritance is illustrated in the above c++ code? Write the base class and derived class name of class Accessories.
(ii) Write names of all the members which are accessible from the objects of class Dealer.
(iv) Write names of all the members accessible from member functions of class Dealer. [4]
Q3(a) An array T[-1..35][-2..15] is stored in the memory along the row with each element occupying 4 bytes. Find out the base address and address of element T[20][5], if an element T[2][2] is stored at the memory location 3000. Find the total number of elements stored in T and number of bytes allocated to T [3]
(b) Write a function SORTSCORE() in C++ to sort an array of structure IPL in descending order of score using selection sort .
Note : Assume the following definition of structure IPL.
struct IPL
{
int Score;
char Teamname[20];
};
[3]
(c) Write member functions to perform POP and PUSH operations in a dynamically allocated stack containing the objects of the following structure:
struct Game
{
char Gamename[30];
int numofplayer;
Game *next;
};
[4]
(d) Write a function in C++ to print the sum of all the non-negative elements present on both the diagonal of a two dimensional array passed as the argument to the function. [2]
(e) Evaluate the following postfix expression. Show the status of stack after execution of each operation separately:
2,13, + , 5, -,6,3,/,5,*,< [2]
Q4(a) Write the command to place the file pointer at the 10th and 4th record starting position using seekp() or seekg() command. File object is ‘file’ and record name is ‘STUDENT’. [1]
(b) Write a function in C++ to count and display the no of three letter words in the file

Last edited by GaganD; June 29th, 2019 at 04:18 PM.
Reply With Quote
Other Discussions related to this topic
Thread
How to get previous year Papers of CBSE Class 12th
CBSE 12th Class Previous Year Question paper
CBSE Board XII Commerce Previous year Question Papers
Previous years question papers of class 12th CBSE of Chemistry
CBSE class 12th Business Studies Question papers of last year
CBSE 12th Board last year Solved Question Papers
CBSE Board Previous year Question papers
CBSE Board 12th Previous year Question Papers
Economics 12th class previous year question papers CBSE
Previous year Question Papers of Chemistry of 12th of CBSE Board
Previous year Question Papers of Physics of 12th of CBSE Board
Previous year question papers of CBSE 12th class
Last year solved question papers of Maths for CBSE 12th board
Last year solved question papers of Chemistry for CBSE 12th board
Last year solved question papers of Physics for CBSE 12th board
Last year solved question papers of English for CBSE 12th board
Previous years question papers of class 12th CBSE of English
Previous years question papers of class 12th CBSE of Physics
Previous years question papers of class 12th CBSE of Maths
CBSE Class 12 Previous Year Question Papers






  #2  
Old January 17th, 2014, 06:31 PM
Sashwat's Avatar
Super Moderator
 
Join Date: Jun 2011
Default Re: CBSE 12th previous year question papers

AS you want to get the previous year question papers of Computer Science of Class 12th of CBSE Board, so here I am providing the following question papers:

CBSE Computer Science Question Paper Class 12th 2011
Q. What is the difference between Local Variable and Global Variable?
Also, give a suitable C++ code to illustrate both.

Q. Differentiate between members, which are present within the private visibility
mode with those which are present within the public visibility modes.

Q. Define a class Candidate in C++ with following description: 4
Private Members
A data member RNo (Registration Number) of type long
A data member Name of type string
A data member Score of type float
A data member Remarks of type string
A member function AssignRem( ) to assign Remarks as per the Score
obtained by a candidate. Score range and the respective Remarks are
shown as follows:
Score Remarks
>=50 Selected
less than 50 Not selected

Public Members
A function ENTERS ( ) to allow user to enter values for RNo, Name,
Score & call function Assign Rem( ) to assign the remarks.

A function DISPLAY ( ) to allow user to view the content of all the data
Members.

To get full paper, download the file…….
Attached Files Available for Download
File Type: pdf CBSE Computer Science Question Paper Class 12th.pdf (249.1 KB, 46 views)
File Type: pdf CBSE Computer Science Question Paper Class 12th 1.pdf (398.8 KB, 98 views)
__________________
Answered By StudyChaCha Member
Reply With Quote
  #3  
Old June 1st, 2015, 11:53 AM
Unregistered
Guest
 
Default Re: CBSE 12th previous year question papers

I need CBSE Class 12 Computer Science Sample question paper, how can I get that, will you please provide here???
Reply With Quote
Reply


Reply to this Question / Ask Another Question
Your Username: Click here to log in

Message:
Options



All times are GMT +6.5. The time now is 01:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2

1 2 3 4 5 6 7 8