Java Web Services and Distributed Systems

Questions covering Java web technologies including servlets, HTTP, CORBA, and distributed object systems

14 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following provides the basic skeleton and plumbing, which means that you focus on the layout and look of each room?

  1. Java swing
  2. Java applet
  3. Java struts
  4. 2D API
  5. Datagram Packet class
Question 2 Multiple Choice (Single Answer)

In which of the following object activation models is only one object active in the server?

  1. Unshared server
  2. Persistent server
  3. Shared server
  4. OrbixWeb
  5. Object life cycle
Question 3 Multiple Choice (Single Answer)

Which of the following implements a local object, which forwards all requests to the remote objects?

  1. StockHelper.java
  2. StockHolder.java
  3. javax.swing.text.rtf
  4. _StockStub.java
  5. Stock
Question 4 Multiple Choice (Single Answer)

Which of the following can be used in order to dynamically update the totals on your shopping cart, without forcing the user to click update, and wait for the server to resend the entire page?

  1. Java applet
  2. Ajax
  3. Java swing
  4. JSlider
  5. InetAddress class
Question 5 Multiple Choice (Single Answer)

Which of the following must not be used to perform updates because it breaks the HTTP specification?

  1. POST
  2. init()
  3. GET
  4. contains header(java.lang.String.name)
  5. 1xx
Question 6 Multiple Choice (Single Answer)

Which of the following CORBA services decouples the communication between distributed objects?

  1. StackFrame class
  2. Websphere
  3. Object life cycle
  4. Transaction
  5. Event
Question 7 Multiple Choice (Single Answer)

Which of the following HttpServletRequest methods returns an empty enumeration object, if the request did not include any headers of the specified name?

  1. getHeaderNames()
  2. addHeader(java.lang.String name,java.lang.String value)
  3. containsHeader(java.lang.String name)
  4. getHeaders(java.lang.String name)
  5. destroy()
Question 8 Multiple Choice (Single Answer)

Which of the following CORBA services provides a locking service for CORBA objects in order to ensure serializable access?

  1. Object life cycle
  2. Events
  3. OrbixWeb
  4. Portable object adapter
  5. Concurrency control
Question 9 Multiple Choice (Single Answer)

Which of the following is/are most popularly used for generating dynamic content on the web and have native support for HTTP?

  1. Java applet
  2. Java servlets
  3. Java swing
  4. JScrollPane
  5. ContentHandler class
Question 10 Multiple Choice (Single Answer)

If the request does not have a header of the specified name, which of the following HttpServletRequest methods returns - 1?

  1. getHeaderNames()
  2. getHeader(java.lang.String name)
  3. getIntHeader(java.lang.String name)
  4. containsHeader(java.lang.String name)
  5. service()
Question 11 Multiple Choice (Single Answer)

Which of the following is a distributed object in the GUI that presents the stock data to the user for a particular stock?

  1. StockPresentation
  2. Stock
  3. Alarm
  4. Object life cycle
  5. StockHolder.java
Question 12 Multiple Choice (Single Answer)

Which of the following browsers has a version of VisiBroker embedded in them?

  1. WebSphere
  2. Event
  3. Java 2 ORB
  4. Lynx browser
  5. Netscape communicator browser
Question 13 Multiple Choice (Single Answer)

Which of the following CORBA services supports the finding of CORBA objects based on properties describing the service offered by the object?

  1. Trader
  2. Event
  3. Object life cycle
  4. Java 2 ORB
  5. Stock
Question 14 Multiple Choice (Single Answer)

In which of the following object activation models does each request result in the creation of a server?

  1. Shared server
  2. Persistent server
  3. Server per method
  4. Websphere
  5. Portable object adapter