Sunday, 13 July 2014

JAVA QUESTION PAPERS-JAN 2014


II B. Tech II Semester Supplementary Examinations January – 2014
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1. a) Discuss the advantages of object oriented paradigm.
b) Discuss briefly about method binding, overriding and method overloading in Java.
2. Explain in detail about the ways of achieving run-time polymorphism in Java with suitable
program.
3. a) Explain with a sample Java program the various modes of usage of “this” keyword.
b) Differentiate between Abstract class and Concrete class. Illustrate with example.
4. a) Discuss the significance of CLASSPATH for Java packages.
b) Explain how to define and implement an interface.
5. What are Java’s unchecked Runtime Exception Subclasses? Explain them with suitable
examples.
6. Discuss life style of an Applet and communication among applets.
7. Write Java program to handle Keyboard events.
8. What is the advantage of Layout managers? Why Java prefers Layout Managers instead of
fixing the component by x and y coordinates? What are the different Layout managers AWT
supports?


II B. Tech II Semester Supplementary Examinations January – 2014
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1. a) Discuss about Encapsulation and Polymorphism
b) How to cope with complexity using OOP?
2. a) What is meant by the class scope? Explain
b) How object is created for the class in java? Explain with the syntax and example.
c) Write about type casting.
3. What are the types of inheritances in Java? Explain each of them in detail with a program
segment
4. What is an interface? How is it different form a class and abstract class? Discuss its usage with
a program.
5. a) List out various string constructors in Java? Explain them with suitable examples.
b) What are special string operations? Explain any two of them.
6. Write short notes on the following:
a) Secure Applets.
b) Passing parameters to Applets
7. Write a program that copies content of one file to another file by removing unnecessary spaces
between words.
8. Write short notes on the following:
a) Tabbed Panes
b) Scroll Panes
c) Trees
d) Check Boxes

II B. Tech II Semester Supplementary Examinations January – 2014
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1. a) What is meant by class responsibilities? Explain with suitable examples how the
responsibilities of a class can be implemented
b) Write short notes on abstraction.
2. a) What is meant by constructors? Discuss their importance and explain various types of
constructors that Java support with a sample Java program.
b) What is meant by type casting? Explain with a sample Java program
3. a) State and explain with a sample program the various forms of inheritance and also explain
the advantages and drawbacks of inheritance
b) What is meant by an abstract class? Discuss its significance with a sample Java Program
4. a) State and explain various methods defined by Applets classes.
b) Write about types of applets.
5. Explain the following terms briefly:
a) Component
b) Container
c) Panel
d) Window
6. Why applets are preferred over applications? Explain lifecycle of an applet with a program
7. a) Write about nested classes
b) Explain grid bag layout with example.
8. a) In What way JList differ from JComboBox?
b) Write a stand-alone AWT based application which creates a frame window that responds to
mouse clicks and key strokes.

II B. Tech II Semester Supplementary Examinations January – 2014
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1. a) Discuss briefly about method binding, overriding and method overloading in Java
b) Discuss the different ways in which Java achieves “one interface, multiple methods” aspect
of polymorphism
2. a) What does toString( ) method returns? How is it handled in Java? Explain with an example
b) Describe the usage of ‘final’ and ‘finalize’ keywords.
3. a) Discuss in detail about nested classes with examples.
b) Write about substitutability
4. a) Prove that field in an interface are implicitly static and final.
b) What is the importance of CLASSSPATH for packages? Explain with an example.
5. What are the Java’s unchecked exceptions defined n java.lang? Explain the with suitable
examples.
6. Create an Applet with two toolbars. One toolbar should be created with JButtons and a
separator and another toolbar created using custom Action classes. Add one to the north
another to the south sides of border layout. When user clicks one of the buttons in toolbar it
will print a message to the console stating that which button is being pressed from which
toolbar. Add functionalities to the button such as New, Open, Close, Save, Cut, Copy, Paste.
7. Describe the following along with their methods and Constructors
a) ActionEvent,
b) AdjustmentEvent
c) ComponentEvent
d) ContainerEvent.
8. a) JList does not support scrolling. Why? How this can be remedied? Explain with an example.
b) Write about JTabbedPanes.

JAVA QUESTION PAPERS-DEC 2012


II B. Tech II Semester, Supplementary Examinations, Dec – 2012
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1. a) Explain the object oriented paradigm.
b) What are abstraction mechanisms? Explain them with suitable examples.
2. a) Distinguish between class and object. Explain the usage of ‘this’ keyword with an example.
b) Explain with a sample java program ‘garbage collection’ in Java.
3. a) Explain with a sample java program how dynamic method dispatch can be done.
b) What is meant by an abstract class? Explain its usage with a java program.
4. a) Discuss the differences between classes and interfaces.
b) Explain setting CLASSPATH for a new package with an example.
5. a) What are built-in exceptions in Java? And also explain how to create own
exception sub-classes.
b) Explain about daemon threads and thread groups.
6. a) Define the term “Applet”. Explain the difference between Applets and Applications.
b) Explain with an example how to provide Applet to Applet communication.
7. a) What is meant by Event Listener? Explain delegation event model.
b) Explain with a sample Java program how to use boarder and grid layout managers.
8. Write short notes on the following:
a) Radio buttons
b) Combo boxes
c) Text fields.
1 of 1

II B. Tech II Semester, Supplementary Examinations, Dec – 2012
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1. a) Discuss the advantages of object oriented programming over procedure oriented
programming.
b) State various OOP concepts and explain any four of them with suitable examples.
2. a) Distinguish between method overloading and method overriding.
b) Explain the concept of recursion in Java with an example.
3. a) What is meant by inheritance? Discuss the member access rules in it.
b) Explain the usage of ‘final’ keyword.
c) Write about polymorphism
4. a) What is meant by package? Explain with a sample program how to define and access
packages.
b) Explain clearly how to define and implement interfaces.
5. a) What is meant by an “Exception”? Explain with a sample program about nested try
statements.
b) Explain the process for creating own exception subclasses.
6. a) Discuss the importance and life cycle of Applets.
b) Explain with a sample Java program how to pass parameters to applets.
7. a) Explain the significance of Adapter classes.
b) Write a Java program for handling keyboard and mouse events.
c) Discuss card layout manager.
8. Write short notes on the following:
a) JFrame
b) Combo boxes
c) MVC architecture.

II B. Tech II Semester, Supplementary Examinations, Dec – 2012
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1. a) Discuss the need for object oriented paradigm. And also discuss its advantages.
b) Differentiate between object oriented programming and procedure oriented programming.
2. a) What is meant by type casting? Explain with suitable examples.
b) Explain about access control for class members.
c) Discuss string Tokenizer class.
3. a) Discuss the advantages and drawbacks of inheritance. And also explain how a super class
variable can refer a subclass object.
b) What is meant by polymorphism? Explain its usage with a sample Java program.
4. a) Differentiate between class and interface.
b) Explain how to define and import packages.
c) Explain about variables in interfaces.
5. a) What are the benefits of exception handling? Discuss the usage of ‘throws’ and ‘finally’
keywords.
b) Discuss multithreading and also discuss about thread lifecycle.
6. a) Distinguish between Applets and applications. Explain with a suitable example how to
create applets.
b) Explain with an example how to provide communication among applets.
7. a) Explain with sample Java program creation of labels, buttons and text components.
b) What are the various Layout managers that the Java supports? Explain them.
8. Write short notes on the following:
a) JScroll panes
b) Text fields
c) MVC architecture.

II B. Tech II Semester, Supplementary Examinations, Dec – 2012
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
1. What are the advantages of the object oriented programming? State and explain with suitable
examples the various concepts of OOP.
2. a) Distinguish between scope and lifetime of variables. Explain with a sample Java program
about global scope and local scope.
b) What is meant by constructor? What are the various types of constructors that can be used
in Java programming? Explain their usage with a sample program.
3. a) Explain how to use ‘Super’ to call super class constructors. Give an example program.
b) What are the benefits and costs of inheritance? Explain.
4. a) What is meant by interface? Discuss its significance. Explain how it can be implemented.
b) What are advantages of using packages? Explain about importing packages.
5. a) Discuss the exception hierarchy and benefits of exception handling.
b) What is meant by “thread”? Discuss with sample Java program the various approaches for
creating threads.
6. a) Define the term “Applet”. What are the advantages of it over application?
b) What are the types of Applets? Explain them with suitable examples.
7. a) What is meant by event handling? Explain how the mouse and keyboard events will be
handled.
b) What are layout managers in Java? Explain them with suitable examples.
8. Write short notes on the following:
a) MVC architecture
b) JComponent
c) JTabbed panes.

JAVA QUESTION PAPERS- APRIL 2012


II B.Tech II Semester, Regular Examinations, April – 2012
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~
1. a) How to create and execute a java program? Explain with an example.
b) What do you understand by dynamic method dispatch? Explain with the help of an example.
2. a) What is meant by overloading methods? What are the advantages of overloading concept?
b) Write about automatic type conversion and explain when casting is needed with an example.
3. a) Discuss why casting a super class reference to a subclass reference is potentially dangerous.
b) How multiple inheritance is achieved in Java? Explain with an example.
4. a) What is interface? What are the possible contents of an interface? Explain.
b) List the differences between Interface and abstract class.
5. a) Write a java program to create a thread that displays odd numbers starting from 1 to 100.
b) Is it essential to catch all types of exceptions? Justify your answer.
6. Design an applet to display three buttons “Red”, “green”, and “blue”. The color of the back
ground changes according to the button presses by the user. Also, write the HTML code to
display the applet.
7. a) With an example show the handling of mouse events in JAVA.
b) Briefly explain AWT class hierarchy.
8. a) Write short notes on following: Components and containers
b) Write a java program for creating tables using swings.

II B.Tech II Semester, Regular Examinations, April – 2012
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~
1. a) Explain in detail the following principles of object oriented programming
i) Data encapsulation and data hiding ii) Inheritance and polymorphism
b) What is byte code? Explain its usefulness while translating a Java program in a wide
variety of environments.
2. a) Explain the different types of decision making and branching statements with an example.
b) What is a constructor? What are its special properties?
3. a) Create an abstract base class shape with two members base and height, a member function
for initialization and a pure virtual function to compute area ( ). Derive two specific classes
Triangle and Rectangle which override the function area ( ). Use these classes in a main
function and display the area of a triangle and a rectangle.
b) What is the difference between method overriding and method overloading? Explain with
example. [
4. a) What is interface? What are the possible contents of an interface? Explain. State the
advantages of using interface
b) List the differences between Interface and abstract class.
5. a) Define Thread and explain the implementation of thread with an example program.
b) What is finally block? Discuss the utility of using the finally block with an example.
6. a) Write the steps for creating and executing an applet program with an example.
b) Why do applet classes need to be declared as public? How many arguments can be passes to
an applet using <param> tag?
7. a) Explain the delegation event modes? Explain the role of source and listeners with an
example.
b) Briefly explain various types in the layout manager with suitable examples.
8. a) What is AWT? Give the limitations of AWT.
b) Briefly explain MVC architecture.

II B.Tech II Semester, Regular Examinations, April – 2012
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~
1. a) Explain the difference between an object and a class?
b) What is the use of finalize () method? What is its disadvantage?
2. a) Explain creating and accessing class members using object with an example.
b) List and explain any five string functions with an example program.
3. a) Discuss about different forms of inheritance with an example.
b) Why should you use the keyword super in your java program? Explain with example
4. a) Explain the implementation of runnable interface with an example.
b) Show with an example, how you can organize two classes in two different files into a single
package.
5. a) What is exception handling? I sit necessary to have it in a java program? Justify with an
example.
b) Write down the ways by which Java can create multiple threads.
6. a) Explain in detail about Applet life cycle.
b) Develop an applet that receives two numerical values as input from the user and then
displays the sum of these numbers on the screen. Write the HTML code that calls the applet.
7. a) What is an event? Explain different components of an event?
b) Discuss MouseListenener interface and list out its functions.
8. a) Make an inheritance diagram of the AWT event classes. What is meant by Semantic and
Low-level events in the AWT? List various semantic and low-level event classes in
java.awt.event package.
b) Write short notes on following: JFrame, JButton
1 of 1

II B.Tech II Semester, Regular Examinations, April – 2012
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Com. to CSE, IT, ECC)
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~
1. a) Explain the basic characteristics of object oriented programming.
b) What is a class? How does it accomplish data hiding?
2. a) Explain different types of control statements available in object oriented programming.
b) What is a constructor? Is constructor overloading possible? Explain with an example.
3. a) What are the differences between abstract class and interface?
b) Discuss the relative merits of using protected access vs. private access in super class.
4. a) How to create and import a package? Explain with an example.
b) Is it possible to partially implement an interface? Justify your answer with example.
5. a) Write a java program to implement the following exception class.
i) Arithmetic Exception
ii) Number Format Exception
iii) Array Index Out of Bounds Exception
b) What are the two methods by which threads can be stopped? Describe these methods.
6. a) Explain the role of Java applets in designing a web page.
b) List various attributes of Applet tag used in HTML. Explain the purpose of these attributes
7. a) Explain different types of methods and constructors present in the CheckBox Class.
b) What is border layout? Write a java program which creates border layout and adds two text
boxes to it.
8. a) List Three UI components of swing and their classes and constructors.
b) How java swing controls differs from java AWT controls.
1 of 1

Saturday, 19 October 2013

IV IT DESIGN PATTERNS MID-I QUESTION BANK

                                  DESIGN PATTERNS MID-I QUESTION BANK
Unit-1
1) a) What is design Pattern? Explain Design Patterns in Smalltalk MVC.
    b) How to select and Use a Design Pattern.
2) a) How to describe a Design Pattern.
    b) How to Organize the Catalog.
3)  How Design Pattern Solve Design Problems.
Unit-2
1. a) Explain Lexi’s Document structure in detail
    b) Discuss about Lexi’s supporting multiple window systems problem.  
2. a) Describe Lexi’s user operations in detail.
    b) Explain about Lexi’s embellishing the user interface.
3. a)Explain in detail about the Lexi’s spelling checking and Hyphenation problem.
    b) Discuss about Lexi’s supporting multiple Look and Feeel Standards.

Unit-3
1. a) Briefly describe creational patterns
    b) Explain in detail about Abstract factory Design Pattern.
2. a) Explain Intent , Motivation, applicability, structure and Participants in Builder Design Pattern.
    b) Explain about Collaborations, consequences, Implementation and known uses in Builder Design Pattern.
3) a) Explain Intent ,Motivation, applicability, structure and Participants in Prototype Design Pattern.
   b) Explain about Collaborations, consequences, Implementation and known uses in Prototype Design Pattern.
Unit-4
1. a) Briefly describe Structural patterns
    b) Explain in detail about Adapter Design Pattern.
2. a) Explain Intent ,Motivation, applicability ,structure and Participants in Bridge Design Pattern.
    b) Explain about Collaborations, consequences, Implementation and known uses in Bridge Design Pattern.
3) a) Explain Intent ,Motivation, applicability, structure and Participants in Composite Design Pattern.
    b) Explain about Collaborations, consequences, Implementation and known uses in Composite Design Pattern.


IV CSE UML & DP MID-I QUESTION BANK

                                       UML & DP  MID-I QUESTION BANK


UNIT-1
    1. What is modelling? Explain about importance & principles of modelling.
    2. Explain briefly about conceptual model of UML.
    3.  a) Explain about  architecture of UML  with neat diagram.
         b)  Explain about SDLC life cycle of UML with neat diagram.
Unit-2
1.      Define a class. Explain about terms and concepts in modelling a class.
2.      a) Define dependency relation and explain about 17 stereotypes that may be applied to dependency          relation.
         b) Explain about advanced features in generalization relationships.
3.      a) Define object diagram. Explain about common modelling techniques in object diagram.
b) Explain about advanced feature in association relationship.
Unit-3
1. Define Interaction? Discuss about features that distinguish collaboration from sequence diagram in UML.
2. Draw and explain use case diagram for library management system in detail.
3. Explain in detail about State machine diagrams with an example.
Unit-4
1. Explain about a) Components and classes
                            b) Components and interfaces
                            c) Kinds of components.
2. Explain in detail about Component diagram with an example.

3. Explain in detail about Deployment diagram with an example.

Saturday, 13 July 2013

UML LAB-LIBRARY MANAGEMENT SYSTEM

LIBRARY MANAGEMENT SYSTEM

AIM: To Create UML diagrams of Library Management System.
1. Problem Statement: To model Library Management System in which for the purpose of monitoring and controlling the transactions in a library.
2. Functional Requirements:
    1. The Librarian will have a complete access to the system as listed below.
       1.1 Permits to login with unique register id.
       1.2 Can add new items to database, can delete damaged items from data base.
       1.3 Check on transactions of borrowers and ensure charges for overdue items, damaged
           and lost items are paid. Ensure delays in returning borrowed items are not repeated.                  
    2. The Members (Staff and Students) have to login into the system and they can search
         for a particular book. They can borrow a book, renewal a book.
3. Modeling a LIBRARY MANAGEMENT SYSTEM
Step 1: Construction of Use case Diagram:


Step 2: Construction of Class Diagram:


Step 3: Construction of Sequence Diagram:


Step 4: Construction of Collaboration Diagram:


Step 5: Construction of Activity Diagram:


Step 6: Construction of State Chart Diagram:

Step 7: Construction of Component Diagram:


Step 8: Construction of Deployment Diagram:

UML LAB- ATM SYSTEM

ATM SYSTEM


AIM: To Create UML diagrams of ATM Application.
1. Problem Statement: To model automatic teller machine in which a customer uses his/her ATM card to perform basic banking activities from ATM.
2. Functional Requirements:
The ATM must be able to provide the following services to the customer:
1. Withdrawal of an amount
2. Money transfer between two account
3. Deposit of cash in an envelope
4. Enquiry of Balance
5. Abort a transaction in progress by pressing the cancel key
6. Display an explanation, if a transaction fails.
7. Verification of each transaction with the bank.
8. Provide a printed receipt of each transaction to the customer with date, time, etc..,.
9. Maintain an internal log of transactions to receive in case of failures.
3. Modeling an ATM System
Step 1: Construction of Use case Diagram:

Step 2: Construction of Class Diagram:

Step 3: Construction of Sequence Diagram:

Step 4: Construction of Collaboration Diagram:

Step 5: Construction of Activity Diagram:

Step 6: Construction of State Chart Diagram:

Step 7: Construction of Component Diagram:

Step 8: Construction of Deployment Diagram: