Web Technologies and Services

Comprehensive quiz covering web technologies including JavaScript, PHP, Java EE (J2EE), web services (JAX-WS, REST, UDDI), AJAX, and SOA concepts

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

On invoking a Web Service, you have received response XML. You need to process this XML document to update the details in the database.

  1. JAXP
  2. JAXR
  3. UDDI
  4. JSSE
Question 2 Multiple Choice (Multiple Answers)

An existing J2EE Application has following features: Uses a custom made MVC framework using Servlet as controller, JSP as view. JSP has a lot of scriptlet code. It also uses stateless session bean as a facade calling entity beans. You have been asked to migrate this application to a Java EE server. Which of the following technologies would you choose? Select two choices.

  1. JSF
  2. JCA
  3. Java EE Entities
  4. JMS
Question 3 Multiple Choice (Single Answer)

An existing J2EE application is hosted on 4 WebServers and 3 Application Servers. Due to increase in the no. of users, it has been planned to increase the count to 5 Web Servers and 4 Application Servers. Which of the following is negatively impacted? Choose one answer.

  1. Availability
  2. Performance
  3. Manageability
  4. Maintainability
Question 4 Multiple Choice (Single Answer)

You have been recruited by MegaSoft Inc. to help on a new sales project. Your role within the project team is as the lead architect. Given the requirements set out below, what type of transaction management should you use? MegaSoft Inc. is launching worldwide sports betting site. The unique feature of this betting site is that all bets are spread across multiple sporting events with huge potential prizes. For example, a user may bet $25 on Manchester United beating Real Madrid 4-0, Brazil winning the world cup,and Australia winning the cricket world cup. If a user gets three or more bets correct and one wrong then they will take home a 50% cut of the original stake. Choose one answer.

  1. Container Managed Transactions
  2. Bean Managed Transactions
  3. Container Transactions
  4. Bean Transactions
Question 5 Multiple Choice (Single Answer)

Which J2EE technology would you use to replace Perl/PHP scripts in the solution described below? MegaSoft Inc. has a web-based legacy business-to-business sales system. The solution consists of Perl and PHP scripts (presentation and business logic) and a MSSQL database. Customers logon to the site, browse for the latest products and prices, and place orders with MegaSoft. Choose one answer.

  1. Applets
  2. JSP
  3. JSP/Servlets
  4. JSP/Servlets and EJBs
  5. You would never replace PHP scripts with a J2EE technology
Question 6 Multiple Choice (Single Answer)

Which of the following describes UDDI? Choose one answer.

  1. It is a fundamental
  2. It is a platform-independent, XML-based registry for businesses worldwide to be listed on the Internet.
  3. It is a bidirectional pull parser interface for streaming XML processing.
  4. It provides a convenient way to bind an XML schema to a representation in Java code.
Question 7 Multiple Choice (Single Answer)

Your company has acquired ABC Company and will be building infrastructure for the merged entity. Now, You have a variety of mainframe applications, client server applications, and standalone programs that need to be integrated. Which of the following will provide a unified platform for scalable, secure SOA development? Choose one answer.

  1. JAXB
  2. JAXR
  3. Enterprise Service Bus
  4. Simple Object Access Protocol
  5. REST
Question 8 Multiple Choice (Single Answer)

An existing J2EE 1.3 application provides online stock quotes to the users. The web page refreshes every 60 seconds to show the latest stock prices. Customer is planning to add some minor features to this site and requested you for tips to improve the current features with minimal costs. Which of the following would you recommend? Choose one answer.

  1. Recode the application using JSF, EJB and Entities. This will improve the overall performance of the application and also improves maintainability
  2. Replace the auto-refresh functionality with AJAX code.
  3. Recode the application using JSF, EJB and Web Services.
  4. Use frames and put the auto-refresh part in a different frame.
Question 9 Multiple Choice (Single Answer)

ABC Bank provides facility to transfer amounts from one account to another through its internet banking application. It also provides facilities for its consumer clients to upload payments in one-go through a file upload facility. File upload is a very resource-intensive operation which may take 3-10 minutes. Currently on submitting the file it displays an alert message and processes the request. Often the browser times out. What would be your suggestion to improve this situation at minimal cost? Choose one answer.

  1. Remove the file upload feature from Internet Banking application
  2. Limit the no. of payments in upload files to minimum so that the overall request does not take more than 1 minute. Encourage customer to break the files and upload multiple times.
  3. Use AJAX to display progress bar displaying the % complete figures.
  4. Use JSF to reduce the processing times.
Question 10 Multiple Choice (Single Answer)

Which of the following technologies can be used to describe RESTful Webservices? Choose one answer.

  1. WSDL
  2. ebXML
  3. UDDI
  4. None of the above.
Question 11 Multiple Choice (Single Answer)

You are writing a web based utility that searches for existing web services provided by large companies. Your website searches these webservice, displays list and provides features through a very nice GUI to execute these webservices. In future, this utility can be enhanced to perform similar functionality for other enterprise services and need to be UI-rich. Which of the following APIs would you use for searching XML registries? Choose one answer.

  1. StaX
  2. JAXP
  3. JAXB
  4. JAXR
Question 12 Multiple Choice (Single Answer)

Your company is responsible for storing the credit history of citizens of ABC country. The government proposes that all financial institutions before lending must ensure that the candidate has a minimum credit score. Which of the following would you choose to build this service? Choose one answer.

  1. Build the service as a EJB
  2. Build the service as a web service
  3. Build the service as an IIOP Object.
  4. Implement it as a JMS based service.
Question 13 Multiple Choice (Single Answer)

ABC company has a very old web application that was built on Servlets, JSP and a simple proprietary MVC framework which they must use. This application is mostly used for reporting purposes and retrieves data from DB2 through JDBC. They are planning to enhance the functionality of the application and also deploy on a Java EE application server. They approached you for suggestions to improve the application code. Which of the following would not be a valid recommendation (best-fit)? Choose one answer.

  1. Refactor the common scriptlet code into tag libraries wherever possible
  2. Create a common look & feel using templates, CSS files.
  3. Use Entities
  4. Use Expression Language
Question 14 Multiple Choice (Multiple Answers)

ABC Company has decided to migrate existing J2EE application built using servlets, JSP, JMS, session & entity Beans to Java EE. They have approached you for recommendations. Which of the following are valid recommendations? Select two choices. Choose at least one answer.

  1. Replace entity beans with JPA entity classes
  2. Use the new JMS API
  3. Replace session Beans with web services
  4. Use JCA
Question 15 Multiple Choice (Multiple Answers)

You are architecting a new web based labor claim management application. Currently the users have a Java Swing-based application running on their local PCs, and you want to implement the new web-based solution with a GUI that is similar to their desktop application. Once the users have filled in their hours then you must send the details to central labour system through a Web service. What of the following technologies would be required for building this application? (Choose two.) Choose at least one answer.

  1. JAX-WS
  2. JMS
  3. JSSE
  4. JCE
  5. JSF
Question 16 Multiple Choice (Single Answer)

A variable $word is set to “HELLO WORLD”, which of the following script returns in title case?

  1. echo ucwords(strtolower($word)
  2. echo ucwords($word)
  3. echo ucfirst(strtolower($word)
  4. echo ucfirst($word)
Question 17 Multiple Choice (Single Answer)

The difference between include() and require()

  1. are different how they handle failure
  2. both are same in every aspects
  3. is include() produced a Fatal Error while require results in a Warning
  4. none of above
Question 18 Multiple Choice (Single Answer)

Which of the following is NOT done with JavaScript ?

  1. Form Validation
  2. RGB Colors
  3. Browser Detection
  4. RGB Value
Question 19 Multiple Choice (Single Answer)

It is usually advisable to keep as much JavaScript as possible in which section ?

  1. Head
  2. Layer
  3. Body
  4. Title
Question 20 Multiple Choice (Single Answer)

JavaScript lines end with what

  1. comma
  2. semicolon
  3. colon
  4. Bracket