Tribhuvan University
Institute of Science and Technology
2079 B.S.
Candidates are required to give their answers in their own words as far as practicable.
Group A
Long Answer QuestionsAttempt any Two questions.
- Question 1Explain features of object-oriented programming. Create a class Distance with private variables feet of type integer and inches of type floating point. Use suitable constructor, and methods for adding and comparing two distance objects. [Hint: 1 feet = 12 inches]
- Question 2Why do we need layout management? Explain any two layout managers with example. Write a simple GUI program that displays "Hello World" in a text field. The program should display output if user clicks a button.
- Question 3Define JSP. What are the benefits of using JSP? Create a HTML file with two text fields to first name and last name. Create a JSP file that reads data from the HTMLform and display full name.
Group B
Short Answer QuestionsAttempt any Eight questions.
- Question 4What is multithreading? How can you create multithreaded program in Java? Explain.
- Question 5What is grid layout? Compare grid layout with grid bag layout.
- Question 6Why do we need event handling? Explain the use of action event with example.
- Question 7Explain JDBC driver types. What is scrollable result set?
- Question 8Write Java programs that send messages with each other using TCP socket.
- Question 9What is JavaFX? Compare it with swing. Explain FlowPane layout of JavaFX.
- Question 10Compare JSP with servlet. What are different implicit objects in JSP?
- Question 11Define RMI. Explain architecture of RMI.
- Question 12Write short notes on: a. Final class b. Result set