0

web technology Online Quiz - 98

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

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

  1. alertBox="Hello World"

  2. msgBox("Hello World")

  3. alertBox("Hello World")

  4. alert("Hello World")


Correct Option: D

AI Explanation

To display the message "Hello World" in an alert box, you would use the alert() function. Let's go through each option to understand why it is correct or incorrect:

Option A) alertBox="Hello World" - This option is incorrect because alertBox is not a valid function or method in JavaScript. The correct function to display an alert box is alert().

Option B) msgBox("Hello World") - This option is incorrect because msgBox is not a valid function or method in JavaScript. The correct function to display an alert box is alert().

Option C) alertBox("Hello World") - This option is incorrect because alertBox is not a valid function or method in JavaScript. The correct function to display an alert box is alert().

Option D) alert("Hello World") - This option is correct because alert("Hello World") is the correct syntax to display the message "Hello World" in an alert box. The alert() function is a built-in JavaScript function that displays an alert box with the specified message.

The correct answer is Option D.

How do you create a function?

  1. function myFunction()

  2. function:myFunction()

  3. function=myFunction()

  4. myFunction()


Correct Option: A

How can you add a comment in a JavaScript?

  1. 'This is a comment

  2. /This is a comment/

  3. //This is a comment


Correct Option: B

Which is used in SOAP headers?

  1. postal address information

  2. security information

  3. response information

  4. stock request information


Correct Option: B

Which are true about JAXP APIs? (Choose two)

  1. They are a part of J2SE1.4

  2. They are not part of J2SE1.4

  3. They provide developers with parser-implementation API to process XML

  4. They do not support validation of XML documents against schema


Correct Option: A,C

Which of the following is a function of UDDI registry?

  1. It is used to add headers to a request

  2. It defines the semantic behaviour of a web service

  3. It defines the interface that the web service provides

  4. It publishes information about a service to a registry


Correct Option: D

What does SOAP define?

  1. The overall structure of the XML message

  2. The conventions representing the remote procedure call in the XML message

  3. Both

  4. None


Correct Option: C

Canonical XML specification is used to

  1. Digitally encrypt an XML document

  2. Determine if two XML documents are logically equivalent

  3. Digitally decrypt an XML document

  4. Digitally sign an XML documents


Correct Option: B

Java API for XML based RPC (JAX-RPC)

  1. Can be used to generate server side and client side Java (Web Service) code from a WSDL

  2. Can be used to generate a WSDL from Java (Web Service) code

  3. None

  4. Both


Correct Option: D

AI Explanation

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

Option A) Can be used to generate server-side and client-side Java (Web Service) code from a WSDL - This option is correct. JAX-RPC can be used to generate Java code (Web Service) from a WSDL file.

Option B) Can be used to generate a WSDL from Java (Web Service) code - This option is incorrect. JAX-RPC does not provide the functionality to generate a WSDL from Java code.

Option C) None - This option is incorrect. JAX-RPC does have functionalities and can be used for generating server-side and client-side Java (Web Service) code.

Option D) Both - This option is correct. JAX-RPC can be used to generate server-side and client-side Java (Web Service) code from a WSDL.

The correct answer is D) Both. This option is correct because JAX-RPC can be used to generate server-side and client-side Java (Web Service) code from a WSDL.

Expand SOAP

  1. Super Object Assess Protocol

  2. Simple Object Access protocol

  3. Simple Object Assess protocol

  4. Syntax Object Access protocol


Correct Option: B

Which SAAJ 1.2 type is used to represent SOAP message header blocks?

  1. org.omg.dom.Document

  2. javax.xml.soap.SoapPart

  3. javax.xml.soap.SoapEntity

  4. javax.xml.soap.SoapHeaderElement


Correct Option: D

Which two are true about the WSDL 1.1 part element

  1. Global schema types must be referenced by the type attribute

  2. Global schema elements must be referenced by the type attribute

  3. Global schema types must be referenced by the element attribute

  4. Global schema elements must be referenced by the element attribute


Correct Option: A,D
  1. an out of memory error on the client

  2. a SOAP fault

  3. communication failure due to network error

  4. incorrect configuration of stubs


Correct Option: B,C

In ASP.NET in form page the object which contains the user name is?

  1. Page.User.Identity

  2. Page.User.IsInRole

  3. Page.User.Name

  4. None of the Above


Correct Option: A

What is the base class from which all Web forms inherit?

  1. Master Page

  2. Page Class

  3. Session Class

  4. None of the Above


Correct Option: B

Which of the following method is used to obtain details about information types of assembly?

  1. GetTypes

  2. GetType

  3. Both A) and B)

  4. None of the Above


Correct Option: C

The .NET Framework provides a runtime environment called

  1. RMT

  2. CLR

  3. RCT

  4. RC


Correct Option: B

In ASP.NET the sessions can be dumped by using

  1. Session.Dump

  2. Session.Abandon

  3. Session.Exit

  4. None of the Above


Correct Option: B

Which of the following is TRUE about Windows Authentication in ASP.NET?

  1. Automatically determines role membership

  2. Role membership determined only by user programming

  3. ASP.NET does not support Windows Authentication

  4. None of the Above


Correct Option: A

Which of the following transfer execution directly to another page?

  1. Server.Transfer

  2. Response.Redirect

  3. Both A) and B)

  4. None of the Above


Correct Option: A
- Hide questions