* * * THIS BLOG CAN BE BEST VIEWED ON GOOGLE CHROME * * * Quitters never win Winners never quit * * *

Friday, May 29, 2009

PGDCA (IInd Semester) Examination, 2009 Object-Oriented Programming in C++ Paper IV

PGDCA (IInd Semester)
Examination, 2009
Object-Oriented Programming in C++
Paper IV

Note : Attempt question No. 1 which is compulsory and any other 4 questions from the rest. 5 questions are to be answered in all

1 Answer the following : (2x5)
(a)How are data and functions organized in an object oriented programming?
(b)What is dynamic binding?
(c) Comapre private and public access specifiers in class.
(d) Can the parameter of a copy constructor be passed by value? Justify your answer.
(e) Compare constructor conversion and operator conversion.

2 (a)Discuss characteristics of Object Oriented Languages. How does it differ from Structured Programming? (5)
(b)What is structure? How structures are defined and used? How it is different from a class? (5)

3 (a) What is function overloading? Illustrate with the help of an example. What precautions must be taken while using function overloading? (5)
(b)What are virtual and pure virtual functions? Discuss with the help of an example. (5)

4 (a)Define a class string with appropriate constructures, destructors and overloaded '==' operators. Use then in a main driver program. (5)
(b)What are exceptions? How these are handeled? Explain with the help of an example. (5)

5(a)What is inheritance? What are different levels on inheritance? Discuss the role of inheritance in reusability of software. (5)
(b) What is "this" pointer? When is it used? Explain its use using an appropriate example. (5)

6. Explain use cases, class diagram and scenarios with an example. (10)
7. Create a STUDENT class having name of student (maximum of 20 characters), and the individual marks in four tests and the average of these four tests as elements of the class. The member functions of the class are AVG() , READDATA(), and DISPLAY(). Read the values of 50 sutdents and store these 50 students objects. Now process this information in member function AVG() to find the average of marks of these 50 individual students and store them in the averge data member of these 50 objects. Print the name and average of the tests for all students. (10)

8 (a)What are input and output streams? Describe various classes available for file operations. (5)
(b) What is a class template? Write a template-balsed complete program for adding two numbers. (5)


इस ब्लाग की सामग्री को यथाशुद्ध प्रस्तुत करने का प्रयास किया गया है फिर भी किसी भी त्रुटि के लिए प्रकाशक जिम्मेदार नहीं होगा