Posts which you will also like.

Monday, November 23, 2009

Object-Oriented Systems Development-2


Object-Oriented Systems Development
  1. Let us assume that there are two classes, namely M and N. Consider the following statement:

M calls a member of N

Which object-oriented relationship can provide this information?

a) Use relationship

b) Containment relationship

c) Inheritance relationship

d) None of the above

  1. Which of the following is associated with the process of a class organization?

a) Single-tree model

b) Forest model

c) Both a and b

d) None of the above

  1. Which of the following is NOT true about prototyping process?

a) It is the process of building and testing a working model of the proposed system

b) It is the process of time consuming and expensive

c) Both a and b

d) None of the above

  1. Which of the following can be used to identify the objects in object-oriented design?

a) Textual analysis

b) Data flow diagram

c) Both a and b

d) None of the above


Read More ->>

Object-Oriented Systems Development


MCQs on Object-Oriented Systems Development

1. Which model of object-oriented paradigm replaces the classic “water-fall” model of procedure-oriented development?

a) Fountain model

b) Spiral model

c) Throwaway prototyping model

d) None of the above

  1. Functional decomposition technique can be used to implement _________.

a) Spiral model

b) Water-fall model

c) Reuse model

d) Fountain model

  1. Which of the following is true about object-oriented analysis (OOA) approach?

a) Identifies the objects and their attributes

b) Identifies the services that each object is expected to provide

c) Establishes interconnections between the objects

d) All of the above

  1. Data flow diagram is also known as________.

a) Bubble chart

b) Data flow graph

c) Both a and b

d) None of the above

  1. Which of the following can be used to identify the services provided and received by objects?

a) Information Flow Diagram

b) Entity-Relationship Diagram

c) Either a or b

d) Neither a nor b

  1. Which relationship defines ‘is_a’ relationship in object-oriented design?

a) Containment relationship

b) Inheritance relationship

c) Use relationship

d) None of the above




Read More ->>

Program to illustrate the use of class templates

-----------------------------------------------------------------------------
/*C++ program to illustrate the use of class templates*/
-----------------------------------------------------------------------------
#include
#include
const int MAX=10;
template
class stack
{
T stk[MAX];
int top;
public:
stack()
{
top=-1;
}
void push(T data)
{
if(top==MAX-1)
cout< else
{
top++;
stk[top]=data;
}
}
T pop()
{
if(top==-1)
{
cout< return NULL;
}
else
{
T data=stk[top];
top--;
return data;
}
}
};
void main()
{
clrscr();
stacks1;
s1.push(10);
s1.push(20);
s1.push(30);
cout<stacks2;
s2.push(3.14);
s2.push(6.28);
s2.push(8.98);
cout<getch();
}

OUTPUT:
10
20
30
3.14
6.28
8.98D
Read More ->>
DMCA.com Protected by Copyscape Online Plagiarism Tool