MCA IGNOU

Pages (4) : « 1 2 [3] 4 »





CS -12 Computer Architecture June -2000

Question Paper of CS -12 Computer Architecture June -2000

Q.I A low level memory system has eight virtual pages on a disk to be mapped into 4 page frames in the main memory. A certain program generated the following page trace:

1,0,2,2,1,7,6,7,0,1,2,0,3,0

(a) Show the successive virtual pages residing in the 4 page frames with respect to above page trace using the LRU replacement policy. Compute the hit ratio in the main memory. Assume the page frames are initially empty.

(b) Repeat part (a) for the circular FIFO page replacement policy.

© In the following program, all 5 instructions are to be executed in minimum time. Assume that all are integer operands already loaded with working registers. No memory reference is needed for the operand fetch operation. Also all intermediate or final results are written back to working registers without conflicts.

P1, : X< -(A+B) * (A-B)
P2: Y<-(C+D) * (C-D)
P3} : Z<-X+Y
P4: A<-ExF
Ps: B<-(X-F) * A

(i) Use the minimum number of working registers to rewrite the above program using plus, minus, multiplication and divide exclusively. Assume a fixed instruction format with 3 register field: two for sources and one for destination.

(ii) Perform a flow analysis of the assembly language obtained in part(i) to reveal all data dependence with a data dependence graph.

Pages: 1 2 3 4 5 6

CS -12 Computer Architecture Dec -1999

Question Paper of CS -12 Computer Architecture Dec -1999

Q.I (i) Draw a table showing performance factors versus system attributes and explain them.
(ii) A 50 MHz processor was used to execute a benchmark program with the following instruction and clock cycles counts.
Instruction type Instruction count Clock cycles count.
Integer Arithmetic 45000 1
Data transfer 32000 2
Floating point 15000 2
Control transfer 8000 2

Determine the effective CPI, MIPS rate and execution time for this program.

(iii) What cause a processor pipeline to be underpipelined?
(iv) What are the factors limiting the degree of superscalar design?
(v) Illustrate a diagram showing asynchronous bus timing using a four edge handshaking (interlocking) with variable length signals for different speed devices.

Pages: 1 2 3 4 5 6

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-69 TCP/IP Programming Dec - 2004

Question Paper of Semester no. v CS-69 TCP/IP Programming Dec - 2004

Q.I (a) Explain the use of the following protocols at different layers in TCP/IP protocol:
(i) RARP

Q.I (a) (ii) IGMP

Q.I (a)(iii)UDP

Q.I (a)(iv)FTP

Q.I (b) What is Subnetting? Explain the benefits of Subnetting for network administrators.

Q.1 © Explain the IP address class which is used for multicasting. Define the lower and upper limit of hosts in each primary address class.

Q.I (d) What do you mean by encapsulation? Explain the importanceof encapsulation of ‘TCP Segment’.

Q.I (e) Which method is used for establishing TCP connection? Explain it with the help of a suitable diagram.

(b) Closing of connection

(c ) Aborting connection:

Pages: 1 2 3 4 5 6

CS-69 TCP/IP Programming June -2004

Question Paper of Semester no. v CS- 69 TCP/IP Programming June -2004

Q.I (i) Elaborate on IP subnet addressing. What is subnet masking? Give example.
Q.I (ii) What is remote login? What are software protocol required for remote login?

Q.I (iii) Sketch the 3 way handshake method for connection establishment and discuss the procedures.

Q.I (iv) How does sliding window protocol work? Show using diagram.

Q.I (v) How does DHCP work?

Pages: 1 2 3 4 5

CS -69TCP/IP Programming Dec -2003

Question Paaper of Semester no v CS -69TCP/IP Programming Dec -2003

Q.l(i) Explain the functioning of a bridge

(ii) Explain the working of Name Resolver

(iii) Differentiate between static and dynamic routing. List the relevant Protocols.

(iv) Describe IP subnet addressing.

(v)What are different flags of IP header? Write purpose of each

Pages: 1 2 3 4 5

CS-69 TCP/IP Programming June -2003

Question Paper of CS-69 TCP/IP Programming June -2003

Ql Answer the following questions:
(i)What is TCP/IP stack? Explain.

(ii) Elaborate on IP subnet addressing.

(iii) What are the different types of IP address components? Differentiate between different types of class also.

(iv)Describe the characteristic of DNS.

(v) Describe the features of ICMP.

(vi) How does the SMTP works?

Pages: 1 2 3 4 5

CS -69 TCP/IP Programming Dec -2002

Question Paper of CS -69 TCP/IP Programming Dec -2002

Question no.1(ii) Elaborate on IP Subnet addressing.

Question no.1 (iii) Describe TCP connection establishment Procedure through 3-way handshake method

Question no.1 (iv) Describe the following field in the IP header format:

Pages: 1 2 3 4 5 6

CS-69 : TCP/IP Programming of June 2002

Filed under:

Quesetion Paper of CS-69: TCP/IP Programming

Ql. Answer the following questions:
(i) Show by Calculation how many hosts per network each IP Address Class (A, B and C only) can have.

(ii) Show by calculation how many networks (no hosts). Each IP address class (A, B and C only) can have with one example each.

(iii) Physical, port and IP addresses are used in data communication, In a TCP/IP environment, what layers are they associated with?

(iv) Which of the TCP/IP transport protocols (TCP or UDP) would you select for the following applications and give justification?

(v) What are the two reasons for using layered protocols?

(vi) What is the main difference between TCP and UDP?

(vii) What are the disadvantages and advantages of TCP/IP reference model over OSI reference model?

Pages: 1 2 3 4



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