Advance Programming (JAVA)|| Fall 2022|| BCIS

Filter Course


Advance Programming (JAVA)|| Fall 2022|| BCIS

Published by: Dikshya

Published date: 24 Mar 2023

Advance Programming (JAVA)|| Fall 2022|| BCIS

  POKHARA UNIVERSITY

Level: Bachelor                                  Semester: Fall                           Year: 2022

Programme: BCIS                                                                               Full marks: 100

Course: Advance Programming (JAVA)                                              Pass Marks: 45

                                                                                                           Time: 3 hrs.

Candidates are required to answer in their own words as far as practicable. The figures in the margin indicate full marks

                               Section "A"

                  Very Short Answer Questions

Attempt all the questions. [10×2]

1. What is an expression in JSP? Write its syntax.

2. Define HTTP Request and HTTP Response. 

3. How is the radio button created in swing?

4.  What is the deployment descriptor?

5. What are the benefits of Prepared Statement over Statement? 

6. Write the purpose of isErrorPage attribute.

7. Which method in the applet life cycle takes a parameter of type Graphics?

8. How is Swing different from AWT?

9. What is the purpose of the MenuBar and Menu classes in AWT? 

10. What is Adapter Class? Write its advantage.

                                                         Section "B" 

                                        Descriptive Answer Questions

Attempt any six questions. [6×10]

11. "JSP is slower than servlet" Explain. Write a JSP program to read two numbers from the user and compute their sum and product by defining a suitable function.

12. Explain about JDBC Architectures? Write a Java program to insert information about employees into table "Customer" with fields (Custid, Name, age, address) and display the records of the table into the console whose age >45.

 13. What is Enterprise Application? Explain 2 tier and 3 tier architecture with examples.

14. Create a java bean with name, address and contact and email. Create a JSP to use the bean created, read the information from the client and store the information into the bean.

15. Write a Java AWT program to count the total number of characters and words entered in the TextArea field using the KeyListener event handling mechanism. Use an avid layout Manager.

 16. What is the use of session in servlets? How is it created and maintained? Write a suitable servlet program that implements session management.

 17. Write an applet program to create a GUI application that consists of three Labels (Principal, Rate and Time), three Text fields (of size 20) and a button (calculate). When the button is clicked then the interest will be calculated and displayed on the applet.

                                                   Section "C"

                                                  Case Analysis

18. Read the case situation given below and answer the questions that

follow                                                                                                      [20]

Create a Student Registration form using Servlet. You need to create table

named  "StudentRegister" with fields Name, Country, Email, Course for the database "Pokhara University". You are asked to create 4 files 

a) Register html        b) Register java and     c) web.xml      d) Student.java 

You need to get data from input fields in the html and process to store the data in the database table from the Register Servlet.

 In the file Student java you should retrieve the data from the database and display it to the user.