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

The external JavaScript file must contain the <script> tag

  1. True

  2. False


Correct Option: A

AI Explanation

To answer this question, you need to understand how external JavaScript files are linked to HTML documents.

Option A) True - This option is incorrect because the external JavaScript file does not need to contain the `tag. Instead, the<script>tag is used in the HTML document to reference the external JavaScript file using thesrcattribute. The<script>tag in the HTML document should look like this:<script src="external.js">`, where "external.js" is the name of the external JavaScript file.

Option B) False - This option is correct because the external JavaScript file does not need to contain the `` tag.

The correct answer is B) False.

How do you write "Hello World" in an alert box?

  1. msgBox("Hello World")

  2. alertBox("Hello World")

  3. alert("Hello World")

  4. alertBox="Hello World"


Correct Option: C

What is the correct JavaScript syntax to insert a comment that has more than one line?

  1. //This comment has ...//

  2. /This comment has .../


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