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

IBM to Set AI Curriculum for CBSE Class IX to XII

The Central Board of Secondary Education has tied up with IBM to develop a course of Artificial Intelligence in the CBSE curriculum. Now CBSE is going to introduce Artificial Intelligence as an elective subject for class 9 to 12th. The CBSE has taken this decision to...

Sample Papers for Class 12 Boards 2020

CBSE has released the final sample papers for the class 12 boards exams as per the new pattern as per which the question papers are expected to come in the 2020 board exams for class 12. The sample papers have been for class 12 for all subjects along with the suggested...

CBSE DATE SHEET 2020

Central Board of Secondary Education, CBSE is to conduct the 10th and 12th Board Examination 2020 from February 15, 2020. Due to University Admissions, CBSE has shifted Board Exams dates from 1 March to February 15 from 2019. This year too CBSE would be making changes...

Sample Papers for Class 10 Boards 2020

CBSE has recently released the Class 10 Sample Papers for Board exams which are to be held in March 2020. The sample papers have been for class 10 for all subjects along with the suggested marking scheme. CBSE releases these suggested papers every year so that the...

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 will have more practicals

CBSE board has made a bigger announcement regarding 2020 board examinations for class 12. Board has decided that subjects like humanities, History, English and Hindi will also have practical exams like Chemistry, Biology, and Physics. As per, CBSE official's statement...

×
Studies Today