JavaScript and Web Services

Quiz covering JavaScript programming fundamentals and web services technologies including SOAP, UDDI, WSDL, and related XML-based APIs

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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
Question 2 Multiple Choice (Single Answer)

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
Question 3 Multiple Choice (Single Answer)

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
Question 4 Multiple Choice (Single Answer)

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
Question 5 Multiple Choice (Single Answer)

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

  1. Apache ANT
  2. Apache Tomcat
  3. Jakarta Struts
  4. Apache Axis
Question 6 Multiple Choice (Single Answer)

WSDL is

  1. a W3C standard
  2. Not a W3C standard
  3. Microsoft’s standard
  4. IBM’s standard
Question 7 Multiple Choice (Single Answer)

What are the web service platform elements?

  1. SOAP, UDDI, XML
  2. HTTP, WSDL
  3. UDDI, XML, SOAP,XML-RPC
  4. SOAP, UDDI, WSDL
Question 8 Multiple Choice (Single Answer)

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
Question 9 Multiple Choice (Single Answer)

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
Question 10 Multiple Choice (Single Answer)

UDDI communicates via which of the following

  1. HTTP, SOAP, WSDL
  2. SOAP, CORBA, Java RMI Protocol
  3. SOAP, XML-RPC
  4. XML, WSDL
Question 11 Multiple Choice (Multiple Answers)

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
Question 12 Multiple Choice (Single Answer)

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
Question 13 Multiple Choice (Single Answer)

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
Question 14 True/False

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

  1. True
  2. False
Question 15 Multiple Choice (Single Answer)

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
Question 16 True/False

The external JavaScript file must contain the <script> tag

  1. True
  2. False
Question 17 Multiple Choice (Single Answer)

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"
Question 18 Multiple Choice (Single Answer)

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

  1. //This comment has ...//
  2. <!--This comment has ...-->
  3. /This comment has .../
  4. <--This comment has ...-->
Question 19 Multiple Choice (Single Answer)

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"
Question 20 Multiple Choice (Single Answer)

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)