IndiaStudyCenter.com

Need help about a course?
Visit CollegeZones.com

Colleges & Universities | Distance Education | Admission Notifications | Entrance Exams | Course Syllabus | Question Papers
Home / Test Papers / IGNOU / CS72 C++ and Object Oriented Programming
CS72 C++ and Object Oriented Programming December 2005
Ask a question
Print this page
IGNOU CS-72

CS-72 Test Papers

IGNOU - BCA

About IGNOU - BCA Course

IGNOU - BCA Syllabus

IGNOU - BCA Assignments

IGNOU - BCA Test Papers

IGNOU Programs

IGNOU

Courses, Admissions & Eligibility

January / July 2009 Admissions

Admission Procedure & Schedule

Colleges, Faculties & Departments

Who's Who at the University

Re-Admission Procedure

Study Centres in India

Partner Institutions outside India

Syllabus

IGNOU Test Papers (by Course)

IGNOU Test Papers (by Paper code)

Assignments

IGNOU Dec 2008 Examination Timetables

IGNOU Exam Timetables

Notifications, Circulars & Announcements 2008

Events, Seminars & Workshops

Examination Results

IGNOU Improvement tests

Test Papers / Previous Question Papers of IGNOU CS72 C++ and Object Oriented Programming December 2005

BACHELOR IN COMPUTER APPLICATIONS
Term-End Examination

December, 2005

CS72 : 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) What is dynamism in the context of the object oriented programming paradigm ? What are the different types of dynamism existing in the object-oriented programming paradigm.? Explain each type with the help of an example. (6)

(b) For each of the statements labelled (i), (ii),( iii) and (iv), point out the errors, if any. If there is no error in a statement, indicate its effect. (4)

Class base
{
int i;
public :
void set_i(int num) {i=num;}
int get_i( ) {return i;}
}
Class derived : public base { int j; public : void set_j(int num) (j=num;) int get_j( ) {return j;} } void main ()
{
base *bp;
derived d;
bp = &d;
bp → set_i(10); (i) bp → set_j(20); (ii) cout << bp → get_i(); (iii) cout << bp → get_j(); (iv) }

(c) What is inheritance ? What are its advantages ? Explain any two types of inheritance with the help of an exemplar diagram. (5)

(d) What is UML ? What are the benefits of UML for system designers ? List four types of UML diagrams. (5)

(e) Design a template class that is used to create a doubly linked list of integers or floats. Implement 'insert' and 'delete' operations along with the printing of elements. Also, check whether the linked list is null or not. (10)

2. Design and implement a class 'string' using an array, with a maximum size of 20 characters. The class should contain the necessary constructors, destructor, overloaded assignment operator and a friend function for concatenation of two strings. Make suitable assumptions if required. Also write main( ) for the above. (10)

3. (a) What is the need of a virtual function ? Describe this with the help of a suitable example using C++. What is a pure virtual function ? (6)

(b) What is an inline function ? In which situations would you make a function inline ? Give two examples of inline functions. (4)

4. Design and implement a class 'stack' using pointers. The class should include necessary constructors and destructor and the functions for addition and deletion of elements. It should also check whether a stack is full or empty. Make any assumption, if required. (10)

5. Define fhe following terms, with an example of each : (10)
(a) Scope resolution operator
(b) Macros
(c) this pointer
(d) iostreams

Most popular pages

Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - IGNOU

Search this site

Enter a detailed keyword. Ex: Question Papers of IGNOU MCA Ist Semester