August 2021 CS - Advanced Java Programming PDF
Document Details
Uploaded by SubstantiveMarigold
Saurashtra University
2021
BCF
Tags
Summary
This is a past paper from August 2021 for Advanced Java Programming. The paper covers topics such as Java programming, servlets, J2EE, and JSP. It contains objective-type questions and questions requiring detailed explanations and examples.
Full Transcript
# BCF-003-003507 ## **B. C. A. (Sem. V) (CBCS) Examination** **August 2021** **CS - Advanced Java Programming** **Faculty Code: 003** **Subject Code : 003507** **Time: 2 Hours]** **[Total Marks : 70** ## **1 (A) Objective type questions:** 1. Write the signature of forName() method. 2. To crea...
# BCF-003-003507 ## **B. C. A. (Sem. V) (CBCS) Examination** **August 2021** **CS - Advanced Java Programming** **Faculty Code: 003** **Subject Code : 003507** **Time: 2 Hours]** **[Total Marks : 70** ## **1 (A) Objective type questions:** 1. Write the signature of forName() method. 2. To create object of Statement interface which method is used? 3. What is communication platform between client and component? 4. What is use of lookup() method? ## **(B) Attempt any one out of two.** 1. Explain Skeleton with example. 2. Write note on J2ee APIs. ## **(C) Attempt any one out of two.** 1. Describe Statement v/s PreparedStatement interface. 2. Difference between callableStatement v/s PreparedStatement interface. ## **(D) Attempt any one out of two.** 1. Describe ConnectionClass with example. 2. Explain N tier Architecture. ## **2 (A) Objective type questions:** 1. Full form of HTTP is 2. What is a servlet? 3. Is bind() method is used by Server? 4. What is URL Encoding? ## **(B) Attempt any one out of two.** 1. Explain Enterprise Architecture of J2ee.. 2. Write methods with syntax of Servlet interface. ## **(C) Attempt any one out of two.** 1. Explain Session Tracking API. 2. What is the difference between GET and POST method? ## **(D) Attempt any one out of two.** 1. Write program and create registration.html file which accept name, email, city and password. Call Servlet file to insert record in Student table. 2. Explain Servlet Life Cycle. ## **3 (A) Objective type questions:** 1. What is role of web container? 2. How to set Session Timeouts? 3. Which Methods is use to get Last Accessed Times? 4. Which method is user for remove Session attributes. ## **(B) Attempt any one out of two.** 1. List methods of Interface ServletRequestListener. 2. Explain Session Integrity. ## **(C) Attempt any one out of two.** 1. Explain HttpSession interface with Example.. 2. Explain ServletRequestAttributeListener interface. ## **(D) Attempt any one out of two.** 1. Explain with example Filters for pre and post processing of request 2. Write a JSP Code to fetch the all record from the following table Table name :- Employee | Fieldname | Data Type | | --- | --- | | Eid | Varchar2 | | Ename | Varchar2 | | Salary | Number | | Designation | Varchar2 | | Department | Varchar2 | ## **4 (A) Objective type questions:** 1. Full form of JSPE? 2. Explain `<jsp:include>` . 3. Explain `<jsp:param>` . 4. `____` is used before creating printWriterobject? ## **(B) Attempt any one out of two.** 1. To add Java code in JSP page which tag is used with example? 2. Describe life cycle of JSP. ## **(C) Attempt any one out of two.** 1. Write deference between `jsp/servlet1`. 2. Explain Cookie class methods. ## **(D) Attempt any one out of two.** 1. Create a jsp file and do the connectivity with the MySql Print all the records of the EMP table in tabular format in web browser. 2. Explain Page directive with Example. ## **5 (A) Objective type questions:** 1. Write use of `<c:set>` tag. 2. Write use of `<c:if>` tag. 3. List of JSTL Tags. 4. Write use of `<c:remove>` tag. ## **(B) Attempt any one out of two.** 1. Explain RequestDispatcher in detail. 2. Explain Cookie Class in Servlet with Example. ## **(C) Attempt any one out of two.** 1. Write use of `<c:forEach>` tag with Example. 2. Explain with example EL Operators. ## **(D) Attempt any one out of two.** 1. Explain implicit Object using Expression Language 2. Explain any three methods of HttpServlet Response interface with Example. ## **BCF-003-003507]** **3** **[180/1-15]**