SlideShare a Scribd company logo
1 of 2
Download to read offline
No. of Printed Pages : 2                            CS-72

             BACHELOR IN COMPUTER
N
.14              APPLICATIONS
O
                  Term-End Examination
                           June, 2011
        CS-72 : C++ AND OBJECT ORIENTED
                  PROGRAMMING
Time : 2 hours                          Maximum Marks : 60
Note : Question number 1 is compulsory. Answer any three
        Questions from the rest.

1.    (a) Define a class ACCOUNT that includes 10
           following members :
           Data Members : Name of Depositor,
           Account no., Type of A/c, Balance
           Amount.
           Member functions : To assign initial values,
           deposit amount, withdraw after checking
           balance, To display name and balance.
           Write a program in C++ and test it for 10
           Customers.
      (b) Differentiate between :
                                                          10
           (i)    Procedural Programming and Object
                  Oriented Programming.
           (ii)   Data Encapsulation and Inheritance.
      (c) Explain the utility of the friend function,       5
           using an appropriate example.


CS-72                          1                     P.T.O.
(d) Explain the steps involved in drawing            5
          interaction diagram with the help of an
          example.

2.   (a) What do you mean by exception                    6
          Handling ? Write a C++ Program that
          throws an arithmetic exception whenever
          the Input number is less than zero.
     (b) What do you mean by Polymorphism ?               4
          Explain with an example.

3.   (a) How do you use scope resolution operator         5
          for accessing global variables ? Also discuss
          its other uses.
     (b) What is a Virtual Base Class ? Explain with      5
          an example.

4.   (a) What is an inline function ? Explain with        5
          an example and also discuss its limitations.
     (b) Define operator overloading. Explain its         5
          advantages.

5.   Explain the following with examples :           2x5=10
     (a) Input and Output streams
     (b) Constructor and Destructor
     (c) Abstract classes
     (d) Preprocessor directives




CS-72                        2

More Related Content

What's hot

Technical aptitude test 2 CSE
Technical aptitude test 2 CSETechnical aptitude test 2 CSE
Technical aptitude test 2 CSESujata Regoti
 
Lab 10 sem ii_12_13
Lab 10 sem ii_12_13Lab 10 sem ii_12_13
Lab 10 sem ii_12_13alish sha
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSESujata Regoti
 
CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011Deepak Singh
 
2. data, operators, io
2. data, operators, io2. data, operators, io
2. data, operators, iohtaitk
 
Data structures question paper anna university
Data structures question paper anna universityData structures question paper anna university
Data structures question paper anna universitysangeethajames07
 
C and C++ Industrial Training Jalandhar
C and C++ Industrial Training JalandharC and C++ Industrial Training Jalandhar
C and C++ Industrial Training JalandharDreamtech Labs
 
Rejuvenate Pointcut: A Tool for Pointcut Expression Recovery in Evolving Aspe...
Rejuvenate Pointcut: A Tool for Pointcut Expression Recovery in Evolving Aspe...Rejuvenate Pointcut: A Tool for Pointcut Expression Recovery in Evolving Aspe...
Rejuvenate Pointcut: A Tool for Pointcut Expression Recovery in Evolving Aspe...Raffi Khatchadourian
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomeshpraveensomesh
 
Answers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docxAnswers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docxismailaboshatra
 
2009 Punjab Technical University B.C.A Object Oriented Proagramming Language ...
2009 Punjab Technical University B.C.A Object Oriented Proagramming Language ...2009 Punjab Technical University B.C.A Object Oriented Proagramming Language ...
2009 Punjab Technical University B.C.A Object Oriented Proagramming Language ...Monica Sabharwal
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061gurbaxrawat
 
C multiple choice questions and answers pdf
C multiple choice questions and answers pdfC multiple choice questions and answers pdf
C multiple choice questions and answers pdfchoconyeuquy
 

What's hot (20)

Technical aptitude test 2 CSE
Technical aptitude test 2 CSETechnical aptitude test 2 CSE
Technical aptitude test 2 CSE
 
Lab 10 sem ii_12_13
Lab 10 sem ii_12_13Lab 10 sem ii_12_13
Lab 10 sem ii_12_13
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSE
 
CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011
 
Lab 6
Lab 6Lab 6
Lab 6
 
2. data, operators, io
2. data, operators, io2. data, operators, io
2. data, operators, io
 
L6
L6L6
L6
 
Labsheet1stud
Labsheet1studLabsheet1stud
Labsheet1stud
 
Data structures question paper anna university
Data structures question paper anna universityData structures question paper anna university
Data structures question paper anna university
 
C and C++ Industrial Training Jalandhar
C and C++ Industrial Training JalandharC and C++ Industrial Training Jalandhar
C and C++ Industrial Training Jalandhar
 
Rejuvenate Pointcut: A Tool for Pointcut Expression Recovery in Evolving Aspe...
Rejuvenate Pointcut: A Tool for Pointcut Expression Recovery in Evolving Aspe...Rejuvenate Pointcut: A Tool for Pointcut Expression Recovery in Evolving Aspe...
Rejuvenate Pointcut: A Tool for Pointcut Expression Recovery in Evolving Aspe...
 
C MCQ
C MCQC MCQ
C MCQ
 
Introduction To C
Introduction To CIntroduction To C
Introduction To C
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 
I PUC CS Lab_programs
I PUC CS Lab_programsI PUC CS Lab_programs
I PUC CS Lab_programs
 
Answers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docxAnswers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docx
 
Unit i intro-operators
Unit   i intro-operatorsUnit   i intro-operators
Unit i intro-operators
 
2009 Punjab Technical University B.C.A Object Oriented Proagramming Language ...
2009 Punjab Technical University B.C.A Object Oriented Proagramming Language ...2009 Punjab Technical University B.C.A Object Oriented Proagramming Language ...
2009 Punjab Technical University B.C.A Object Oriented Proagramming Language ...
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061
 
C multiple choice questions and answers pdf
C multiple choice questions and answers pdfC multiple choice questions and answers pdf
C multiple choice questions and answers pdf
 

Viewers also liked

UNESCO IFRI Presentation 2013
UNESCO IFRI Presentation 2013UNESCO IFRI Presentation 2013
UNESCO IFRI Presentation 2013rchalat
 
It's a Ning Thing: Using Social Networking for Virtual Fieldwork
It's a Ning Thing: Using Social Networking for Virtual FieldworkIt's a Ning Thing: Using Social Networking for Virtual Fieldwork
It's a Ning Thing: Using Social Networking for Virtual FieldworkLaura Nicosia
 
Mitt digitale klasserom
Mitt digitale klasseromMitt digitale klasserom
Mitt digitale klasseromRune Mathisen
 
Андрей Рыбалов, Информ-Мобил/IMMO, презентация для VI Mobile VAS Conference
Андрей Рыбалов, Информ-Мобил/IMMO, презентация для VI Mobile VAS ConferenceАндрей Рыбалов, Информ-Мобил/IMMO, презентация для VI Mobile VAS Conference
Андрей Рыбалов, Информ-Мобил/IMMO, презентация для VI Mobile VAS ConferenceProcontent.Ru Magazine
 
Petukhova karina 11a
Petukhova karina 11aPetukhova karina 11a
Petukhova karina 11aJulia Birhova
 
An atlanta, georgia tour guide proposal
An atlanta, georgia tour guide proposalAn atlanta, georgia tour guide proposal
An atlanta, georgia tour guide proposalmamagnas
 
Ciso dhcp 2008
Ciso dhcp 2008Ciso dhcp 2008
Ciso dhcp 2008myciokas
 
Tokyo Cabinet / Tyrant @ Nosql Paris
Tokyo Cabinet / Tyrant @ Nosql ParisTokyo Cabinet / Tyrant @ Nosql Paris
Tokyo Cabinet / Tyrant @ Nosql ParisFlorent Solt
 
Building Healthy Communities: Where We Live, Learn, Work and Play by Susan La...
Building Healthy Communities: Where We Live, Learn, Work and Play by Susan La...Building Healthy Communities: Where We Live, Learn, Work and Play by Susan La...
Building Healthy Communities: Where We Live, Learn, Work and Play by Susan La...Wisconsin Women's Health Foundation
 
Divan.tv presentation Caspiantelecoms 2013
Divan.tv presentation Caspiantelecoms 2013Divan.tv presentation Caspiantelecoms 2013
Divan.tv presentation Caspiantelecoms 2013Kirill Gorokhovsky
 
26 sinisa rodic distributed intelligence and energy - sinisa rodic undp co bi_h
26 sinisa rodic distributed intelligence and energy - sinisa rodic undp co bi_h26 sinisa rodic distributed intelligence and energy - sinisa rodic undp co bi_h
26 sinisa rodic distributed intelligence and energy - sinisa rodic undp co bi_hUNDPhr
 
Naming conventions of huawei parts
Naming conventions of huawei partsNaming conventions of huawei parts
Naming conventions of huawei partsHuanetwork
 
Online Firestorms and the Case of Copenhagen Zoo's Marius the Giraffe - Compu...
Online Firestorms and the Case of Copenhagen Zoo's Marius the Giraffe - Compu...Online Firestorms and the Case of Copenhagen Zoo's Marius the Giraffe - Compu...
Online Firestorms and the Case of Copenhagen Zoo's Marius the Giraffe - Compu...Christopher James Zimmerman
 
Live-результаты Олимпийских Игр, Стас Кондратьев и Андрей Кузнецов
Live-результаты Олимпийских Игр, Стас Кондратьев и Андрей КузнецовLive-результаты Олимпийских Игр, Стас Кондратьев и Андрей Кузнецов
Live-результаты Олимпийских Игр, Стас Кондратьев и Андрей КузнецовOntico
 
Emo Codes and Conventions
Emo Codes and ConventionsEmo Codes and Conventions
Emo Codes and ConventionsRohamaWaseem
 
Pyxis medication administration system2
Pyxis medication administration system2Pyxis medication administration system2
Pyxis medication administration system2awrightlewis
 
Smallholder pig value chains in East Africa
Smallholder pig value chains in East Africa Smallholder pig value chains in East Africa
Smallholder pig value chains in East Africa ILRI
 
Брендинг в CRE. Сеть отелей "Азимут"
Брендинг в CRE. Сеть отелей "Азимут"Брендинг в CRE. Сеть отелей "Азимут"
Брендинг в CRE. Сеть отелей "Азимут"Elena Shuvalova
 

Viewers also liked (20)

UNESCO IFRI Presentation 2013
UNESCO IFRI Presentation 2013UNESCO IFRI Presentation 2013
UNESCO IFRI Presentation 2013
 
It's a Ning Thing: Using Social Networking for Virtual Fieldwork
It's a Ning Thing: Using Social Networking for Virtual FieldworkIt's a Ning Thing: Using Social Networking for Virtual Fieldwork
It's a Ning Thing: Using Social Networking for Virtual Fieldwork
 
Mitt digitale klasserom
Mitt digitale klasseromMitt digitale klasserom
Mitt digitale klasserom
 
Андрей Рыбалов, Информ-Мобил/IMMO, презентация для VI Mobile VAS Conference
Андрей Рыбалов, Информ-Мобил/IMMO, презентация для VI Mobile VAS ConferenceАндрей Рыбалов, Информ-Мобил/IMMO, презентация для VI Mobile VAS Conference
Андрей Рыбалов, Информ-Мобил/IMMO, презентация для VI Mobile VAS Conference
 
Magika gualia (xxx)
Magika gualia (xxx)Magika gualia (xxx)
Magika gualia (xxx)
 
Petukhova karina 11a
Petukhova karina 11aPetukhova karina 11a
Petukhova karina 11a
 
An atlanta, georgia tour guide proposal
An atlanta, georgia tour guide proposalAn atlanta, georgia tour guide proposal
An atlanta, georgia tour guide proposal
 
Ciso dhcp 2008
Ciso dhcp 2008Ciso dhcp 2008
Ciso dhcp 2008
 
Tokyo Cabinet / Tyrant @ Nosql Paris
Tokyo Cabinet / Tyrant @ Nosql ParisTokyo Cabinet / Tyrant @ Nosql Paris
Tokyo Cabinet / Tyrant @ Nosql Paris
 
Building Healthy Communities: Where We Live, Learn, Work and Play by Susan La...
Building Healthy Communities: Where We Live, Learn, Work and Play by Susan La...Building Healthy Communities: Where We Live, Learn, Work and Play by Susan La...
Building Healthy Communities: Where We Live, Learn, Work and Play by Susan La...
 
Divan.tv presentation Caspiantelecoms 2013
Divan.tv presentation Caspiantelecoms 2013Divan.tv presentation Caspiantelecoms 2013
Divan.tv presentation Caspiantelecoms 2013
 
26 sinisa rodic distributed intelligence and energy - sinisa rodic undp co bi_h
26 sinisa rodic distributed intelligence and energy - sinisa rodic undp co bi_h26 sinisa rodic distributed intelligence and energy - sinisa rodic undp co bi_h
26 sinisa rodic distributed intelligence and energy - sinisa rodic undp co bi_h
 
Naming conventions of huawei parts
Naming conventions of huawei partsNaming conventions of huawei parts
Naming conventions of huawei parts
 
Online Firestorms and the Case of Copenhagen Zoo's Marius the Giraffe - Compu...
Online Firestorms and the Case of Copenhagen Zoo's Marius the Giraffe - Compu...Online Firestorms and the Case of Copenhagen Zoo's Marius the Giraffe - Compu...
Online Firestorms and the Case of Copenhagen Zoo's Marius the Giraffe - Compu...
 
Live-результаты Олимпийских Игр, Стас Кондратьев и Андрей Кузнецов
Live-результаты Олимпийских Игр, Стас Кондратьев и Андрей КузнецовLive-результаты Олимпийских Игр, Стас Кондратьев и Андрей Кузнецов
Live-результаты Олимпийских Игр, Стас Кондратьев и Андрей Кузнецов
 
Emo Codes and Conventions
Emo Codes and ConventionsEmo Codes and Conventions
Emo Codes and Conventions
 
Pyxis medication administration system2
Pyxis medication administration system2Pyxis medication administration system2
Pyxis medication administration system2
 
Smallholder pig value chains in East Africa
Smallholder pig value chains in East Africa Smallholder pig value chains in East Africa
Smallholder pig value chains in East Africa
 
Design Rules And Principles
Design Rules And PrinciplesDesign Rules And Principles
Design Rules And Principles
 
Брендинг в CRE. Сеть отелей "Азимут"
Брендинг в CRE. Сеть отелей "Азимут"Брендинг в CRE. Сеть отелей "Азимут"
Брендинг в CRE. Сеть отелей "Азимут"
 

Similar to Cs 72

Smu bca sem 5th summer 2014 solved assignments
Smu bca sem   5th summer 2014 solved assignmentsSmu bca sem   5th summer 2014 solved assignments
Smu bca sem 5th summer 2014 solved assignmentssmumbahelp
 
Assignment 1 for 2nd sem
Assignment 1 for 2nd semAssignment 1 for 2nd sem
Assignment 1 for 2nd semhome
 
Bca 5050 visual programming – practical
Bca 5050   visual programming – practicalBca 5050   visual programming – practical
Bca 5050 visual programming – practicalsmumbahelp
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Sreeju Sree
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGAmira Dolce Farhana
 
Oop r&s may 2019 (2)
Oop r&s may 2019 (2)Oop r&s may 2019 (2)
Oop r&s may 2019 (2)ktuonlinenotes
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docMayurWagh46
 
Software Engineering Question Bank.docx
Software Engineering Question Bank.docxSoftware Engineering Question Bank.docx
Software Engineering Question Bank.docxkarthikaparthasarath
 
Mcs 011 ignou question paper c language
Mcs 011 ignou question paper c languageMcs 011 ignou question paper c language
Mcs 011 ignou question paper c languagewolverine x-man
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2Knowledge Center Computer
 
Programming For Problem Solving Lecture Notes
Programming For Problem Solving Lecture NotesProgramming For Problem Solving Lecture Notes
Programming For Problem Solving Lecture NotesSreedhar Chowdam
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxNEHARAJPUT239591
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJmeharikiros2
 

Similar to Cs 72 (20)

Oops 2018
Oops 2018Oops 2018
Oops 2018
 
Cc 16
Cc 16Cc 16
Cc 16
 
Smu bca sem 5th summer 2014 solved assignments
Smu bca sem   5th summer 2014 solved assignmentsSmu bca sem   5th summer 2014 solved assignments
Smu bca sem 5th summer 2014 solved assignments
 
Assignment 1 for 2nd sem
Assignment 1 for 2nd semAssignment 1 for 2nd sem
Assignment 1 for 2nd sem
 
Cs 75
Cs 75Cs 75
Cs 75
 
sad.pdf
sad.pdfsad.pdf
sad.pdf
 
Bca 5050 visual programming – practical
Bca 5050   visual programming – practicalBca 5050   visual programming – practical
Bca 5050 visual programming – practical
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
 
Cs 62
Cs 62Cs 62
Cs 62
 
Oop r&s may 2019 (2)
Oop r&s may 2019 (2)Oop r&s may 2019 (2)
Oop r&s may 2019 (2)
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).doc
 
Software Engineering Question Bank.docx
Software Engineering Question Bank.docxSoftware Engineering Question Bank.docx
Software Engineering Question Bank.docx
 
Mcs 011 ignou question paper c language
Mcs 011 ignou question paper c languageMcs 011 ignou question paper c language
Mcs 011 ignou question paper c language
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
 
Programming For Problem Solving Lecture Notes
Programming For Problem Solving Lecture NotesProgramming For Problem Solving Lecture Notes
Programming For Problem Solving Lecture Notes
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptx
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
 

More from 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 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
Cs 72 (p)s8Cs 72 (p)s8
Cs 72 (p)s8
 

Cs 72

  • 1. No. of Printed Pages : 2 CS-72 BACHELOR IN COMPUTER N .14 APPLICATIONS O Term-End Examination June, 2011 CS-72 : C++ AND OBJECT ORIENTED PROGRAMMING Time : 2 hours Maximum Marks : 60 Note : Question number 1 is compulsory. Answer any three Questions from the rest. 1. (a) Define a class ACCOUNT that includes 10 following members : Data Members : Name of Depositor, Account no., Type of A/c, Balance Amount. Member functions : To assign initial values, deposit amount, withdraw after checking balance, To display name and balance. Write a program in C++ and test it for 10 Customers. (b) Differentiate between : 10 (i) Procedural Programming and Object Oriented Programming. (ii) Data Encapsulation and Inheritance. (c) Explain the utility of the friend function, 5 using an appropriate example. CS-72 1 P.T.O.
  • 2. (d) Explain the steps involved in drawing 5 interaction diagram with the help of an example. 2. (a) What do you mean by exception 6 Handling ? Write a C++ Program that throws an arithmetic exception whenever the Input number is less than zero. (b) What do you mean by Polymorphism ? 4 Explain with an example. 3. (a) How do you use scope resolution operator 5 for accessing global variables ? Also discuss its other uses. (b) What is a Virtual Base Class ? Explain with 5 an example. 4. (a) What is an inline function ? Explain with 5 an example and also discuss its limitations. (b) Define operator overloading. Explain its 5 advantages. 5. Explain the following with examples : 2x5=10 (a) Input and Output streams (b) Constructor and Destructor (c) Abstract classes (d) Preprocessor directives CS-72 2