Module-1-5 QB-BIS402
Module-1-5 QB-BIS402
MODULE 1
SI No Questions
1. What is a collection framework? Explain the method defined by collection interface.
2. Explain the method defined by List Iterator interface with an example.
3. Explain the constructor of ArrayList. Write a java program that demonstrate ArrayList can be used
to insert and remove a string.
4. Explain the constructor of HashSet class. Write a program to create a HashSet collection and access
via Iterator.
5. Explain why we need a Generic collection.
6. Explain the method defined by list Iterator Interface
7. Explain the constructor of TreeSet class. Write a program to create a TreeSet collection.
8. Demonstrate LinkedList of collections with examples.
9. Discuss the exceptions and methods in Map Interface.
10. Explain Vector class with an example program.
11. Write the syntax declaration of Queue Interface and explain any four methods defined by queue.
12. Explain four legacy classes of java collection Framework with suitable program.
13. Illustrate various methods defined by List Iterator interface with an example
14. Explain Queue interface. List and explain different methods available in queue with an
example.
15. Explain how collection can be accessed using iterator.
16. What are comparator? Write a comparator program to sor the accounts by last name.
17. Explain ArrayList class and explain the following methods.
i) binarysearch ii) copy iii) equal iv) fill
18. Write a java program to explain Linked list to store address.
19. Create a class EMPLOYEE with two private string member : e_name and e_id. Use
LinkedList class to develop a a java program to add atleast 3 object of above EMPLOYEE
class and display the data in neat format.
20. How to access collection :
i) Using an Iterator ii) using for-each loop
Explain each with an example program.
21. Create a class STUDENT with two private string member : USN and NAME. Use
LinkedList class to develop a a java program to add atleast 3 object of above STUDENT class
and display the data in neat format.
Module 2
SI No Questions
1. Explain String in Java and Write a java program that demonstrates any four String class.
2. Discuss Character Extraction? Explain any two character extraction methods of String class.
3. Distinguish between equals( ) and == with respect to String Comparison.
4. Explain any four String modification methods of String class.
5. Demonstrate between String , StringBuffer and StringBuilder class.
6. Write a program in java to replace all the matching substring with a given string.
7. Illustrate compareTo() methods differ from compareToIgnoreCase() method ? Explain with
an example program.
8. Write a program to remove duplicate characters from a given string and display the resultant
string.
9. Explain String Searching with syntax and example.
10. Explain the following methods of StringBuffer class:
(i) capacity( ) (ii) reverse( ) (iii) chatAt( ) (iv) deleteCharAt()
11. Explain the syntax and example program of Data Conversion Using valueOf( ) .
12. Explain the following methods of StringBuffer method with example:
(i) append (ii) insert (iii) replace (iv) length v) delete
13. Explain with syntax and example the different constructor available for creating string.
14. Explain the following with syntax and example
i)equals() ii) equalIgnoreCase() iii) regionMatches() iv) toCharArray()
15. Explain the different method of String Buffer class.
16. Explain the following with syntax and example
i)startWith() ii) endsWith() iii) getBytes() iv) getChars( )
17. Implement a java program to illustrate the count of numbers of vowels and consonants available
in the given string “Department of Information Science and Engineering, Acharya Institute of
Technology”.
18. Implement a java program to illustrate the use of different types of character extraction, string
comparison, string search and string modification methods.
19. Explain the String comparison functions with suitable programs.
20. Write a java program to replace all the matching substring with a given string
21. Develop a java Program to count the occurance of character in a given string.
Module 3
Department of Information Science and Engineering, Acharya Institute of Technology, Bangalore-560107 2
AIT/IQAC/Aca/23-24/IAQP
ACHARYA INSTITUTE OF TECHNOLOGY
BENGALURU 560107
QUESTION BANK - I [Academic Year: 2023-2024]
ADVANCED JAVA (BIS402)
SI No Questions
1. Discuss about Swing and AWT.
2. Illustrate the various GUI API thats contains classes with an hierarchy diagram.
3. Explain Container Class and discuss any five container class with an example program.
4. Discuss the features of swing in details.
5. Explain component and implement any five component in frame.
6. Illustrate Layout manager and its properties with an example program.
7. Explain the following with and example program:
i) GridLayout ii) BorderLayout iii)
8. Implement the ImageIcon,
9. Which class is the root of the Java GUI component classes?
10. Explain the difference between AWT GUI components, such as java.awt.Button,
and Swing components, such as javax.swing.JButton
11. Why do you need to use layout managers? What is the default layout manager for
a frame? How do you add a component to a frame
12. Describe FlowLayout. How do you create a FlowLayout manager? How do you
add a component to a FlowLayout container? Is there a limit to the number of
components that can be added to a FlowLayout container?
13. Describe GridLayout. How do you create a GridLayout manager? How do you
add a component to a GridLayout container?
14. Using the BorderLayout manager Rewrite the preceding program to create
the same user interface, but instead of using FlowLayout for the frame, use
BorderLayout. Place one panel in the south of the frame and the other in the
center.
15. Write a program that displays four lines of text in four labels, as shown below:
16. Illustrate Model-View-Controller Architecture and How do you do implement models, views,
and controllers in swing.
17. Implement the following in a swing program
JCombobox , JList,
18. What are the three list-selection modes? Wring a swing program to implement JList to
obtain the selected item(s).