×
The question isn’t who is going to let me; it’s who is going to stop me.
--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
  • Information Technology Engineering
  • B.Tech
  • 17525 Views
  • 239 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. PIT5I102 5th Semester Regular Examination 2017-18 Advanced Java Programming BRANCH: IT Time: 3 Hours Max Marks: 100 Q.CODE: B481 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 of the following is not a Exceptions in Java. a. Arithmetic Exception b. Null pointer Exception c. ArrayoutofBounds Exception d. Logical Exception The _________ class creates and maintains a buffer for an input stream a. Common BufferedInputStream b. BufferedStream c. InputStream d. BufferedInputStream Which of the following method is used to initialize the instance variable of a class. a. Class b. Public c. Constructor d. Destructor Find the keyword which is not used to implement exception a. try b. catch c. finally d. access A __________ is a sequence of bytes traveling from a source to a destination over a communication path. a) string b)stream c) character d) integer Which of the following is NOT a part of JDBC URL? a) <protocol> b) <subprotocol> c) <subname> d) <name> CORBA stands for a. Common Operation Request Broker Architecture b. Common Object Request Bean Architecture c. Common Object Request Broker Architecture d. Component Object Request Broker Architecture Servlets provide an efficient replacement for _______ scripts a. CGI b. GCI c. API d. PIC (2 x 10)

Text from page-2

i) j) Q2 ____________ contains the class libraries that which are needed to create servlets a. SDK b. JSDK c. JDK d. JAR In the init(ServletConfig) method of Servlet life cycle, what method can be used to access the ServletConfig object ? (a) getServletInfo() (b) getInitParameters() (c) getServletConfig() (d) none of these a) b) c) d) e) f) g) h) i) j) Answer the following questions: Short answer type What is a package class? What are the different get methods in the DatagramPacket class? Define socket and its associated operations. What is CORBA? Why CORBA is needed? What is servlet ? Write are its types. What is the utility of the JDBC drivers for the database connectivity? Define all the classes of JDBC drivers. What is implicit objects in JSP? Explain the datagram packet, datagram server and client. What is scripting element in JSP ? List the different scripting elements. Q3 a) b) Explain the differences between packages and interfaces with examples. What is a Multicast socket? Explain with example. (10) (5) Q4 a) Write a socket program to transfer a message from one computer system to another computer system. Define and differentiate between Stateless and Stateful session Bean in Java? (10) b) (2 x 10) (5) Q5 a) b) Explain the life cycle of a Servlet with various methods. Define and differentiate between Stateless and Stateful session Bean in Java? (10) (5) Q6 a) Define the schema of XML? Explain with an example the parsing of an XML document. Explain in detail the various components of JDBC? Give the steps for using JDBC to access a data base. (10) What is the difference between Servelet and JSP? Write a Servlet that will take two integer from the client end performs the addition of it and displays its output on the client side. Define JDBC and JDBC API? What are the advantages of using JDBC? (10) State the differences between XML and HTML. What are DTD Sequences in XML and its purpose. Explain EJB life Cycle and define the different beans used in it (10) Write a Java program that will echo the text entered in server machine to the client machine. "exit" will terminate the both server and client (Use TCP) What is ServerSocket (TCP/IP)? List and explain different constructors of it. (10) b) Q7 a) b) Q8 a) b) Q9 a) b) (5) (5) (5) (5)

Lecture Notes