MCA IGNOU

Pages (2) : [1] 2 »





CS-16 Object Oriented Systems Dec - 2004

Question Paper of CS-16 Object Oriented Systems Dec - 2004

Q.l(a)Draw a class diagram with two classes, Teacher and Course. Add at least 4 attributes and 2 operations for both the classes. Explain the classes and associations, if any. Assume that a teacher can teach many courses and a course can be taught by many teachers. Further, assume that a teacher teachs a minimum of one course and a maximum of one teacher and a maximum of many teachers. Make assumptions, whereever necessary.

Q.l(b) Prepare a list of objects that the following system will handle:
a telephone answering machine

Q.l© Define the following terms, giving at least one exampli of each:
(i) Abstraction
(ii) Information hiding
(iii) Sharing
(iv) Over-riding

Q.l(d) What are the features of C++ that make it suitable for object oriented implementations?

Pages: 1 2 3 4 5 6

CS-16 Object Oriented Systems June-2004

Question Paper of CS-16 Object Oriented Systems June-2004

Q.l(a) Draw a class diagram with two classes, Hospital and Patient. Add at least 4 attributes and 2 operations for both the classes. Explain the classes and associations, if any. Assume that a patinent can consult many hospitals, and that a hospital can provide consultation for many patients. Further, assume that a hospital can provide consultation for a minimum of zero and a maximum of many patients, but a patient must consult in at least one hospital, but possibly many hospitals.

Q-1.(b) Express the following as a constraint that is to be enforced in an application which handles points and polygons: Points are associated with polygons. Every point belongs to exactly one polygon. You do not want a polygon to be linked to a point that has been deleted.

Q. 1 © Define the following terms, giving one example of each:
(i) Virtual functions
(ii) Inheritance
(iii) Function overloading

Q .l(d) List three advantages of object oriented systems.

Pages: 1 2 3 4 5 6

CS-16 Object Oriented Systems Dec -2003

Question Paper of CS-16 Object Oriented Systems Dec -2003

Ous l (a) Define the following terms with examples :
i. Interaction Diagrams
ii. Object Model
iii. Data Abstraction

Qus l(b) Design a Circular Doubly Linked List Class. The class should include all functionalities relating to a Circular Doubly Link Creation, Insertion, Deletion and Printing of elements etc. Do the following while designing classes.
i. Indicate Public and Private elements
ii. Design constructors
iii. Identify data structures and methods, which can be inherited.
iv. Implementation should be in C++

Pages: 1 2 3 4 5 6

CS-16 Object Oriented System June -2003

Question Paper of CS-16 Object Oriented System June -2003

Qusl(a) Define the follofing terms with examples:

a. Class
b. Inheritance
c. Polymorphism
d. Overloading

Qusl(b) Imagine a toll booth at a bridge. Cars passing by the booth are expected to pay a toll of five rupees. Mostly they do but sometimes a can goes by without paying. The toll both keeps track of the total number of cars that have gone by and the total amount of money collected.

Model this tollbooth with a class called TOLLBOOTH. The two data items are of a type unsigned into to hold the total number of cars, and of a type double to hold the total amount of money collected. A constructor initializes both these to zero. A member function called PAYINGC AT () increments the car total and adds 5 to the cash total. Another function, called NO_PAY_CAR() increments the car total but ads nothing to the cash total. Finally a member function called DISPLAY ( ) displays the two totals.

Qus l© Design a template class for sorting a list of elements.

Pages: 1 2 3 4 5 6

CS-16 Object Oriented System Dec 2002

Question Paper of CS-16 Object Oriented System Dec 2002

Q.l (a) Define the following terms with examples
(i) Short-circuit evaluation
(ii) Operator overloading
(iii) Friend classes and
(iv) User defined types functions

Qusl(b) Design a CALCULATOR class. The class should include functionalities like addition subtraction, multiplication and division etc.
Observe the following while designing classes
-Clearly indicate Public and private elements.
-Design Constructors and explain their purpose.
-Identify data structures and methods which can be inherited.
-Implementation should be in C++.

Pages: 1 2 3 4 5 6

CS-16 Object Oriented Systems June-2002

Question Paper of CS-16 Object Oriented Systems June-2002

Qus 1 (a) Define the following terms with examples:
(i) Exception Handling
(ii) Derived Classes
(iii) Header Files
(iv) Data Abstraction

Qusl(b)Design a Singly Linked List Class. The class should include all functionalities relating to a Singly Linked List like Creation, Insertion, Deletion, Printing of el ements etc. Observe the following while designing classes:
i. Clearly indicate Public, and private elements.
ii. Design Constructors and explain their purpose.
iii. Identify data structures and methods, which can be inherited.
iv. Implementation should be in C++.

Pages: 1 2 3 4 5 6

CS-16 Object Oriented Systems Dec-2001

Question Paper of CS-16 Object Oriented Systems Dec-2001

Qusl(a)Define the following terms with examples:
(1) Multiple Inheritance
(2) Abstract Class
(3) Multi-level Inheritance
(4) Pure Virtual Functions.

Qusl(b) Design a circular linked list class. The class should include all functionalities relating to a circular linked list like creation, selection of elements, insertion, printing of elements etc. Observe the following while designing classes:
1. Clearly indicate public and private elements
2. Design constructors and explain their purpose
3. Identify data structure and methods, which can be inherited.
4. Implementation should be in C + +.

Pages: 1 2 3 4 5 6

CS-16 Object Oriented System June -2001

Question Paper of Semester no. v CS-16 Object Oriented System June -2001

Qusl(a) For each of the following systems
1. Chess Player
2. Remote controlled Machine
3. Electronic type writer
4. Software to mail Merge
5. Telephone answering Machine.

Identify the relative importance of three aspects of modeling:

i. Object Modeling
ii. Dynamic Modeling
iii. Functional Modeling

Explain your answer.

Ql(b) Print out which statements in the following C++ Code fragment violate the access control mechanism for class X of class Y:
class X
{
private:
intl;
void pvt _X();
protected: int j;
void prot _xO;
public: int k;
void pub _X(int, int);
};
class Y: public X
{
char C;
};
Xx;
Yy;
x.i=10;
x.k=15;
y.prot_X();
y.pub_X(5,10);
};

Qnsl© Define the following terms with examples:

i. Abstract Data Type
ii. Polymorphism
iii. Inheritance
iv. Templates

Pages: 1 2 3 4 5 6

CS-16 Object Oriented Systems Jan.-2001

Question Paper of Semester no. v CS-16 Object Oriented SystemsJan.-2001

Qus 1(0 Write a program in C++ to implement queue data structure using linked list. It may support the following operations:
(a) Delete a node from queue
(b) Insert a node at the front of queue
© Find out the length of a queue

Qus l(ii) Draw a class and instance diagram for looping statements in C-prograrmming language.

QUS l(iii) A directory file system contains information about files in a directory, including both ordinary files as well as other directory systems, prepare an object diagram which models directory files and ordinary files.

Qus 1 (iv) What is the purpose of dynamic modelling?

Pages: 1 2 3 4 5 6

CS-16 Object Oriented Systems JUNE -2000

Question Paper of Semester no. v CS-16 Object Oriented Systems JUNE -2000

Qnsl(a) Define the following terms with examples

(i) Abstract Data Type
(ii) Polymorphism
(iii) Inheritance
(iv) Templates

Qns1(b) Design an AUTOMOBILE base class. Define all its possible Methods and data structures. Through inheritance mechanism, create one c’ass namely CAR, Implement its data structure and important methods.

Observe the following while designing classes:

1. Clearly indicate public and private classes
2. Design constructors in each class and explain its purpose
3. Identify data structure and methods which can be inherited
4. Implementation should be in C+ +.

Q. l© Design a template class for sorting elements.

Pages: 1 2 3 4 5 6

CS-16 Object Oriented Systems Dec-1999

Question Paper of Semester no. v CS-16 Object Oriented Systems Dec-1999

l(a) Define the following terms with examples:
(i) Overloading
(ii) Templates
(iii) Multiple inheritance and Multilevel inheritance
(iv) Base and Derh ed classes.
Qnsl(a)
Answer :

(i) Overloading:- The method of implementing polymorphism i.e. different behavior of an object, an operator or a function in different conditions, overloading can be performed over the functions and over the operators.

Image no.1

Example:

# include < iostream .h >
Void main ( )
{
int max (int, int);
float max (float, float);
}
int max (int a; int b)
{
return(a> b? a: b);
}
float max( float a, float b)
{
return / a .b ? a :);
}
}

(ii) Template

Please refer Qus l(a) (iv) june2000

(iii) Multiple inheritances

Ability of a derived class to inherit the characteristic of more than one class as base class is called multiple inheritance.

Image no.2

Multilevel Inheritance means the inheritance chain where a derived class acts as base class for other classes.

Image no.3

(iv) Base class & Derived Class

In inheritance hierarchy the class, which is devoting its characteristics to the lone, or more classes is known as Base Class or parent class. Whereas the classes, which are consuming the characteristics or can extend base class functionalities are known as derived classed.

Image no.4

Ql(b) Define a class for storing, evaluating and printing simple arithmetic expressions consisting of. Integer constants and the operators +, -, * and /. The public interface should look like this:

class expr {
// �
public:
expr(char *);
int eval( );
void print( );};
The string argument for the constructor
expr:: expr() is the expression. The function
expr: : eval() returns the value of the expression, and
expr : : print() prints a representation of the expression on the
cout. A program might look like this:
exprx("123/4+123*4-3″);
cout �"x =” �x eval( ) �"n";
x.print( );
Define class expr twice: once using a linked list of nodes as the representation and once using a character string as the representation.

Answer :

# include < iostream . h >
# include < string .h >
# define max 80 Typedef struct valvenode
{
valvenode * val;
valvenode * prev ,* next:
};
Class list
{
Valve * head * tail;
public: List ( )
head = tail ~ NULL ;
Void append
char* SI
}
int empty ( )
{
return head = = NULL;
}
};
class input
{
char Sl(max+1);
int end;
list valuenode;
void size ( );
public:
Input ( )
{
return end;
}
list * get list ( )
{
return ( * value node);
}
};
class stack
{
list value nodes;
public:
void push (int value);
int pop ( ) ;
};
class evaluate {
stack stl;
public:
inteval(List*ll);
};
value node:: value node (char ? New value node)
{
int I,max,a;
if (! NULL)
{
new value node (i) = ” ;
value = a;
}
else
value = 0;
}
valuenode list: : remove ()
{
int (empty ( ))
{
return NULL;
valuenode * retval = head -� NEXT;
valuenode * next = head -> next;
if (next + NULL)
next -> prev = NULL;
delete head;
head = next;
return. Retval;
}
void list: : append (char * SI)
{
valuenode * ( n = new valuenode );
next -�prev = tail;
next -> next = NULL;
If( tail = Null);
Tail -> next = next;
Tail = next;
If (head = NULL)
{
HEAD = NEXT;
Next �> next = knew valuenode (S1)
}
Void list:: prepaid ( Char * SI)
{
valuenode *next=new valuenode;
Next -> prev = NULL;
Next -> next = head ;
If (head-Null)
Head -� prev = next;
tail =next;
}
int stack :: pop ( )
{
valuenode * t = valuenoderemove
int retval= t-� get value ( );
delete t;
return retval;
}
VOID Stack : : Push (int value)
{
Char str [ max ]
Cont < < Str;
Valve node. Prepaid (str);
Void input: : size ( )
{
Char * head, * tail;
Head = str;
While (I NULL)
{
tail = head;
}
}
int evaluate : : eval (list * 11)
{
valuenode * VN;
int a, b, c;
while (empty ( )
{
VN = list -> remove ( );
If(VN ~* operand( ))
stack push (VN get value ( ))
else
{
b = stack. Push ( );
a = stack. Pop( );
Switch (VN Operator ( ))
{
case * :
C=A*B;
Break;
Case -:
C = A-B;
Break;
Case 7 ‘ ;
C=A/B;
Break;
Case’ + ‘:
C = A + B
Break;
Case’%':
C=A%B;
Break;
Stack. Push ©;
Delete VN !
Return stack pop( );
}
int main ( )
Evaluate ABC;
Input * IP - new input;
While (IP ! = NULL)
{
Cout < < evaluate . eval( Ip. Get Iist());
Cout<<' n ':
IP = new Input;
}
}

Ql © Design a template class for sorting a list of elements.
Answer :

# include < iostream.h >
# define max 5.
Template < class T > class sort
{
private: T arr [ MAX]; Public :
Void Input ( ) ;
Void Sortl ( ) ;
Void output ( );
}
Template < class T > void sort < T > :: input ( )
{
cout < < " Elements to be sort "< < endl;

for ( int i = 0; i< max; i + + )
{
cin�arr[i ];
}
}
Template < class T > void sort < T > :: sortl ( )
{
T temp;
For ( int i = 0 ; i, max; i + +)
{
if(arr[i]>arr[i+l])
{
temp - arr [i];
arr [ i ] - arr [ i + 1 ];
arr[ i + 1 ] = temp;
}
}
}
Template < class T > void sort < T. >: : output( )
{
cout < < " elements are sorted" < < endl;
for( int i = 0; i< max i + +)
{
cout < < arr;
}
}

Pages: 1 2 3 4 5 6

CS-16 Object Oriented Systems June-1999

Question Paper of Semester no.v CS-16 Object Oriented Systems June-1999

Qns l(a) For each of the following systems, identify the relative importance of three aspects of modeling:
(i) Objects Modeling
(ii) Dynamic Modeling
(iii) Functional Modeling

Explain your answer.

1. Electronic Typewriter
2. Airline Reservation System
3. Calculator

Qnsl(b) Design a linked list base class. Define all its possible methods and data structure. Through inheritance mechanism, create one class namely Binary Search TVee. Implement its data structure and important methods.

Observe the following while designing classes:

1. Clearly indicate public and private class.
2. Use pointers to implement classes.
3. Design constructors in each class and explain its purpose.
4. Identify data structures and methods, which can be inherited.
5. Implementation should be in C++.

Qnsl© Define a template class for searching for a key value in the list of given elements.

Pages: 1 2 3 4 5 6

CS : 16 Object Oriented Systems of December 2004

Quesetion Paper of CS-16: Object Oriented Systems

Q.l(a)Draw a class diagram with two classes, Teacher and Course. Add at least 4 attributes and 2 operations for both the classes. Explain the classes and associations, if any. Assume that a teacher can teach many courses and a course can be taught by many teachers. Further, assume that a teacher teachs a minimum of one course and a maximum of one teacher and a maximum of many teachers. Make assumptions, whereever necessary.

Q.l(b) Prepare a list of objects that the following system will handle:

Q.l© Define the following terms, giving at least one exampli of each:

(i) Abstraction
(ii) Information hiding
(iii) Sharing
(iv) Over-riding

Q.l(d) What are the features of C++ that make it suitable for object oriented implementations?

(more…)

Pages: 1 2 3 4 5

CS : 16 Object Oriented Systems of June 2004

Quesetion Paper of CS-16: Object Oriented Systems

Q.l(a) Draw a class diagram with two classes, Hospital and Patient. Add at least 4 attributes and 2 operations for both the classes. Explain the classes and associations, if any. Assume that a patinent can consult many hospitals, and that a hospital can provide consultation for many patients. Further, assume that a hospital can provide consultation for a minimum of zero and a maximum of many patients, but a patient must consult in at least one hospital, but possibly many hospitals.

Q-1.(b) Express the following as a constraint that is to be enforced in an application which handles points and polygons: Points are associated with polygons. Every point belongs to exactly one polygon. You do not want a polygon to be linked to a point that has been deleted.

Q. 1 © Define the following terms, giving one example of each:
(i) Virtual functions
(ii) Inheritance
(iii) Function overloading

Q .l(d) List three advantages of object oriented systems.

Pages: 1 2 3 4 5

CS : 16 Object Oriented Systems of December 2003

Quesetion Paper of CS-16: Object Oriented Systems

Qns. l (a) Define the following terms with examples :
i. Interaction Diagrams
ii. Object Model
iii. Data Abstraction

Qus l(b) Design a Circular Doubly Linked List Class. The class should include all functionalities relating to a Circular Doubly Link Creation, Insertion, Deletion and Printing of elements etc. Do the following while designing classes.

1. Indicate Public and Private elements
2. Design constructors
3. Identify data structures and methods, which can be inherited.
4. Implementation should be in C++

Pages: 1 2 3 4 5 6

CS : 16 Object Oriented Systems of June 2003


Quesetion Paper of CS-16: Object Oriented Systems

Qusl(a) Define the follofing terms with examples:

a. Class
b. Inheritance
c. Polymorphism
d. Overloading

Qnsl(b) Imagine a toll booth at a bridge. Cars passing by the booth are expected to pay a toll of five rupees. Mostly they do but sometimes a can goes by without paying. The toll both keeps track of the total number of cars that have gone by and the total amount of money collected.

Model this tollbooth with a class called TOLLBOOTH. The two data items are of a type unsigned into to hold the total number of cars, and of a type double to hold the total amount of money collected. A constructor initializes both these to zero. A member function called PAYINGC AT () increments the car total and adds 5 to the cash total. Another function, called NO_PAY_CAR() increments the car total but ads nothing to the cash total. Finally a member function called DISPLAY ( ) displays the two totals.

Qus l© Design a template class for sorting a list of elements.

Pages: 1 2 3 4 5 6 7 8

CS : 16 Object Oriented Systems of December 2002

Quesetion Paper of CS-16: Object Oriented Systems

Ql (a) Define the following terms with examples

(i) Short-circuit evaluation
(ii) Operator overloading
(iii) Friend classes and
(iv) User defined types functions

Qusl(b) Design a CALCULATOR class. The class should include functionalities like addition subtraction, multiplication and division etc.

Observe the following while designing classes

-Clearly indicate Public and private elements.
-Design Constructors and explain their purpose.
-Identify data structures and methods which can be inherited.
-Implementation should be in C++.

Pages: 1 2 3 4 5 6 7

CS : 16 Object Oriented Systems of December 2001

Quesetion Paper of CS-16: Object Oriented Systems

Qusl(a)Define the following terms with examples:

(1) Multiple Inheritance
(2) Abstract Class
(3) Multi-level Inheritance
(4) Pure Virtual Functions.

Qusl(b) Design a circular linked list class. The class should include all functionalities relating to a circular linked list like creation, selection of elements, insertion, printing of elements etc. Observe the following while designing classes: [15]

1. Clearly indicate public and private elements
2. Design constructors and explain their purpose
3. Identify data structure and methods, which can be inherited.
4. Implementation should be in C + +.

Pages: 1 2 3 4 5

CS : 16 Object Oriented Systems of June 2001

Quesetion Paper of CS-16: Object Oriented Systems

Qusl(a) For each of the following systems
1. Chess Player
2. Remote controlled Machine
3. Electronic type writer
4. Software to mail Merge
5. Telephone answering Machine.

Identify the relative importance of three aspects of modeling:

i. Object Modeling
ii. Dynamic Modeling
iii. Functional Modeling

Explain your answer.

Ql(b) Print out which statements in the following C++ Code fragment violate the access control mechanism for class X of class Y:

class X
{
private:
intl;
void pvt _X();
protected: int j;
void prot _xO;
public: int k;
void pub _X(int, int);
};
class Y: public X
{
char C;
};
Xx;
Yy;
x.i=10;
x.k=15;
y.prot_X();
y.pub_X(5,10);
};

Qnsl© Define the following terms with examples:

i. Abstract Data Type
ii. Polymorphism
iii. Inheritance
iv. Templates

Pages: 1 2 3 4 5 6 7 8

CS : 16 Object Oriented Systems of January 2001

Quesetion Paper of CS-16: Object Oriented Systems

Qus 1(i) Write a program in C++ to implement queue data structure using linked list. It may support the following operations:

(a) Delete a node from queue
(b) Insert a node at the front of queue
© Find out the length of a queue

Qus l(ii) Draw a class and instance diagram for looping statements in C-prograrmming language.
Qns l(iii) A directory file system contains information about files in a directory, including both ordinary files as well as other directory systems, prepare an object diagram which models directory files and ordinary files.

Qus 1 (iv) What is the purpose of dynamic modelling?

Pages: 1 2 3 4 5



Courses Offered by IGNOU

School of Computer and Information Sciences (SOCIS)
Master of Computer Applications (MCA)
Bachelor of Computer Applications (BCA)
Bachelor of Information Technology (BIT)
Advanced Diploma in Information Technology (ADIT)
Certificate in Computing (CIC)

School of Humanities
M.A.English (MEG)
M.A.Hindi (MHD)
BA English
BA Hindi
Postgraduate Diploma in Radio Prasran (PGDRP)
Postgraduate Diploma in Translation (PGDT)
Diploma in Creative Writing in English (DCE)
Postgraduate Certificate in Television Writing (PGCTW)
Postgraduate Certificate in Copyediting and Proofreading (PGCCP)
Certificate in the Teaching of English (CTE)

School of Education
Doctor of Philosophy (Ph.D.) (Phase-I)
Post Graduate Diploma in Higher Education (PGDHE)
Bachelor of Education (B.Ed)
Diploma in Primary Education (DPE)
CIG
Certificate in Primary Education (CPE)
Master of Arts (Education)
Post Graduate Diploma in Educational Technology (PGDET)
Post Graduate Diploma in School Leadership and Management (PGDSLM)

School of Continuing Education
Bachelor in Social Work (BSW)
Postgraduate Diploma in Rural Development (PGDRD)
Diploma in HIV & Family Education (DAFE)
Certificate in HIV & Family Education (CAFÉ)
Certificate Programme in Rural Development (CRD)
Elective in Rural Development
Diploma in Nutrition and Health Education (DNHE)
Diploma in Early Childhood Care and Education (DECE)
Certificate in Food and Nutrition (CFN)
Certificate Programme in Nutrition and Childcare (CNCC)
Application Oriented Courses for BDP
Postgraduate Diploma in Journalism and Mass Communication (PGDJMC)
Post Graduate Diploma in Audio Programme Production (PGDAPP)
Certificate in Food Safety (CFS)
M.A. in Rural Development, M.A.(RD)
Master's of Science Degree in Dietetics and Food Service Management {MSc. (DFSM) }
Application Oriented Courses for BDP

School of Health Sciences
Post Basic Bachelor of Sciences in Nursing
Post Graduate Diploma in Maternal & Child Health
Post Graduate Diploma in Hospital and Health Management
Post Graduate Certificate in Rural Surgery
Post Graduate Diploma in Geriatric Medicine
Certificate in Health and Environment
Certificate in Health Care Waste Management
Post Graduate Diploma in Community Cardiology

School of Sciences
Bachelor of Science (B.Sc.) Programme
Certficate Programme Teaching of Primary School Mathematics (CTPM)
Certificate Programme in Laboratory Techniques (CPLT)
Post Graduate Diploma in Intellectal Property Rights (PGDIPR)
Post Graduate Diploma in Environment and Sustainable Devlopment
Appreciation Course On Environment
Awareness Course On Intellectual Property Rights
Programme Under Development


Other Resources