B.TECH - Semester 5 object oriented design and java programming Question Paper 2021 (mar)
Practice authentic previous year university questions for better exam preparation.
Sample Questions
- List the principles of good design of a software.
- What is the output of the following code segment? try \{ ``` int i = 10/0; System.out.printIn("i is " + i); } catch (Exception e) { System.out.print("An exception!"); } finally { System.out.print("No exception here!"): } ```
- Show the usage of Interface in Java.
- List the applications of frame class in AWT.
- What is Parameterized Constructor? ( $5 \times 4=20$ Marks) P.T.O. Answer any one full questions from each Module.
- What is the main aim of Jacobson Methodology? Explain the models used in Jacobson approach with illustration.
- (a) Using Object oriented approach design a payroll system that process employee records at a small manufacturing firm. The company has several classes of employee with particular payroll requirements and rules for processing each. It has three types...
- (b) Explain UML's nine graphical diagrams with real time examples.
- Demonstrate why the size of a char array that is declared to store a string should be one larger than the number of characters in a string.
- Create a Java class that would implement the Runnable Interface. Create two or more threads of the created class and set different priority. Apply appropriate thread methods to display the threads with its name and priority.
- Describe the methods of DatagramSocket and DatagramPacket class.
- Explain multithreading with example.
- Create the partial Java AWT applet code segment to draw the following: (a) A rectangle that has a left-top at $(10,10)$ and has a width 60 and height 50
- Create the partial Java AWT applet code segment to draw the following: (b) A filled oval that has a left-top at $(80,10)$ and has a width 50 and height 50
- Create the partial Java AWT applet code segment to draw the following: (c) An arc that has a left-top at $(150,10)$ and has a width 70 . height 70 starting from $0^{\circ}$ to $180^{\circ}$.
- (a) Explain how Java database connectivity is implement.
- (b) Explain the concept of java beans.