2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
22nd July 2014, 02:58 PM
Super Moderator
 
Join Date: Apr 2013
Re: Paper for CBSE class 12th Computer Science C++

Here I am giving you question paper for CBSE board of education class 12th computer science C++ examination in a PDF file attached with it so you can get it easily.

Question-1
1. (a) Define Multilevel and Multiple Inheritance with example . [ 2 Mark]

(b) Define a class ELECTION in C++ with the following descriptions: Write a suitable main ( ) function also to declare 3 objects of ELECTION type and find the winner and display the details .[ 4 Mark]
Private members :
Data : candidate_name , party , vote_received
Public members :
Functions: Enterdetails ( ) – To input data Display ( ) – To display the details of the winner Winner ( ) – To return the details of the winner trough the object after comparing the votes received by three candidates .

(c). Answer the questions (i) to (iv) based on the following code: [ 4 Mark]
class RED
{
char n [ 20 ];
void input ( );
protected :
int x , y ;
void read ( );
public :
RED ( );
RED ( int a );
void get_red ( );
void put_red ( );
};
class WHITE : protected RED
{
void a , b ;
protected :
int c , d ;
void get_white( );
public:
WHITE ( );
Void put_white ( );
};
class BLACK : private WHITE
{
void * p ;
char st[20];
protected :
int q;
void get_black( );
public:
BLACK ( );
void put_black ( );
}ob;

i. Name the data members and functions which are accessible by the objects of class BLACK.
ii. Give the size of object ob
iii. Name the OOPS concept implemented above and its type .
iv. Name the members accessible by function get_black( );





Attached Files
File Type: pdf CBSE class 12th Computer Science C++ paper.pdf (3.77 MB, 108 views)


Quick Reply
Your Username: Click here to log in

Message:
Options




All times are GMT +5. The time now is 07:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4