<<

B.Com – Computer Application (March/April – 2019) Semester – IV Object Oriented Programming with ++ Section – A Answer any Five Questions. ( 5 x 5 = 25 marks) 1. A) What do you mean by Procedure Oriented Programming? B) Define Array. C) What do you mean by destructor? ) What is Virtual functions? E) What are manipulators? F) Write about inline functions. G) Compare C with C++. H) What are binary operators? I) What is a friend class? J) Write about keywords.

Section-B Answer ONE question from each unit. (Marks 5 X 10 = 50) UNIT – I 2. Explain about object oriented languages. (or) 3. Write about Benefits and applications of OOPs.

UNIT – II 4. Write about C++. (or) 5. Explain about the concepts of arrays.

UNIT – III 6. Explain about functions in C++. (or) 7. Write about constructor.

UNIT – IV 8. Write about inheritance.

(or) 9. Explain about operator overloading

UNIT – V 10. Explain about formatted output of ios class functions and flags (or) 11.Explain about command line arguments. Some answers for doubtful questions: 2. Explain about object oriented languages. Ans:- In your syllabus 6th topic + explain languages like , c++,java,charm++ Write two tables shown below (compulsory)

C++:- few points in introduction of C++ Smalltalk:- smalltalk is purely object oriented programming languages. It uses run time binding and considered to be faster than C++ and need longer time to learn. Smalltalk uses dynamic objects and memory is allocated from free store. Java :- Java is also object oriented developed by james gosling. It support maximum OOPs Characteristics. Its statement structure is like C and C++, but easier than C++. Java excludes some concepts like pointers, for unsafe features of C and C++. Charm++:- It is also OOP language. The language provide feature such as inheritance, overloading, reusability and type checking. It works efficiently in different parallel systems, together with shared memory systems and networking. 4. Write about C++ Ans: Introduction of C++ 5. Concepts of Array Ans: Array definition and their three types (1 D, 2D and multi dimensional array) 7. Write about constructor. Ans: Constructor definition and should write different types of constructor. 8.Write about inheritance. Ans: Inheritance definition and should write types of inheritance. 9.Explain about operator overloading. Ans: Operator overloading definition , rules of operator overloading(6 points) , how to define operator overloading, theory for unary and binary operator overloading(write shortly) ( any one example or unary , binary operator overloading) 5 marks h) binary operator: Ans: Definition for binary operator and program in arithmetic operator( with program explanation) (Don’t write binary operator overloading)

Unary Operator:- definition of unary operator and program in increment and decrement operator( with explanation) Note: - of oops, concepts of OOPS , principle of oops , features of oops (4 question are same answer) Ans:- write object, classes, data abstraction, encapsulation, inheritance, polymorphism, dynamic binding and message passing. Static polymorphism – write and operator overloading(any one example)

Run-time polymorphism – write and method overriding. What is OOPs?

Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data.