Download object oriented techniques ( ecs-503)

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
OBJECT ORIENTED TECHNIQUES ( ECS-503)
UNIT#1 & UNIT #2
1. A company consists of departments. Departments are located in one or more offices. One office acts as
a headquarter. Each department has a manager who is recruited from the set of employees. Your task is to
model the system for the company.
2. A token-ring based local-area-network (LAN) is a network consisting of nodes, in which network
packets are sent around. Every node has a unique name within the network, and refers to its next node.
Different kinds of nodes exist: works tations are originators of messages; servers and printers are
network nodes that can receive messages. Packets contain an originator, a destination and content, and
are sent around on a network. A LAN is a circular configuration of nodes.
3. Model a LAN in which we find two kinds of printers: ASCII printers can only print ASCII documents.
PostScript printers can print either ASCII or Postscript documents. The documents are sent around as
content of packets.
4. Explain the following terms:
i)Links
ii)Associations
iv)
Specialization
5.Explain UML with its conceptual model.
iii)Link Attribute
6. Explain the following terms Generosity
v)Multiplicity
7. Differentiate among the following
i)Aggregation and generalization
ii)Generalization
iv)Abstraction
v)Encapsulation
8. What is modelling? And What are the principles of modelling?
9. What do you understand by scenario? Explain event scenario for: Checking mails in
mailbox(inbox)
10.Difference between (i) State and activity diagram (ii) Component and deployment diagram
11.Prepare a class diagram from the following instance diagram:
12.Prepare a portion of an object diagram for a library book checkout a system that shows the
date a book is issue and the late charges for an over due book as derived object.
13.Draw a sequence diagram for writing an algorithm for a problem with steps.
14. What do you understand by collaboration diagram? Explain with example.
15. Discuss deployment diagram with example.
16. What is object oriented methodology? Discuss the various stages in it.
17.What do you understand by Abstraction?
18. Explain the following terms:
a)
b)
c)
d)
Links
Associations
Link Attribute
Multiplicity
19. Differentiate among Aggregation and Association by taking a suitable example?
20. Explain event and state by taking a suitable example.
21. What do you mean by event trace?
22. What is state diagram?
23. What are nested state diagrams? Explain by taking a suitable example.
24. What do you understand by Event Generalization?
25. What is object oriented methodology?
26. What do you understand by use case diagram?
27. Draw the state diagram for phase line.
28. Explain event trace for a phone call.
29. What do you understand by Concurrency?
30. Differentiate between Aggregation and Generalization?
31. What are static functions and static variables in a class?
32. What are limitations and advantage of having such variables and classes?
33. What are different kind of inheritance?
34. What is multiple inheritance?
35. State purpose of an inheritance.
36. Explain with example of runnable interface.
37. What do you understand by encapsulation?
38. What do you understand by Identity?
39. What is OOP approach?
40. What do you understand by conditional state transitions and state action?
41. What do you understand by double buffering?
42. What do you understand by java servlets?
43. Discuss the life cycle for a servlet?
44. What is dynamic model?
45. What is the difference dynamic model and object model?
46. What is metadata?
47. How it is important in object oriented methodology?
48. What is dynamic modelling?
49. What are nested state diagrams?
50. Discuss various ways of implementing DFD?
UNIT#3
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Compare between SA/SD and OMT Modelling.
Differentiate between overloading and overriding?
What is an inner class? Explain with a suitable example.
What is package in java? Explain with a suitable example.
What is a thread? Discuss java thread model.
Differentiate between byte stream and character streams?
What is an exception? Discuss how exception handling is done in java language?
What do you understand by Applet Layout Manager?
What do you understand by AWT?
What do you understand by string handling?
What do you understand by Event handling?
Discuss reasons for migrating from C++ to java?
Discuss the various features OMT?
Explain multiprocessing and multithreading with the help of suitable example?
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
What do you understand by operation in functional modelling and object modelling?
How do we handle deadlock in case of multithreading?
What is AWT? Explain its applications and working with windows?
How do we use templates in generic programming?
How java is strongly connected with the internet?
Comment on this “java is a robust language having all OOP features”.
Why is java known as true object oriented and sacred than other languages?
Explain java is Platform free language.
What is dynamic model? What is the difference between dynamic model and object model ?
What are Jackson Structured Development methodologies to software engineering?
25. Discuss OMT methodologies?
UNIT#4
1. How could Java classes direct program messages to the system console, but error messages, say
to a file?
2. What’s the difference between an interface and an abstract class?
3. Why would you use a synchronized block vs. synchronized method?
4.
5.
6.
7.
8.
9.
10.
11.
Explain the usage of the keyword transient?
How can you force garbage collection?
How do you know if an explicit object casting is needed?
What’s the difference between the methods sleep() and wait()
What’s the difference between constructors and other methods?
Can you call one constructor from another if a class has multiple constructors
Explain the usage of Java packages.
If a class is located in a package, what do you need to change in the OS environment to be able to
use it?
12. What’s the difference between J2SDK 1.5 and J2SDK 5.0?
13. What would you use to compare two String variables - the operator == or the method equals()?
14. Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are
written?
15. What can go wrong if you replace && with & in the following code:
String a=null;
if (a!=null && a.length()>10)
{...}
16. What’s the main difference between a Vector and an ArrayList
17. When should the method invokeLater()be used?
18. How can a subclass call a method or a constructor defined in a superclass?
19. What’s the difference between a queue and a stack?
20. Create an abstract class that contains only abstract methods. On the other hand, you can create an
interface that declares the same methods. So can you use abstract classes instead of interfaces?
21. What access level do you need to specify in the class declaration to ensure that only classes from
the same directory can access it?
22.public class ArrayDemo {
public static void main(String[] args) {
int [] arr1,arr2;
arr1=new int[1];
arr2=new int[2];
arr1[0]='\n';
arr2[0]='a';
System.out.print(arr2[0]%arr1[0]);
}
}
What will be output of above program?
23. class Try
{
public int a;
}
public class ClassDemo {
public static void main(String[] args){
Try t=new Try();
t.a=4>>>2+3%5;
System.out.println(t.a);
delete t;
}
}
What will be output of above program?
23.What will be output of following program?
public class EnumTest {
public static void main(String[] args) {
char c=65;
System.out.print(c);
}
}
What will be the output of above program?
24. Create a class Student,which has a roll no. and a name field.Initialize these fields in the constructor of
the class.
25.Declare a class employee having essential fields required for an employee.subclass it for a manager
class and add extra fields.
UNIT#5
1. Create an applet to display a welcome message and embed it in a web page?
2. Display a text “This is a mathematical applet” in an applet ? Set the color of that text to cyan and font
as times roman,28,bold and italics.
3. What do you understand by EJB. Explain with example and Its architecture?
4. Java beans follows “write once and run anywhere policy”. Explain it?
5. List out the benefits of using java beans?
6. Write code for the life cycle of a servlet.
7. What do you understand by JDBC ODBC connectivity?
8. Discuss in details all kinds of drivers in JDBC?
9. Discuss the various features of the lavatron applet and scrabbles.
10. Discuss any six methods available in dynamic billboard applet
11. Write short notes on:
a) IO streams
b) Lavatron Applets
c) Packages in java
12. Explain brief functioning of upper layer email.
13. Differentiate between C++ and java.
14. Write a java program to read into matrices from the keyboard and compute their sum.
15. What do you understand by JVM.
16. What do you understand by Multithreading?
17. What do you understand by utility classes?
18. What do you understand by Applets?
19. What do you understand by Layout Managers?
20. What are various introspection Mechanisms to inter information about a bean?
21. What do you understand by Adjustment event?
22. What do you understand by Font metric class?
23. What do you understand by Java constructors and features that facilitate reuse?
24. Define applet. Also discuss applet life cycle using a diagram and explain its various states?
25. What do you understand by Exception handling techniques?