munotes®

BSc CS Sem 4 BSc CS Semester 4 (2018 2019) Apr 2019 ADVANCED JAVA Question Paper - Mumbai University | munotes

BSc CS Semester 4 (2018 2019) Question Paper, Apr.pdf
SEM 4 · BSc CS Semester 4 (2018-2019) · 1 May 2025

Loading PDF...

Questions asked in this paper

  • 2) Figures to the right indicate marks
  1. Q3 Illustrations, in-depth answers and diagrams will be appreciated
  2. Q4 Mixing of sub-questions is not allowed
  3. Q1 Attempt All (Each of SMarks) 15 marks
    • (a) Multiple Choice Questions:
    • (i) | Which of these events is generated when a button is pressed?
    • (ii) Which of the following is a method of JDBC batch process?
    • (iii) code retrieves name and version of the protocol
    • (iv) tag is used to execute Java code inside the JSP
    • (v) JSON stands for
    • (C) Java Object Notation (D) None of these
    • (b) Fill in the blanks: ClassNotFoundException, no struts2, JSON, XML,
    • (i) package contains all the classes and methods required for event handling in Java exception is raised when JDBC driver fails to load
    • (ii) object of is created for each servlet, to get configuration information from web.xml file
    • (iv) A java bean class should have a _ constructor
    • (v) framework is used to develop MVC based web
    • (c) Answer in | — 2 sentences:
    • (i) JTextArea used for?
    • (ii). Write Java code to get ResultSetMetaData object
    • (iii) Write JSP code, to display today’s date and time using expression tag
    • (iv) ValueStack in struts2?
    • (v) Describe how to create an object in JSON
  4. Q2 Attempt the following (Any THREE) 15 marks
    • (a) Explain how to use ButtonGroup class
    • (b) What is a combobox? Explain various constructors and methods of
    • (c) Explain JDBC architecture
    • (d) Explain Statement interface and its methods
    • (e) Write a swing program to accept temperature of the day in a textfield. Using radio buttons choose conversion: Fahrenheit to Celsius or vice versa. On click of a button, display the converted temperature in a label. [Formula:C = (F —
    • (f) Write a JDBC program to create an Employee table. Insert two records in the
  5. Q3 Attempt the following (Any THREE) 15 marks
    • (a) Differentiate between GenericServlet and HttpServlet
    • (b) Write a note on Servlet life cycle
    • (c) Explain page directive in JSP
    • (d) Explain the following:
    • (e) Write a servlet program to accept name and aggregate marks from index.html if the aggregate marks is larger than 55, then print “You are selected”, else print “You are not selected”
    • (f) Write JSP program to accept a number from the user and find its factorial. If the number is negative, show error message and accept the number again
  6. Q4 Attempt the following (Any THREE) 15 marks
    • (b) Explain the significance and structure of struts.xml file used in struts2
    • (c) Write a note on Struts2 interceptors
    • (d) Write the similarities and differences between JSON and XML
    • (e) What is JSON schema? Give example and illustrate
    • (f) Explain various Result Types available in Struts2
  7. Q5 the following (Any THREE) 15 marks
    • (a) Describe various constructors and methods of JCheckBox class
    • (b) Explain various methods of Connection interface
    • (c) Write a note on JSP application implicit object
    • (d) Explain session tracking mechanism in servlets
    • (e) Write a note on Struts2 Action class

Read from the scan above, so a character or two may differ. The scan is the original.

Report an error

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Connected Papers
BSc CS / Sem 4 · 55 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!