SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
No. of Printed Page :1                                                                         SET - 4
        BACHELOR IN COMPUTER APPLICATIONS (BCA)
                         Term-End Practical Examination                                    00796
                                            June, 2011
        CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING
Time allowed , : 2 hours                                                      Maximum Marks : 100
                                                                                 (Weightage : 15%)

General Instructions :
(i)     There are two compulsory questions in this paper of 40 marks each. Rest 20 marks
        are for 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 using C + + that stores the length and width of a rectangle. 40
        The class has a constructor and a member function that calculates the area of the
        rectangle. Also implement a overloaded minus ( - ) operator that finds the difference
        in the areas of two rectangles. Write appropriate main ( ) function that demonstrates
        all the functions of the class.

2.      Consider the following hierarchy along with suggested data members for classes :              40

                                  Educational                   Data Members
                                    Video                     • Video ID
                                                              • Video Title
                                                              • Producer
                                                              • Duration


          Lectures                                        Outdoor Video
        • Presenter                                     • Place of shooting
                                                        • Name of main actor
        Design and implement the classes related to the hierarchy given above using C + + .
        You should include at least one constructor in each class. Also implement a member
        function printvideoinfo( ) that prints all the details relating to an object of that class.
        You should demonstrate polymorphism using printvideoinfo( ) function and appropriate
        main ( ) function.



CS-72P/ S4                                          1                                             3,000

Más contenido relacionado

Similar a Cs 72 (p)s4

Python_for_Visual_Effects_and_Animation_Pipelines
Python_for_Visual_Effects_and_Animation_PipelinesPython_for_Visual_Effects_and_Animation_Pipelines
Python_for_Visual_Effects_and_Animation_PipelinesRussell Darling
 
SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSnikshaikh786
 
Advanced Production Debugging
Advanced Production DebuggingAdvanced Production Debugging
Advanced Production DebuggingTakipi
 
Write native iPhone applications using Eclipse CDT
Write native iPhone applications using Eclipse CDTWrite native iPhone applications using Eclipse CDT
Write native iPhone applications using Eclipse CDTAtit Patumvan
 
CSE202.pptx
CSE202.pptxCSE202.pptx
CSE202.pptxJoyBoy45
 
A453 programming task 1
A453 programming task 1A453 programming task 1
A453 programming task 1Tom Dale
 
Skype testing overview
Skype testing overviewSkype testing overview
Skype testing overviewQA Club Kiev
 
Skype testing overview
Skype testing overviewSkype testing overview
Skype testing overviewQA Club Kiev
 
NVIDIA 深度學習教育機構 (DLI): Approaches to object detection
NVIDIA 深度學習教育機構 (DLI): Approaches to object detectionNVIDIA 深度學習教育機構 (DLI): Approaches to object detection
NVIDIA 深度學習教育機構 (DLI): Approaches to object detectionNVIDIA Taiwan
 
01 Introduction to programming
01 Introduction to programming01 Introduction to programming
01 Introduction to programmingmaznabili
 
SystemsProgrammingCourse FSDFFSFDSDSDSFSFS
SystemsProgrammingCourse FSDFFSFDSDSDSFSFSSystemsProgrammingCourse FSDFFSFDSDSDSFSFS
SystemsProgrammingCourse FSDFFSFDSDSDSFSFSmeharikiros2
 
Bca1020 programming in c
Bca1020  programming in cBca1020  programming in c
Bca1020 programming in csmumbahelp
 

Similar a Cs 72 (p)s4 (20)

Cs 72 (p)s1
Cs 72 (p)s1Cs 72 (p)s1
Cs 72 (p)s1
 
Cs 72 (p)s8
Cs 72 (p)s8Cs 72 (p)s8
Cs 72 (p)s8
 
Cs 72 (p)s5
Cs 72 (p)s5Cs 72 (p)s5
Cs 72 (p)s5
 
Cs 72 (p)s2
Cs 72 (p)s2Cs 72 (p)s2
Cs 72 (p)s2
 
Python_for_Visual_Effects_and_Animation_Pipelines
Python_for_Visual_Effects_and_Animation_PipelinesPython_for_Visual_Effects_and_Animation_Pipelines
Python_for_Visual_Effects_and_Animation_Pipelines
 
Chapter 01.PPT
Chapter 01.PPTChapter 01.PPT
Chapter 01.PPT
 
Mini Project- Digital Video Editing
Mini Project- Digital Video EditingMini Project- Digital Video Editing
Mini Project- Digital Video Editing
 
SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUS
 
Advanced Production Debugging
Advanced Production DebuggingAdvanced Production Debugging
Advanced Production Debugging
 
Introduction to Programming Lesson 01
Introduction to Programming Lesson 01Introduction to Programming Lesson 01
Introduction to Programming Lesson 01
 
Write native iPhone applications using Eclipse CDT
Write native iPhone applications using Eclipse CDTWrite native iPhone applications using Eclipse CDT
Write native iPhone applications using Eclipse CDT
 
CSE202.pptx
CSE202.pptxCSE202.pptx
CSE202.pptx
 
Mini Project- Face Recognition
Mini Project- Face RecognitionMini Project- Face Recognition
Mini Project- Face Recognition
 
A453 programming task 1
A453 programming task 1A453 programming task 1
A453 programming task 1
 
Skype testing overview
Skype testing overviewSkype testing overview
Skype testing overview
 
Skype testing overview
Skype testing overviewSkype testing overview
Skype testing overview
 
NVIDIA 深度學習教育機構 (DLI): Approaches to object detection
NVIDIA 深度學習教育機構 (DLI): Approaches to object detectionNVIDIA 深度學習教育機構 (DLI): Approaches to object detection
NVIDIA 深度學習教育機構 (DLI): Approaches to object detection
 
01 Introduction to programming
01 Introduction to programming01 Introduction to programming
01 Introduction to programming
 
SystemsProgrammingCourse FSDFFSFDSDSDSFSFS
SystemsProgrammingCourse FSDFFSFDSDSDSFSFSSystemsProgrammingCourse FSDFFSFDSDSDSFSFS
SystemsProgrammingCourse FSDFFSFDSDSDSFSFS
 
Bca1020 programming in c
Bca1020  programming in cBca1020  programming in c
Bca1020 programming in c
 

Más de Web Developer (20)

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
Cs 72Cs 72
Cs 72
 
Cs 71
Cs 71Cs 71
Cs 71
 
Cs 70
Cs 70Cs 70
Cs 70
 
Cs 69
Cs 69Cs 69
Cs 69
 
Cs 68 (p)s4
Cs 68 (p)s4Cs 68 (p)s4
Cs 68 (p)s4
 

Cs 72 (p)s4

  • 1. No. of Printed Page :1 SET - 4 BACHELOR IN COMPUTER APPLICATIONS (BCA) Term-End Practical Examination 00796 June, 2011 CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING Time allowed , : 2 hours Maximum Marks : 100 (Weightage : 15%) General Instructions : (i) There are two compulsory questions in this paper of 40 marks each. Rest 20 marks are for 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 using C + + that stores the length and width of a rectangle. 40 The class has a constructor and a member function that calculates the area of the rectangle. Also implement a overloaded minus ( - ) operator that finds the difference in the areas of two rectangles. Write appropriate main ( ) function that demonstrates all the functions of the class. 2. Consider the following hierarchy along with suggested data members for classes : 40 Educational Data Members Video • Video ID • Video Title • Producer • Duration Lectures Outdoor Video • Presenter • Place of shooting • Name of main actor Design and implement the classes related to the hierarchy given above using C + + . You should include at least one constructor in each class. Also implement a member function printvideoinfo( ) that prints all the details relating to an object of that class. You should demonstrate polymorphism using printvideoinfo( ) function and appropriate main ( ) function. CS-72P/ S4 1 3,000