SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
No. of Printed Page : 1                                                                      SET-5
 BACHELOR IN COMPUTER APPLICATIONS (BCA Revised)
              Term-End Practical Examination
                       June, 2011            00664
  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 "Mark-list" that stores the marks of 10 students in an 40
     array. The class has two data members - subject, array of student marks. Create three
     such objects one for Physics, second for Chemistry and the third for Mathematics. The
     class should have functions to find the topper in a subject and to find the average class
     marks in a subject. Demonstrate the use of these functions.

2.   Consider the following class hierarchy along with suggested data members of the 40
     classes :
                        Worker
                                  Worker ID
                                  Name
                                  Rate of payment/ day
                                  Number of days worked
                       Supervisor
                                  Area of supervision



                       Chief Supervisor
                                         Bonus
     A supervisor have many workers working under him/her. The supervisor is given a
     specific area for supervision like North area, South area etc. The chief supervisor is
     given a special bonus. Design and implement the classes in the hierarchy given above
     using C++. You may add more data members in the classes. You must include at least
     one constructor in each class. Also implement a function PrintDetails( ) in all the
     classes. This function prints all the details of object of that class. You should demonstrate
     polymorphism using this PrintDetails( ) function and appropriate main( ) function.

CS-72P/S5                                         1                                              1,000

Weitere ähnliche Inhalte

Andere mochten auch

Formato tabla
Formato tablaFormato tabla
Formato tablaSakinami
 
販書偶記
販書偶記販書偶記
販書偶記maolins
 
Philanthropy and the youth of america
Philanthropy and the youth of americaPhilanthropy and the youth of america
Philanthropy and the youth of americawischera
 
Fraction scenario
Fraction scenarioFraction scenario
Fraction scenariomajapamaya
 
Welcome to english class
Welcome to english classWelcome to english class
Welcome to english classRizna Yusmalia
 
VOY A SER PADRE
VOY A SER PADREVOY A SER PADRE
VOY A SER PADREchami
 

Andere mochten auch (9)

Fpm 2
Fpm 2Fpm 2
Fpm 2
 
Formato tabla
Formato tablaFormato tabla
Formato tabla
 
Warm up
Warm upWarm up
Warm up
 
販書偶記
販書偶記販書偶記
販書偶記
 
Philanthropy and the youth of america
Philanthropy and the youth of americaPhilanthropy and the youth of america
Philanthropy and the youth of america
 
Fraction scenario
Fraction scenarioFraction scenario
Fraction scenario
 
Welcome to english class
Welcome to english classWelcome to english class
Welcome to english class
 
VOY A SER PADRE
VOY A SER PADREVOY A SER PADRE
VOY A SER PADRE
 
That's History Newsletter - February
That's History Newsletter - FebruaryThat's History Newsletter - February
That's History Newsletter - February
 

Ähnlich wie Cs 72 (p)s5

SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSnikshaikh786
 
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
 
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
 
CMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECTCMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECTHamesKellor
 
Comp 220 ilab 6 of 7
Comp 220 ilab 6 of 7Comp 220 ilab 6 of 7
Comp 220 ilab 6 of 7ashhadiqbal
 
Functionalities to be coded and estimated complexity Manager
Functionalities to be coded and estimated complexity Manager Functionalities to be coded and estimated complexity Manager
Functionalities to be coded and estimated complexity Manager SusanaFurman449
 
Cis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classCis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classsdjdskjd9097
 
Cis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablesCis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablesccis224477
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classccis224477
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classcis247
 
Cis247 i lab 3 overloaded methods and static methods variables
Cis247 i lab 3 overloaded methods and static methods variablesCis247 i lab 3 overloaded methods and static methods variables
Cis247 i lab 3 overloaded methods and static methods variablessdjdskjd9097
 
Bca2030 object oriented programming – c++
Bca2030   object oriented programming – c++Bca2030   object oriented programming – c++
Bca2030 object oriented programming – c++smumbahelp
 
Cis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classCis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classsdjdskjd9097
 

Ähnlich wie Cs 72 (p)s5 (20)

Cs 72 (p)s4
Cs 72 (p)s4Cs 72 (p)s4
Cs 72 (p)s4
 
Cs 72 (p)s1
Cs 72 (p)s1Cs 72 (p)s1
Cs 72 (p)s1
 
Cs 72 (p)s2
Cs 72 (p)s2Cs 72 (p)s2
Cs 72 (p)s2
 
SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUS
 
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
 
3rd sem
3rd sem3rd sem
3rd sem
 
3rd sem
3rd sem3rd sem
3rd sem
 
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
 
CMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECTCMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECT
 
Comp 220 ilab 6 of 7
Comp 220 ilab 6 of 7Comp 220 ilab 6 of 7
Comp 220 ilab 6 of 7
 
Softwareproject planning
Softwareproject planningSoftwareproject planning
Softwareproject planning
 
Functionalities to be coded and estimated complexity Manager
Functionalities to be coded and estimated complexity Manager Functionalities to be coded and estimated complexity Manager
Functionalities to be coded and estimated complexity Manager
 
Cis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classCis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee class
 
Cis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablesCis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variables
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee class
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee class
 
Cis247 i lab 3 overloaded methods and static methods variables
Cis247 i lab 3 overloaded methods and static methods variablesCis247 i lab 3 overloaded methods and static methods variables
Cis247 i lab 3 overloaded methods and static methods variables
 
Bca2030 object oriented programming – c++
Bca2030   object oriented programming – c++Bca2030   object oriented programming – c++
Bca2030 object oriented programming – c++
 
Chapter 01.PPT
Chapter 01.PPTChapter 01.PPT
Chapter 01.PPT
 
Cis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classCis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee class
 

Mehr von 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)s5

  • 1. No. of Printed Page : 1 SET-5 BACHELOR IN COMPUTER APPLICATIONS (BCA Revised) Term-End Practical Examination June, 2011 00664 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 "Mark-list" that stores the marks of 10 students in an 40 array. The class has two data members - subject, array of student marks. Create three such objects one for Physics, second for Chemistry and the third for Mathematics. The class should have functions to find the topper in a subject and to find the average class marks in a subject. Demonstrate the use of these functions. 2. Consider the following class hierarchy along with suggested data members of the 40 classes : Worker Worker ID Name Rate of payment/ day Number of days worked Supervisor Area of supervision Chief Supervisor Bonus A supervisor have many workers working under him/her. The supervisor is given a specific area for supervision like North area, South area etc. The chief supervisor is given a special bonus. Design and implement the classes in the hierarchy given above using C++. You may add more data members in the classes. You must include at least one constructor in each class. Also implement a function PrintDetails( ) in all the classes. This function prints all the details of object of that class. You should demonstrate polymorphism using this PrintDetails( ) function and appropriate main( ) function. CS-72P/S5 1 1,000