Exam Details

Subject Programming In C++
Paper
Exam / Course Bachelor of Computer Applications
Department School of Computer and Information Sciences (SOCIS)
Organization indira gandhi national open university
Position
Exam Date December, 2016
City, State new delhi,


Question Paper

No. of Printed Pages: 3 IBCS-oSll
BACHELOR OF COMPUTER APPLICATIONS (Revised)
Term-End Examination


December, 2016
BCS-031 PROGRAMMING IN
Time 3 hours Maximum Marks: 100 (Weightage
Note: Question no. 1 is compulsory and carries 40 marks. Attempt any three questions from the rest.

1. Explain the basic features of an object-oriented language. Why did people change over from structured programming to object-oriented programming? .8

Abstract class provides a base upon which other classes may be built. Justify the above statement with the help of an example. 5

What do you mean by inheritance? Explain the advantages of using multiple inheritance in with the help of an example. 7

Explain the importance of a constructor in object-oriented programming. Differentiate between copy constructor and default constructor in with the help of an example. 7

What is function overloading Give its advantages in a program. Also write a program to show function overloading. 7

How does a virtual function differ from a pure virtual function Also give an example of a pure virtual function. 6

2. What is exception handling What is the sequence of events when an exception occurs Write a program that uses exception handling to handle the errors caused, when a number is divided by zero. 10

Differentiate among private, public and protected access modifiers. Also explain their meaning when a derived class inherits from a base class using public, protected or private keywords, with the help of an example. 10

3. Write a program to add two complex numbers by using binary operator overloading. Write comments in the program wherever it is required, to give more clarity to the program. 10

Write a program in to calculate the factorial of a given number. 5

Explain the association of dynamic binding and run-time polymorphism, with example. 5


4. How is unformatted I/O different from formatted I/O Explain. 5

Write a program to create a Book class. Define constructor and destructor for this class. Also define the methods to show the title and price of the books. 7

Explain the use of the following operators in 8









5. Write short notes on the following: 4 x5=20

New and Delete Operator

Parameterized Constructor

Class Template

Pure Virtual Function


Departments

  • Centre for Corporate Education, Training & Consultancy (CCETC)
  • Centre for Corporate Education, Training & Consultancy (CCETC)
  • National Centre for Disability Studies (NCDS)
  • School of Agriculture (SOA)
  • School of Computer and Information Sciences (SOCIS)
  • School of Continuing Education (SOCE)
  • School of Education (SOE)
  • School of Engineering & Technology (SOET)
  • School of Extension and Development Studies (SOEDS)
  • School of Foreign Languages (SOFL)
  • School of Gender Development Studies(SOGDS)
  • School of Health Science (SOHS)
  • School of Humanities (SOH)
  • School of Interdisciplinary and Trans-Disciplinary Studies (SOITDS)
  • School of Journalism and New Media Studies (SOJNMS)
  • School of Law (SOL)
  • School of Management Studies (SOMS)
  • School of Performing Arts and Visual Arts (SOPVA)
  • School of Performing Arts and Visual Arts(SOPVA)
  • School of Sciences (SOS)
  • School of Social Sciences (SOSS)
  • School of Social Work (SOSW)
  • School of Tourism & Hospitality Service Sectoral SOMS (SOTHSM)
  • School of Tourism &Hospitality Service Sectoral SOMS (SOTHSSM)
  • School of Translation Studies and Training (SOTST)
  • School of Vocational Education and Training (SOVET)
  • Staff Training & Research in Distance Education (STRIDE)

Subjects

  • ANALYSIS AND DESIGN OF ALGORITHM
  • Basics Mathematics
  • BUSINESS COMMUNICATION
  • C' Programming and Data Structure
  • C++ and Object Oriented Programming
  • Computer Basics and PC Software
  • Computer Fundamentals and PC Software
  • Computer Networks
  • COMPUTER ORIENTED NUMERICAL TECHNIQUES
  • E-COMMERCE
  • Foundation Course in English for Computing
  • Foundation Course in Mathematics in Computing
  • FUNDAMENTAL OF COMPUTER NETWORKS
  • Intranet Administration
  • Introduction to Computer Organisation
  • Introduction to Internet Programming
  • INTRODUCTION TO SOFTWARE ENGINEERING
  • Introduction to System Software
  • Multimedia
  • NETWORK PROGRAMMING AND ADMINISTRATION
  • PC Software Skills
  • Programming In C++
  • STATISTICAL TECHNIQUES
  • TCP/IP PROGRAMMING
  • Theory of Computer Science
  • WEB PROGRAMMING