SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
No. of Printed Page : 1                                                                  SET-8
 BACHELOR IN COMPUTER APPLICATIONS (BCA Revised)
              Term-End Practical Examination
                                             00356
                       June, 2011
  CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING
Time allowed : 2 hours                                                   Maximum Marks : 100
                                                                            (VVeightage : 15%)
General Instructions :
(i) There are two compulsory questions in this paper of 40 marks each. Rest 20 marks
      are for the viva-voce.
(ii) You must write the appropriate main( ) function and test your programs.
(iii) Write/ Print the programs, input and results on your answer-script.
(iv) Make and state suitable assumptions, if any.

1.   Design and implement a class "line-segment" using C++. The class stores the information    40
     of the two end points of the line segments using x and y dimensions. The class should
     have a constructor and a function that calculates the length of the line segment. Also
     implement the appropriate main( ) function to demonstrate the constructor and other
     function of the class.


2.    Consider the following hierarchy along with suggested data members of classes :           40
                                 Programme
                                                • Programme Code
                                                • Programme Name
                                                • Duration
                                                • Fee per Semester


      Face to Face Programme                  Distance Learning Programme
                  • Department                              • Number of study centers
                  • Number of classrooms
      Design and implement the classes in the hierarchy using C++. You may add more data
      members in the classes, if needed. You may include at least one constructor in classes,
      if required. Also implement a function print-programme-info( ) that prints the details
      of the related object. You should demonstrate polymorphism using the
      print-programme-info( ) and appropriate main( ) function.




CS-72P/ S8                                      1                                           1,000

Más contenido relacionado

Similar a Cs 72 (p)s8

1 Project 2 Introduction - the SeaPort Project seri.docx
1  Project 2 Introduction - the SeaPort Project seri.docx1  Project 2 Introduction - the SeaPort Project seri.docx
1 Project 2 Introduction - the SeaPort Project seri.docxhoney725342
 
Doeacc revised a_level
Doeacc revised a_levelDoeacc revised a_level
Doeacc revised a_levelsujaykol88
 
22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdfPradipShinde53
 
M.tech.(cse) (regular) part i(semester i & ii)
M.tech.(cse) (regular) part i(semester i & ii)M.tech.(cse) (regular) part i(semester i & ii)
M.tech.(cse) (regular) part i(semester i & ii)Rekha Bhatia
 
SystemsProgrammingCourse FSDFFSFDSDSDSFSFS
SystemsProgrammingCourse FSDFFSFDSDSDSFSFSSystemsProgrammingCourse FSDFFSFDSDSDSFSFS
SystemsProgrammingCourse FSDFFSFDSDSDSFSFSmeharikiros2
 
Cis115 programming logic
Cis115 programming logicCis115 programming logic
Cis115 programming logicCarla Michael
 
01 introduction to cpp
01   introduction to cpp01   introduction to cpp
01 introduction to cppManzoor ALam
 
Lecture 3.2.4 C pointer to Structure.pptx
Lecture 3.2.4 C pointer to Structure.pptxLecture 3.2.4 C pointer to Structure.pptx
Lecture 3.2.4 C pointer to Structure.pptxravi2692kumar
 
Cs8383 oop lab manual-2019
Cs8383 oop lab manual-2019Cs8383 oop lab manual-2019
Cs8383 oop lab manual-2019Kayathri Devi D
 
3wis_2.pdf
3wis_2.pdf3wis_2.pdf
3wis_2.pdfaustdali
 
66781291 java-lab-manual
66781291 java-lab-manual66781291 java-lab-manual
66781291 java-lab-manualLaura Popovici
 
Object oriented programming 7 first steps in oop using c++
Object oriented programming 7 first steps in oop using  c++Object oriented programming 7 first steps in oop using  c++
Object oriented programming 7 first steps in oop using c++Vaibhav Khanna
 

Similar a Cs 72 (p)s8 (20)

3rd sem
3rd sem3rd sem
3rd sem
 
1 Project 2 Introduction - the SeaPort Project seri.docx
1  Project 2 Introduction - the SeaPort Project seri.docx1  Project 2 Introduction - the SeaPort Project seri.docx
1 Project 2 Introduction - the SeaPort Project seri.docx
 
Doeacc revised a_level
Doeacc revised a_levelDoeacc revised a_level
Doeacc revised a_level
 
3rd sem
3rd sem3rd sem
3rd sem
 
22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf
 
M.tech.(cse) (regular) part i(semester i & ii)
M.tech.(cse) (regular) part i(semester i & ii)M.tech.(cse) (regular) part i(semester i & ii)
M.tech.(cse) (regular) part i(semester i & ii)
 
SystemsProgrammingCourse FSDFFSFDSDSDSFSFS
SystemsProgrammingCourse FSDFFSFDSDSDSFSFSSystemsProgrammingCourse FSDFFSFDSDSDSFSFS
SystemsProgrammingCourse FSDFFSFDSDSDSFSFS
 
Object Oriented Programming using C++ - Part 1
Object Oriented Programming using C++ - Part 1Object Oriented Programming using C++ - Part 1
Object Oriented Programming using C++ - Part 1
 
Cis115 programming logic
Cis115 programming logicCis115 programming logic
Cis115 programming logic
 
01 introduction to cpp
01   introduction to cpp01   introduction to cpp
01 introduction to cpp
 
Oops 2018
Oops 2018Oops 2018
Oops 2018
 
Lecture 3.2.4 C pointer to Structure.pptx
Lecture 3.2.4 C pointer to Structure.pptxLecture 3.2.4 C pointer to Structure.pptx
Lecture 3.2.4 C pointer to Structure.pptx
 
Oops index
Oops indexOops index
Oops index
 
Mkkailashbio
MkkailashbioMkkailashbio
Mkkailashbio
 
Cs8383 oop lab manual-2019
Cs8383 oop lab manual-2019Cs8383 oop lab manual-2019
Cs8383 oop lab manual-2019
 
3wis_2.pdf
3wis_2.pdf3wis_2.pdf
3wis_2.pdf
 
66781291 java-lab-manual
66781291 java-lab-manual66781291 java-lab-manual
66781291 java-lab-manual
 
Vedic Calculator
Vedic CalculatorVedic Calculator
Vedic Calculator
 
Object oriented programming 7 first steps in oop using c++
Object oriented programming 7 first steps in oop using  c++Object oriented programming 7 first steps in oop using  c++
Object oriented programming 7 first steps in oop using c++
 
Mini Project- Dual Processor Computation
Mini Project- Dual Processor ComputationMini Project- Dual Processor Computation
Mini Project- Dual Processor Computation
 

Más de Web Developer (20)

Eco 2
Eco 2Eco 2
Eco 2
 
Cs 612
Cs 612Cs 612
Cs 612
 
Cs 611 (p)s4
Cs 611 (p)s4Cs 611 (p)s4
Cs 611 (p)s4
 
Cs 611 (p)s3
Cs 611 (p)s3Cs 611 (p)s3
Cs 611 (p)s3
 
Cs 611 (p)s2
Cs 611 (p)s2Cs 611 (p)s2
Cs 611 (p)s2
 
Cs 611 (p)s1
Cs 611 (p)s1Cs 611 (p)s1
Cs 611 (p)s1
 
Cs 611
Cs 611Cs 611
Cs 611
 
Cs 610
Cs 610Cs 610
Cs 610
 
Cs 601
Cs 601Cs 601
Cs 601
 
Cs 74 (p)s8
Cs 74 (p)s8Cs 74 (p)s8
Cs 74 (p)s8
 
Cs 75
Cs 75Cs 75
Cs 75
 
Cs 74 (p)s7
Cs 74 (p)s7Cs 74 (p)s7
Cs 74 (p)s7
 
Cs 74 (p)s6
Cs 74 (p)s6Cs 74 (p)s6
Cs 74 (p)s6
 
Cs 74 (p)s5
Cs 74 (p)s5Cs 74 (p)s5
Cs 74 (p)s5
 
Cs 74 (p)s4
Cs 74 (p)s4Cs 74 (p)s4
Cs 74 (p)s4
 
Cs 74 (p)s3
Cs 74 (p)s3Cs 74 (p)s3
Cs 74 (p)s3
 
Cs 74 (p)s2
Cs 74 (p)s2Cs 74 (p)s2
Cs 74 (p)s2
 
Cs 74 (p)s1
Cs 74 (p)s1Cs 74 (p)s1
Cs 74 (p)s1
 
Cs 74
Cs 74Cs 74
Cs 74
 
Cs 73
Cs 73Cs 73
Cs 73
 

Cs 72 (p)s8

  • 1. No. of Printed Page : 1 SET-8 BACHELOR IN COMPUTER APPLICATIONS (BCA Revised) Term-End Practical Examination 00356 June, 2011 CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING Time allowed : 2 hours Maximum Marks : 100 (VVeightage : 15%) General Instructions : (i) There are two compulsory questions in this paper of 40 marks each. Rest 20 marks are for the viva-voce. (ii) You must write the appropriate main( ) function and test your programs. (iii) Write/ Print the programs, input and results on your answer-script. (iv) Make and state suitable assumptions, if any. 1. Design and implement a class "line-segment" using C++. The class stores the information 40 of the two end points of the line segments using x and y dimensions. The class should have a constructor and a function that calculates the length of the line segment. Also implement the appropriate main( ) function to demonstrate the constructor and other function of the class. 2. Consider the following hierarchy along with suggested data members of classes : 40 Programme • Programme Code • Programme Name • Duration • Fee per Semester Face to Face Programme Distance Learning Programme • Department • Number of study centers • Number of classrooms Design and implement the classes in the hierarchy using C++. You may add more data members in the classes, if needed. You may include at least one constructor in classes, if required. Also implement a function print-programme-info( ) that prints the details of the related object. You should demonstrate polymorphism using the print-programme-info( ) and appropriate main( ) function. CS-72P/ S8 1 1,000