NCERT Solutions Class 12 Computer Science Implementation of OOP Concepts in C++

Scroll down for PDF

NCERT Solutions Class 12 Computer Science Implementation of OOP Concepts in C++. NCERT book for Computer Science in class 12 is strongly recommened by teachers and the CBSE and NCERT boards. Please download the NCERT solutions for class 12 Computer Science free in PDF made by teachers of the best schools in India. These solutions are carefully compiled to give detailed understanding of the concepts and also steps of solutions. The NCERT solutions are free to download in pdf format. Please refer to the download link below to download the pdf file and also refer to other chapters and subjects to get the solutions to Computer Science NCERT book questions and exercises.

Chapter - Implementation of OOP Concepts in C++

Question 1: Observe the following C++ code and answer the question (i) and (ii): [Delhi, 2015]

class Traveller

{

long PNR;

char TName [20];

public :

Traveller ( ) //Function 1

{cout<<"Ready"<<endl;}

void Book (long P, char N [ ])

//Function 2

{PNR = P, strcpy (TName, N);} void print () //Function 3

{cout<<PNR << TName <<endl;} ~Traveller ( ) //Function 4

{cout<<"Booking cancelled!"<<endl;

} ;

(i) Fill in the blank statements in Line 1 and Line 2 to execute Function 2 and Function 3

respectively in the following code: void main ( )

{

Traveller T;

___________ //Line 1

___________ //Line 2

}//Stops here

Answer:

T. Book (1234567, “Ravi”);

//Line 1

T. Print ();

//Line 2

(1/2 Mark for writing each correct Function)

[ICBSE Marking Scheme 2015]

(ii) Which function will be executed at }//Stops here ? What is this function referred as ?

Function 4

OR

~ Traveller ( )

It is a destructor function.

Please click on link below to download NCERT Solutions Class 12 Computer Science Implementation of OOP Concepts in C++.

Tags: 


Click on the text For more study material for Computer Science please click here - Computer Science

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

CBSE Board Exams 2020 Attendance rules revised for Class 10 and 12 students

CBSE Board Exams 2020: Attendance rules revised for Class 10, 12 students : The Central Board of Secondary Education (CBSE) has announced new rules to deal with the cases of short attendance of students of all its affiliated schools. The board has issued a set of...

CBSE to launch 'Tamanna' aptitude test

Introduction: The poor decisive condition of students to pursue their subject of interest has been an area of concern. To the ease of which CBSE is to launch ‘Tamanna’. An aptitude test in order to provide a line of guidance to students of class 9th and 10th. What is '...

Vidya Daan by CBSE

CBSE has launched a new initiative to provide free of cost quality education to students in rural areas. CBSE has named that initiative “Vidya Daan”. Lot of reforms are been continuously done by CBSE so that the teachers can offer a personalized experience to students...

Tips for exam preparation

Students often get nervous during their exams. The reason behind this nervousness is either a lack of confidence or a lack of preparedness. To overcome these fears students are advised to do their preparation in such a way that will retain their confidence. For this...

Guidelines On Reducing Weight Of School Bags

GUIDELINES ON REDUCING WEIGHT OF SCHOOL BAGS In this competitive world, where students are giving their best, an unnoticed threat rides on our back. Heavy School Bags are a serious yet unresolved threat to the health and wellbeing of the young ones. The medium of their...

UP government schools will follow NCERT

UP government schools will follow NCERT pattern from April 2020Are you appearing for the UP exams 2020? If yes, then you have to see what major changes UP government schools have brought for 2020.The UP government is fully prepared to implement NCERT pattern for...

×
Studies Today