0

web technology Online Quiz - 16

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

Which of the following three kinds of data can a web service have?

  1. shared data, processed data, form data

  2. shared data, pre-session data and temporary data

  3. shared data, post-session data and temporary data

  4. shared data, pre-session data and permanent data


Correct Option: B

What is a web service?

  1. A standard way of integrating web-based applications

  2. One type of service that can be part of a Service Oriented Architecture

  3. Programmable XML-based service

  4. Only B and C

  5. Only A and B

  6. A, B and C


Correct Option: F

Java API for XML Registries (JAX-R) is an API

  1. To read and write to-from a UDDI registry using SOAP messages

  2. To read and write to-from an ebXML registry using SOAP messages

  3. Both A and B

  4. None of the above


Correct Option: C

What are the possible pivot-handlers in java webservices?

  1. java:RPC, java:EJB

  2. java:WSDL, java:UDDI

  3. java:eb-xml, java:SOAP

  4. None of the above


Correct Option: A

AI Explanation

To answer this question, we need to understand the concept of pivot handlers in Java web services.

Pivot handlers are used in Java web services to intercept and process SOAP messages between the service provider and the service consumer. They can be used to perform tasks such as logging, security, encryption, and validation.

Let's go through each option to understand which ones are possible pivot handlers in Java web services:

Option A) java:RPC, java:EJB - This option is incorrect. java:RPC and java:EJB are not pivot handlers in Java web services. java:RPC is a style of web service invocation, while java:EJB is a Java Enterprise Edition (Java EE) technology for building scalable and distributed applications.

Option B) java:WSDL, java:UDDI - This option is incorrect. java:WSDL and java:UDDI are not pivot handlers in Java web services. java:WSDL is used to define the service interface and its operations, while java:UDDI is a registry for publishing and discovering web services.

Option C) java:eb-xml, java:SOAP - This option is incorrect. java:eb-xml and java:SOAP are not pivot handlers in Java web services. java:eb-xml is a standard for exchanging business documents electronically, while java:SOAP is a messaging protocol for exchanging structured information in web services.

Option D) None of the above - This option is incorrect. The correct answer is A, as java:RPC and java:EJB are possible pivot handlers in Java web services.

Therefore, the correct answer is A) java:RPC, java:EJB. These options are correct because java:RPC and java:EJB can be used as pivot handlers in Java web services.

Which of the following is an open source SOAP server and client?

  1. Apache ANT

  2. Apache Tomcat

  3. Jakarta Struts

  4. Apache Axis


Correct Option: D
Explanation:

To solve this question, the user needs to have knowledge about SOAP, web services, and open-source technologies.

SOAP (Simple Object Access Protocol) is a messaging protocol that allows for the exchange of structured information between different application systems. SOAP is based on XML and is typically used in web services to enable communication between different applications.

Open-source software is software with source code that is available to the public, allowing anyone to use, modify, or distribute the software.

Now, let's go through each option and explain why it is right or wrong:

A. Apache ANT - Apache ANT is a Java-based build tool used for compiling and building software. It is not a SOAP server or client, so this option is incorrect.

B. Apache Tomcat - Apache Tomcat is a web server and servlet container used for hosting Java-based web applications. It is not a SOAP server or client, so this option is incorrect.

C. Jakarta Struts - Jakarta Struts is a framework for building web applications in Java. It is not a SOAP server or client, so this option is incorrect.

D. Apache Axis - Apache Axis is an open-source SOAP server and client framework for building web services in Java. It supports both the SOAP 1.1 and SOAP 1.2 specifications and provides a range of tools and APIs for working with SOAP-based web services. Therefore, the correct answer is:

The Answer is: D. Apache Axis

WSDL is

  1. a W3C standard

  2. Not a W3C standard

  3. Microsoft’s standard

  4. IBM’s standard


Correct Option: B

What are the web service platform elements?

  1. SOAP, UDDI, XML

  2. HTTP, WSDL

  3. UDDI, XML, SOAP,XML-RPC

  4. SOAP, UDDI, WSDL


Correct Option: D

Java API for XML Binding (JAX-B) is an API

  1. That can be used to generate Java classes from an XML schema

  2. Can be used to read and write XML using Java classes generated from an XML schema

  3. Is used for parsing XML using SAX and DOM

  4. Both A and B

  5. Both B and C

  6. Both A and C


Correct Option: D

Which of these is/are NOT the WSDL operation type(s)?

  1. One-way

  2. Error-message

  3. Request-response

  4. Solicit-response

  5. None of the above

  6. Only A and B


Correct Option: B

AI Explanation

To answer this question, we need to understand the different types of operations in WSDL (Web Services Description Language).

A. One-way - This option is correct as it is one of the WSDL operation types. In a one-way operation, the client sends a request to the server, but no response is expected.

B. Error-message - This option is incorrect. Error-message is not a valid WSDL operation type. WSDL operation types include one-way, request-response, and solicit-response.

C. Request-response - This option is correct as it is one of the WSDL operation types. In a request-response operation, the client sends a request to the server and expects a response.

D. Solicit-response - This option is correct as it is one of the WSDL operation types. In a solicit-response operation, the server sends a request to the client and expects a response.

E. None of the above - This option is incorrect as both A and C are valid WSDL operation types.

F. Only A and B - This option is incorrect as only option B is incorrect. Option A is a valid WSDL operation type.

Therefore, the correct answer is option B. It is NOT a WSDL operation type.

UDDI communicates via which of the following

  1. HTTP, SOAP, WSDL

  2. SOAP, CORBA, Java RMI Protocol

  3. SOAP, XML-RPC

  4. XML, WSDL


Correct Option: B

What are the benefits of BIND variables? Choose all that apply

  1. Reduces parsing overhead

  2. Reduces execution overhead

  3. Forces usage of INDEX

  4. Makes code reusable


Correct Option: A,D

UDDI uses internet standards such as XML, HTTP and DNS protocols of which of the following?

  1. World wide web consortium (W3C)

  2. Internet Engineering Task Force (IETF)

  3. Both A and B

  4. None of the above


Correct Option: C

What is the use of 'using command' in C#?

  1. To specify the class where namespace is located

  2. Inorder to include objects into a .cs file

  3. Create an alias for a namespace

  4. None of these


Correct Option: C

Value type variables are shortlisted,never null and held in heap.

  1. True

  2. False


Correct Option: A

Technical information about a Web service is maintained in which component of UDDI?

  1. Green pages

  2. White pages

  3. Yellow pages

  4. Blue pages


Correct Option: A

AI Explanation

To answer this question, you need to understand the components of UDDI (Universal Description, Discovery, and Integration) and their purposes.

UDDI is a directory service that allows businesses to publish and discover information about web services. It consists of three components:

A. Green pages - The green pages component of UDDI contains technical information about a web service. It includes details such as the service's WSDL (Web Services Description Language) document, supported operations, input/output parameters, and other technical specifications.

B. White pages - The white pages component of UDDI contains information about the business or organization that owns or operates the web service. It includes contact information, address, and other details.

C. Yellow pages - The yellow pages component of UDDI contains information about the functional categorization of web services. It classifies services based on their industry, domain, or functionality.

D. Blue pages - The blue pages component of UDDI is not a valid component. It is not part of the UDDI specification.

Based on the given options, the correct answer is A) Green pages. The technical information about a web service is maintained in the green pages component of UDDI.

  1. msgBox("Hello World")

  2. alertBox("Hello World")

  3. alert("Hello World")

  4. alertBox="Hello World"


Correct Option: C

What is the correct way to write a JavaScript array?

  1. var txt = new Array(1:"app",2:"cop,3:"top")

  2. var txt = new Array("app","cop","top")

  3. var txt = new Array:1=("tim")2=("cop")3=("top")

  4. var txt = new Array="app","cop","top"


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) var txt = new Array(1:"app",2:"cop,3:"top") - This option is incorrect because when creating a JavaScript array using the new Array() syntax, the correct way to define the elements is by separating them with commas inside square brackets, not colons. The correct syntax would be var txt = new Array("app", "cop", "top").

Option B) var txt = new Array("app","cop","top") - This option is correct because it follows the correct syntax for creating a JavaScript array. The elements are enclosed in square brackets, and they are separated by commas.

Option C) var txt = new Array:1=("tim")2=("cop")3=("top") - This option is incorrect because it does not follow the correct syntax for creating a JavaScript array. The colons after the Array constructor and the equal signs after each index value are not valid syntax.

Option D) var txt = new Array="app","cop","top" - This option is incorrect because it does not follow the correct syntax for creating a JavaScript array. The equal sign after the Array constructor is not valid syntax.

The correct answer is B. This option is correct because it follows the correct syntax for creating a JavaScript array, with the elements enclosed in square brackets and separated by commas.

How do you round the number 7.25, to the nearest integer?

  1. round(7.25)

  2. rnd(7.25)

  3. Math.round(7.25)

  4. Math.rnd(7.25)


Correct Option: C

AI Explanation

To round a number to the nearest integer, you can use the Math.round() function.

Option A) round(7.25) - This option is incorrect because round is not a valid function. The correct syntax is Math.round().

Option B) rnd(7.25) - This option is incorrect because rnd is not a valid function. The correct syntax is Math.round().

Option C) Math.round(7.25) - This option is correct. The Math.round() function rounds the number to the nearest integer.

Option D) Math.rnd(7.25) - This option is incorrect because rnd is not a valid function. The correct syntax is Math.round().

The correct answer is Option C. This option is correct because it uses the Math.round() function to round the number 7.25 to the nearest integer.

- Hide questions