SlideShare a Scribd company logo
No. of Printed Pages : 2                                                               SET-2
     BACHELOR IN COMPUTER APPLICATIONS (BCA)
                     Term-End Practical Examination
                                                                                   00806
                                       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 a real number as integer mantissa   40
     and exponent. For example, the number — 2.345 x 105 will be represented
     as : — 2345 x 102
       Mantissa (Integer) — 2345
                 Exponent 2
     The class should have a constructor that takes integer mantissa and exponent value to
     create the object of the real number class. The class should also include an
     overloaded x (multiply) operator; and a member function that prints the stored number
     as : "Mantissa : — 2345
     Exponent : 2 "

2.   Consider the following hierarchy along with the suggested data members of the            40
     classes :
                                                        Data members
                                                      • Customer ID
                      Telephone Customers             • Customer - Name
                                                      • Credit - Limit
                                                      • Year of becoming customer



       Cellphone Customers                       Land Line Customer
     • Mobile ID                               • Address
     • Internet use limit
CS-72P/S2                                      1                                         P.T.O.
Design and implement the classes in the hierarchy using C + + . You may add more
    data members in the classes. You should include at least one constructor in each class.
    Also include a member function print_customer_info ( ) in each class that prints all the
    information of the object of that class. You should demonstrate polymorphism using
    this print_custormer_info ( ) function and appropriate main ( ) function.




CS-72P/ S2                                     2                                               4,000

More Related Content

DOC
Ujian Feb08
PDF
Mmt 001
PDF
C L I E N T S E R V E R C O M P U T I N G J N T U M O D E L P A P E R{Www
PDF
Cs 72 (p)s1
PDF
Bio Medical Instrumentation Jntu Model Paper{Www.Studentyogi.Com}
PDF
Cs 72 (p)s8
PDF
Ujian Feb08
Mmt 001
C L I E N T S E R V E R C O M P U T I N G J N T U M O D E L P A P E R{Www
Cs 72 (p)s1
Bio Medical Instrumentation Jntu Model Paper{Www.Studentyogi.Com}
Cs 72 (p)s8

Similar to Cs 72 (p)s2 (20)

PDF
Cs 72 (p)s4
PDF
Nov 02 P1
PDF
PDF
Nov 03 P3
DOCX
Use of Classes and functions#include iostreamusing name.docx
PDF
Cs 72 (p)s5
DOC
Af7ff syllabuslablist
PDF
EEE 3rd year oops cat 3 ans
PDF
Software Engineering
PDF
Computer Science Sample Paper 2015
PDF
Write once on silicon
PDF
CBSE Question Paper Computer Science with C++ 2011
PDF
I PUC CS Lab_programs
DOCX
computer science project for class 12 on telephone billing
PDF
June 10 P31
PDF
E9
PDF
Writing Efficient Code Feb 08
PDF
Lec04-CS110 Computational Engineering
PDF
computer science sample papers 2
PPTX
Chapter 1.pptx
Cs 72 (p)s4
Nov 02 P1
Nov 03 P3
Use of Classes and functions#include iostreamusing name.docx
Cs 72 (p)s5
Af7ff syllabuslablist
EEE 3rd year oops cat 3 ans
Software Engineering
Computer Science Sample Paper 2015
Write once on silicon
CBSE Question Paper Computer Science with C++ 2011
I PUC CS Lab_programs
computer science project for class 12 on telephone billing
June 10 P31
E9
Writing Efficient Code Feb 08
Lec04-CS110 Computational Engineering
computer science sample papers 2
Chapter 1.pptx
Ad

More from Web Developer (20)

PDF
PDF
PDF
Cs 611 (p)s4
PDF
Cs 611 (p)s3
PDF
Cs 611 (p)s2
PDF
Cs 611 (p)s1
PDF
PDF
PDF
PDF
Cs 74 (p)s8
PDF
Cs 74 (p)s7
PDF
Cs 74 (p)s6
PDF
Cs 74 (p)s5
PDF
Cs 74 (p)s4
PDF
Cs 74 (p)s3
PDF
Cs 74 (p)s2
PDF
Cs 74 (p)s1
PDF
PDF
PDF
Cs 611 (p)s4
Cs 611 (p)s3
Cs 611 (p)s2
Cs 611 (p)s1
Cs 74 (p)s8
Cs 74 (p)s7
Cs 74 (p)s6
Cs 74 (p)s5
Cs 74 (p)s4
Cs 74 (p)s3
Cs 74 (p)s2
Cs 74 (p)s1
Ad

Cs 72 (p)s2

  • 1. No. of Printed Pages : 2 SET-2 BACHELOR IN COMPUTER APPLICATIONS (BCA) Term-End Practical Examination 00806 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 a real number as integer mantissa 40 and exponent. For example, the number — 2.345 x 105 will be represented as : — 2345 x 102 Mantissa (Integer) — 2345 Exponent 2 The class should have a constructor that takes integer mantissa and exponent value to create the object of the real number class. The class should also include an overloaded x (multiply) operator; and a member function that prints the stored number as : "Mantissa : — 2345 Exponent : 2 " 2. Consider the following hierarchy along with the suggested data members of the 40 classes : Data members • Customer ID Telephone Customers • Customer - Name • Credit - Limit • Year of becoming customer Cellphone Customers Land Line Customer • Mobile ID • Address • Internet use limit CS-72P/S2 1 P.T.O.
  • 2. Design and implement the classes in the hierarchy using C + + . You may add more data members in the classes. You should include at least one constructor in each class. Also include a member function print_customer_info ( ) in each class that prints all the information of the object of that class. You should demonstrate polymorphism using this print_custormer_info ( ) function and appropriate main ( ) function. CS-72P/ S2 2 4,000