Advanced Java (November – 2014) [CBSGS - 75:25 Pattern | Question Paper]


[Question Paper] Advanced Java (75:25 Pattern) [November – 2014]
[Question Paper] Advanced Java (75:25 Pattern) [November – 2014]

DOWNLOAD
➥ Download: PDF
➥ View: PDF
➥ View (Image): @Pinterest | @Flickr

B.Sc.IT: Semester – V
[Advanced Java]
Question Paper (November – 2014) [75:25 Pattern]

Time: 2 ½ Hours
Total Marks: 75


N.B.:   (1) All Question are Compulsory.
            (2) Make Suitable Assumptions Wherever Necessary And State The Assumptions Made.
            (3) Answer To The Same Question Must Be Written Together.
            (4) Number To The Right Indicates Marks.
            (5) Draw Neat Labeled Diagrams Wherever Necessary.

Q.1 Attempt Any Two Of The Following: (10 Marks)
(A) Explain the Java Delegation Event Model. What are the two steps in using the Java Delegation Event Mode?
(B) Explain Adapter Classes and Inner Classes.
(C) Explain the following methods when working with Frame Windows:
      (i) setSize
      (ii) getSize
      (iii) setVisible
      (iv) setTitle
      (v) windowClosing
(D) What are the different LayoutManager Classes in Java? Explain CardLayout with example.

Q.2 Attempt Any Two Of The Following: (10 Marks)
(A) Explain Root Pane, Glass Pane, Layered Pane, Content Pane and Desktop Pane.
(B) Distinguish between Abstract Window Toolkit and Java Foundation Classes.
(C) Explain JPopupMenu Class with example.
(D) Write a program using JTree to generate the following Hierarchical Structure. Assume the image file “leaf.jpg”

Q.3 Attempt Any Two Of The Following: (10 Marks)
(A) What are Servlets? What are the advantages of Servlets over CGI?
(B) What is RequestDispatcher? What are its methods? Using RequestDispatcher write the code for the following:
index.html file  with two text boxes to enter username and password and a login button. Login.java servlet class to process the response. If the password is “servlet” it should forward the request to WelcomeServlet.java which displays “Welcome<Username>”. If the password is not “servlet”, Login.java should display “Sorry Username or password error!!!” web.xml, the deployment descriptor file that contains the information about the servlet.
(C) Explain GenericServlet with its constructors and methods.
(D) Write a Servlet Application to find the sum of digits of the number entered by the user through the HTML Form.

Q.4 Attempt Any Two Of The Following: (10 Marks)
(A) What is JDBC Driver? Explain the types of JDBC Drivers.
(B) Explain the JDBC Architecture.
(C) What are the advantages and disadvantages of Java Server Pages?
(D) Write a JSP Application that computes the cubes of the numbers from 1 to 10.

Q.5 Attempt Any Two Of The Following: (10 Marks)
(A) Explain the Model-View-Controller Architecture.
(B) Explain in detail the phases of JSF Lifecycle.
(C) Enumerate the benefits of Enterprise Beans.
(D) Write a Session Bean Code specification that calculates simple interest. Assume the principle, term and rate of interest is entered by the user and the input is passed through a servlet.

Q.6 Attempt Any Two Of The Following: (10 Marks)
(A) Explain the Architecture of Hibernate Framework in detail.
(B) Explain Structure of Hibernate.cfg.xml file.
(C) What is Value Stack in Struts? State and Explain the Execution Flow of Value Stack.
(D) Explain interceptors in struts.

Q.7 Attempt Any Three Of The Following: (15 Marks)
(A) What is CheckboxGroup? Explain with example.
(B) Explain JScrollPane and JScrollBar with example.
(C) Explain the Life Cycle of Servlet.
(D) Write a JDBC Program that inserts values in database. [TABLE NAME: Employee, FIELDS: Empid, Name, Dept, Designation]
(E) What are the different types of Enterprise Beans? Explain.
(F) What is OGNL? Explain the Execution Flow of OGNL.


0 Comments