Tribhuwan University

Institute of Science and Technology

2081

Bachelor Level / Fourth Year / Seventh Semester / Science

Bachelors in Information Technology (BIT401)

(Advanced Java Programming)

Full Marks: 60

Pass Marks: 24

Time: 3 Hours

Candidates are required to give their answers in their own words as for as practicable.

The figures in the margin indicate full marks.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
Discuss about any four servlet APIs. Design a form in JSP to take the necessary information about an employee and when the user click submit button, it will be displayed in second page.[10]
2.
When do we use JPanel? How do you add mnemonics and accelerators to menu items? Explain.[10]
3.
How do you create inner class and anonymous inner class? Create a class EMPLOYEE with data members Emp_ID, Name and Occupation, and write those objects to the file DOC.DAT whose occupations is doctor.[10]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
Describe about any three types of JavaFX layouts. [5]
5.
Write a program to design a form with a button and label, such that the number of times the button is clicked will be displayed in label. [5]
6.
Explain the architecture of RMI. [5]
7.
Write a program to show the use of mouse event. [5]
8.
Define package. What is the use of final keyword and finally block? [5]
9.
Explain the architecture of JDBC and list the JDBC driver types. [5]
10.
Write the steps of writing socket program using UDP. [5]
11.
Define scriptlets. Discuss about JSP access models. [5]
12.
Why do we need ports in socket programming? What types of instructions are written in try block? [5]