×
Yes studying sucks... But NO, NOT more than FAILURE.
--Your friends at LectureNotes
Close

Previous Year Exam Questions for Advanced Java Programming - AJP of 2017 - bput by Verified Writer

  • Advanced Java Programming - AJP
  • 2017
  • PYQ
  • Biju Patnaik University of Technology BPUT - BPUT
  • Computer Science Engineering
  • B.Tech
  • 12910 Views
  • 164 Offline Downloads
  • Uploaded 1 year ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

Registration No: Total Number of Pages: 02 B.Tech. PCS5J101 5TH Semester Regular Examination 2017-18 Advance Java Programming BRANCH: CSE Time: 3 Hours Max Marks: 100 Q.CODE: B313 Answer Question No.1 and 2 which are compulsory and any four from the rest. The figures in the right hand margin indicate marks. Q1 a) b) c) d) e) f) g) h) Answer the following questions: multiple type or dash fill up type Which class is used to create servers that listen for either local client or remote client programs? A. Server Sockets B. http Server C. http Response D. None of the above RPC allows a computer program to cause a subroutine to execute in A. its own address space B. another address space C. both A and B D. none of the mentioned Which of the following programs support XML or XML applications? A. Internet Explorer 5.5 B. Netscape D.7 C. Real player D. Both A and B Which of the following type of JDBC driver, is also called Type 3 JDBC driver? A. JDBC-ODBC Bridge plus ODBC driver B. Native-API, partly Java driver C. JDBC-Net, pure Java driver D. Native-protocol, pure Java driver Which of the following is efficient than statement due to pre-compilation of SQL? A. Statement B. Prepared Statement C. Callable Statement D .None of the above. The different ways to send data to the CGI program A. Arguments of the CGI program B. Environment variables C. Standard input D. All of these Which of the following code is used to get session in servlet? A. request.getSession() B. response.getSession() C. new Session() D.None of the above. Which of the following code is used to add an attribute in a HTTP Session object in servlets? A. session.addAttribute(name,value) (2 x 10)

Text from page-2

i) j) Q2 B. session.setAttribute(name,value) C. session.createAttribute(name,value) D. None of the above. Which of the following attributes are mandatory in <jsp:setProperty /> tag? A. name, property B. type, id C. name, type D. id, property What types of Dependency injection does spring supports? A. Constructor based, Setter based B. Constructor based, Setter based, Getter Based C. Setter based, Getter based, Properties based D. Constructor based, Setter based, Properties based a) b) c) d) e) f) g) h) i) j) Answer the following questions: Short answer type Differentiate between UDP packet and TCP packet What is the basic principle of RMI architecture? What is the difference between doGet() and doPost()? What is the use of session bean? State the role of EJB Home object. How does servlet differ from an applet? What are the advantages of socket programming? What protocols does JNDI provide an interface to? What are the advantages of JSTL? What is EL in JSP? Q3 a) b) Implement the server and client communication using java. Write a java program to send and receive a mail using socket (10) (5) Q4 a) (10) b) What do you mean by cookies? How the cookies are used to send and retrieve the information from the client? Explain with a suitable example. Briefly explain the hibernate architecture. Q5 a) b) Explain the steps involve to connecting java application and database. Explain the functions of EJB components in web applications. (10) (5) Q6 a) b) Explain the features of different types of JDBC driver. Explain the way of invoking servlet in the applet. (10) (5) Q7 a) Develop a JSP to accept user’s first name and then welcome the user by name. Briefly explain the hibernate architecture. (10) (10) b) How can you create and initialize servlet. What is the lifecycle of a servlet? What are the advantages of servlet? Describe the use of prepared statement and callable statement interface. a) b) Write detailed note on Naming services and CORBA programming model. Write down web services in AJAX. (10) (5) b) Q8 Q9 a) (2 x 10) (5) (5) (5)

Lecture Notes