0

web technology Online Quiz - 89

Description: web technology Online Quiz - 89
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

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


Correct Option: A

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


Correct Option: A,C

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


Correct Option: C

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


Correct Option: B

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


Correct Option: D
  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.


Correct Option: B
  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.


Correct Option: B

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.


Correct Option: C

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.


Correct Option: D

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


Correct Option: D

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.


Correct Option: B

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


Correct Option: A,B

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)


Correct Option: A
  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


Correct Option: A

Which of the following is NOT done with JavaScript ?

  1. Form Validation

  2. RGB Colors

  3. Browser Detection

  4. RGB Value


Correct Option: B
  1. comma

  2. semicolon

  3. colon

  4. Bracket


Correct Option: B
- Hide questions