Ads Top

MID TERM PAPER OF CS711

MIDTERM PAPER OF CS711

Q1 suggest output a code was given
Q2: Common coupling with example
Q3: polymorphism with example
Q4: A function was given to tell whether it validates or violates open/close principle
1.    What are static methods? Explain with example.
2. Common coupling. Explain with example.
3 & 4. Java codes were given that they conform ocp. Explain
1. How extensibility is used? Explain in detail
2.What is polymorphism explain with example
3. Code was given and we have to identify cohesion and coupling in it
4. We have to design a banking system in which there are several clients who are availing the facility of maintaining the account in the bank. As an international norm bank is offering multiple type of accounts to its customers like savings, current etc. Each account is having a facility of deposit and withdrawal attached with it for its client We have to design the system in such a way that should accommodate the addition of new account types i-e profit and loss account etc. without change in the design of the system
MIDTERM PAPER OF CS711
Q1. Explain the common coupling with example.
Q2. Explain polymorphism with example.
Q3. What is the output of the code?
Note:
val.charAt(i) prints a character at ith place
string val;
int i;
boolean beginWord;
name= "This Is An Example of Palendrome";
beginWord = true;
for(i=0; i<val.length(i); i++)
{
if(beginWord)
System.println(val.charAt(i));
if(val.charAt(i)==" ";
beginWord=true;
else
beginWord=false
}
Q4. A code was give 
there was three classes
instruments
guitar
villen
play music
it was to tell that this code follows the open close principle or not

MIDTERM PAPER OF CS711
1. Advantage and disadvantage of adapter design?
2. shallow coupling
3. Are design patterns a form of reuse? If so, what are you reusing in software design or design pattern?
4. Intent and motivation of factory pattern
5. What is a non-GUI example of a flyweight?
6. The Template Method relies on inheritance. Would it be possible to get the same functionality of a Template Method, using object composition? What would some of the tradeoffs be?
7. A big sequence diagram was given to identify the pattern and which pattern u suggest for this and also write the scenario where this diagram fits 15
8.A big scenario was given to make all possible class diagrams and also apply suitable pattern and make the class diagrams again

MIDTERM PAPER OF CS711
Control Coupling +Example.
Aggregation+ Example.
Abstract Class with example.
Open Close principle code, explain it violates or not.
Top of Form

Q1: you have to write a complete class of name Counter which counts like 0,1,2,3...,5, 6... 

It has 2 methods get counter (), returns count and add() which add 5 to the counter
write the complete class                                   5 Marks
Q2: procedural cohesion with example            5 Marks 
Q3: OCP with example                                     10 Marks 
Q4: Association                                                5 Marks

MIDTERM PAPER OF CS711
Q1: Define polymorphism with example.                      10 marks
Q2: Define association with example.                          10 marks
Q3: Communicational cohesion with example.                         5 marks
Q4: Write the output of given program.                       5 marks
Code was something like this.
Public class parent {
Public void printinfo{
System.out.println("inside the parent's method");
}}
Class child extends parent{
Public void printinfo{
printinfo();
}}
Public static void main{
Parent= new child();
p.printinfo();
}
MIDTERM PAPER OF CS711

1. Difference between interface and abstract.                                                 5 marks
2. How does extensibility helps.5 marks
3. Describe association with example.                                                  10 marks
4. A code give describe that is it violate or not according to OCP.       10 marks

No comments:

Powered by Blogger.