You are on page 1of 10

OOP Old Papers Questions Set I 1. a)Members of a community interact with one another by making requests. Explain how.

(8+8m) b) What does it mean for one method to override another method from a parent class? 2. a) What is byte code? What are the advantages of translating a Java program into (8m) byte code? b) Explain various Arithmetic and Bitwise operators supported by Java and explain each with examples. (8m) 3. a) Explain the difference between the method overloading and method overriding with an example for each. (8m) b) Distinguish between abstract methods and non-abstract methods with an example. (8m) 4. a) Explain the difference between an interface and a class with an example each. (8m) b) Explain in detail various forms of interface implementations. (8m) 5. a) Briefly discuss the life cycle diagram of the thread and explain its stages. (8m) b) What are built in exceptions? With an example, describe checked and unchecked exceptions. (8m) 6. a) What is delegation event model? Briefly describe the roles of sources and listeners. ( 8m) b) What are Event classes? When the ActionEvent is generated? Describe the integer constants of ActionEvent class. (8m) 7. a)What is an applet? What packages are to be imported while writing an applet program? Explain why those packages are needed? (8m) b)Explain with an illustration the steps to follow to use a scroll pane. (8m) 8. a)What is a socket? Why are they important in modern communications? (4m) b)Give the syntax of the following methods of DatagramPacket class and explain: getAddress( ), getData( ), getLength( ), setAddress( ), setData( ) (12m)

Set II 1. a) Explain the fundamental characteristics of Object Oriented Programming. (8+8m) b) Explain how the members of a community interact with one another. 2. a) What is a variable? Explain the scope and lifetime of variable with appropriate (8m) examples? b)Write a Java program to print the following : (8m) ***** **** *** ** * 3. a) What is an Object class? Explain the object hierarchy. (8m) (8m) b) Explain the usage of super keyword with an example. 4. Explain the process of creating, defining, importing and accessing a package with suitable examples. (16m) 5. a) Briefly discuss the thread priorities. (6m) b) What is an Exception? Briefly discuss Termination and Resumption models of (10m) exception handling. Is java uses termination or resumption model of exception handling? 6. a) Describe Event, Event Sources and Event Listeners? (8m) b) Describe in detail about the AWT class hierarchy. (8m) 7. a)What is an applet? What are the two types of applets? Explain briefly. (8m) b)Explain with an example the steps to follow to use a tree. (8m) 8. a)What is a port? List any four well-known ports. (6m) b)Explain how multiple clients can be serviced by a server? (10m)

Set III 1. a) What is the need for Object Oriented paradigm? (8+8m) b) What is a class inheritance hierarchy? How is it linked to classes and behavior? 2. a) What is Java Applet? How its creation does change internet programming? (8+8m) b) Write a Java class Stack that implements a stack of integers. Write a tester program to demonstrate Stack class. 3. a) What is dynamic method dispatch? Write a Java program to demonstrate dynamic method dispatch. (8m) b) Consider the following Java program: public class MainTest { public static void main(String[] args) { C obj = new C( ); System.out.println(obj.max(13,29)); } } class A { int max( int x, int y) { if(x > y) return x; else return y; } } class B extends A { int max(int x, int y) { return super.max(y,x)-10; } } class C extends B { int max(int x, int y) { return super.max(x+10,y+10); } } Find the output of the above program by stating the necessary reasons. (8m) a) Explain the difference between an interface and an abstract class with an example. (8m)

b) List and explain any four classes available in java.io package (8m) 5. a) What is an Exception? Explain the hierarchy of Exception types. (6m) b) What is default exception handler? With an example java program, explain the same. Is it essential to catch all types of exceptions? (10m) 6. a) What is an EventObject? What are the two methods of EventObject? Describe AdjustmentEvent class. (8m) b) What is Component class? In what way it is related to Container class? When the ComponentEvent is generated and describe the component event types. (8m) 7. a) Why Swing applets are more popular than AWT based applets? (2m) b) What are the three models JTable relies on? What are the steps required to set up a simple JTable that can be used to display data? Explain with an example. (14m) 8. a) Explain client/server communication? (8m) b) What is HTTP? How does it work? (8m)

Set IV 1. a) One principal of object-oriented problem solving is the vehicle by which activities are initiated. Explain. b) What is a class? How are classes linked to the behavior? 2. a) Explain how JAVA changed the Internet. b) What is method overloading? Explain with an example. 3. a) Explain an abstract class with an example. (8m) b) Explain the usage of final keyword. (6m) c) What is the difference between print( ) and println( ) methods. (2m) 4. a) Explain the various forms of access protection in Java. (8m) b) Explain the usage of StringTokenizer class with an example (8m) 5. a) Describe throw, throws and finally clauses. (9m) b) What is Daemon thread? Differentiate between process and thread. (7m) 6. a) What are the Adapter classes? Briefly describe the MouseMotionAdapter class ( 8m) b) What is a FocusEvent? In what way it is related to ComponentEvent ? Briefly describe the FocusEvent Class. (8m) 7. a)How applet differs from an application? (8m) b)Mention the two models on which JTree relies on. What are the various events generated by JTree and what are the corresponding event listeners? Mention the corresponding package for these classes and interfaces. (8m) 8. a)Explain how socket communication takes place. (8m) b)What are factory methods? Explain the three commonly used InetAddress factory methods. (8m)

Set I (a) Describe agents, responsibilities, messages and methods in the way of viewing the 1. world. (b) A super class variable can reference a subclass object, describe in detail. (a) Briefly describe the type conversion mechanisms. 2. (b) With an example, explain scope and lifetime of variables. (a) With an example, explain the importance of this keyword in java. 3. (b) With an example, explain java method overloading, in what way it is different from method overriding? What is a package? Create a simple package and describe its usage? Write a java 4. program using any five functions or methods of math package. (a) Create a java program for: a class with a main ( ) that throws an object of class 5. Exception inside a try block. Give the constructor for Exception a String argument. Catch the exception inside a catch clause and print the String argument. Add a finally clause and print a message to prove you were there. (b) Difference between Hash Map and Hash Table? (a) Describe any four Mouse events. 6. (b) Describe Border and Grid Layout managers. (a) Describe the differences between Swing and AWT? 7. (b) Explain, how would you detect a key press in a JComboBox? 8. Write short notes on (a) Tabbed Pane and Scroll Pane (b) Adapter classes (c) MVC Architecture Set II 1. (a) Write a java program using command line arguments, and explain. (b) Describe agents, responsibilities, class hierarchies and method binding in the way of viewing the world. (a) Briefly describe the type conversion mechanisms. 2. (b) Describe different levels of access protection available in java. (a) What is an interface? In what way it is different from class? Describe the similarities 3. between classes and interfaces. (b) Describe the various forms of implementing interfaces.

(a) What is CLASSPATH? Describe various levels of access protection. 4. (b) What is an Adapter class? Briefly discuss MouseMotionAdapter class. 5. (a) Briefly describe exception hierarchy. (b) Briefly discuss the thread priorities. (a) What is an Input Event? Briefly discuss its sub classes. 6. (b) Describe any four window events. (a) With an example, explain how will pass parameters to an Applet. 7. (b) Describe the thread-safe Swing methods? 8. Write short notes on (a) Lists and choice (b) Frame and JComponent (c) Ports and Sockets Set III (a) With an example, explain java recursion mechanism. 1. (b) Briefly describe the importance of the OOP paradigm. (a) What is a constructor? Describe its special properties. 2. (b) Write a java program to fix the float decimal places up to 5 digits, and explain. Describe in detail the benefits of inheritance. 3. (a) How do we add a class or an interface to a package? 4. (b) With an example, explain the implementation of java interface. (a) Briefly describe the concepts of exception handling. 5. (b) Describe the importance of synchronizing threads. 6. Write a program that draws a square. As the mouse moves over the drawing area, repaint the square with the upper left corner of the square following the exact path of the mouse cursor. (a) Describe Flow and Border Layout managers. 7. (b) Describe Card and Gridbag Layout managers. 8. Write short notes on (a) Check box group and Radio button (b) Synchronization (c) Daemon threads

Set IV (a) Briefly describe the importance of the OOP paradigm. 1. (b) Write a java program to type cast a String variable to integer variable, and explain. 2. (a) Describe java garbage collection mechanism? (b) Write a java program using any five String library functions. With an example, explain the inheritance for specialization, specification and 3. construction. (a) What is an Exception? Describe Checked and Unchecked Exceptions? 4. (b) Write a java program to generate and catch an IndexOutOfBoundsException, and prove that always finally block will execute. (a) Discuss Termination model and Resumption models of exception handling. 5. (b) Draw and explain the life cycle of a thread. (a) Briefly describe Events, Event Sources and Event Listeners. 6. (b) Describe Mouse Event and Mouse Wheel Event classes. 7. (a) Write a program that randomly draws characters in different font sizes and colours. (b) What is an InputEvent? Briefly discuss its sub classes. 8. Write short notes on (a) Limitations of AWT (b) Adapter classes (c) Trees and Tables

Production Technology Set I 1. (a) Explain using simple sketches the following pattern types : i. Skeleton pattern. ii. Cope and drag pattern. (b) How does the grain size distribution of the molding sand affect its strength ? 2. (a) Give the classification of centrifugal casting. Discuss the applications of each class. (b) Discuss the various types of gates that are normally used. 3. ( a)Draw neat sketch of submerged arc welding and explain the various equipment used in it. (b)What are the basic types of oxyacetylene flames used in oxyfuel gas welding and cutting operations? Explain briefly. 4. a)What are the various steps involved in friction welding process? Explain them with simple sketches. b)Explain the various welding discontinuities caused by inadequate or careless application of established welding technologies. 5. Explain the metal deformation process: Rolling, Forging, extrusion and Drawing and differentiate them with their function. 6. Describe the methodology involved in manufacturing of Pipe and tube 7. (a) Compare and contrast the processes of direct extrusion and indirect extrusion. (b) What is cold impact extrusion? Explain how it is done. 8. (a) Write the properties and applications of the following thermoplastic materials: Polyethylene; Polystyrene; Teflon; Nylon (b) Explain the following: Fillers; Stabilizers; Plasticizers Set II 1. (a) What are composite moulds? Why are they used? Where are they used? (b) What are different types of gates used in sand moulding process? 2. Suggest suitable modifications to an existing cupola to obtain (i) Fuel economy (ii) Higher tapping temperature (iii) Improved quality of liquid metal 3. a)Explain the plasma arc welding process with the help of neat sketches. b)Explain the general guidelines to be considered while designing welded joints. 4. a)What are the various destructive testing techniques to test the welded joints quality? Explain briefly any two types. b)Draw and explain the shape of fusion zone in friction stir welding process as a function of force and speed 5. What are the effects on recrystallisation of temperature, time, and reduction in thickness in cold working process? 6. Write about Hot spinning process with neat sketch 7. (a) What is Sleeve method of direct extrusion? Explain. With a neat sketch, show how it

is done. (b) Write brief notes on the following types of extrusion: Tube extrusion; Stepped extrusion 8. (a) Define and explain what is a polymer, and classify them. (b) What are Plasticizers and fillers? Explain them briefly. Set III 1. (a) Why is match plate pattern is much easier to use than a standard pattern? Explain. (b) What are the undesirable effects that could result from turbulence of the metal in the gating system and mould cavity? Explain. 2. (a) State the differences between true-centrifugal casting, semi-centrifugal casting, centrifuging. Which method is used for cast iron pipe production. (b) Discuss the various elements that comprise the gating system. 3. a)Draw the simple sketch of metal arc welding process and explain the equipment used in the process. b)Draw the simple sketches of the following weld joints: i) Butt joint ii) Corner joint iii) T joint iv) Lap joint 4. a)What are the various nondestructive testing techniques? Explain any one method briefly b)List the various brazing methods used in the industries. Explain any two methods briefly. 5. Describe the advantages and limitations of hot working with reference to micro and mechanical structure 6. Discuss about the advantages and limitations of Hot spinning process 7. (a) Write brief notes on the following types of extrusion: Impact extrusion; Hydrostatic extrusion (b) With a neat sketch, describe the process of indirect extrusion. 8. (a) Write short notes on the following used in plastics: Plasticizers; Catalysts; Solvents (b) Distinguish between addition polymerization and condensation polymerization

Set IV 1. a) Explain different pattern materials used with their merits and demerits. b) Explain the function of sprue well in gating system with neat sketch 2. (a) Discuss the shell molding process with the help of neat sketch. (b) Give the relevance of the following with reference to a casting i. Sprue ii. Runner iii. Ingate 3. a)What is the main application of spot welding process? Discuss the sequence of operations in resistance spot welding process with the help of simple sketches. b)What are the functions of electrode coatings? 4. a)What is TIG welding process? With the help of neat sketch, explain the process of TIG

welding. b)What are the different types of solders used in soldering technique? Discuss their applications. 5. Describe Theory of rolling and mechanics of rolling 6. Explain the principle of operation of Press used for sheet metal working for cutting operation 7. (a) Define extrusion, and describe its characteristics. (b) Distinguish between hot extrusion and cold extrusion wrt their advantages and limitations. 8. (a) Write short notes on the following used in plastics: Flame Retardants; Lubricants; Dyes and pigments (b) Differentiate between natural resins and synthetic resins.

You might also like