JavaScript and Web Services
Quiz covering JavaScript programming fundamentals and web services technologies including SOAP, UDDI, WSDL, and related XML-based APIs
Questions
Which of the following three kinds of data can a web service have?
- shared data, processed data, form data
- shared data, pre-session data and temporary data
- shared data, post-session data and temporary data
- shared data, pre-session data and permanent data
What is a web service?
- A standard way of integrating web-based applications
- One type of service that can be part of a Service Oriented Architecture
- Programmable XML-based service
- Only B and C
- Only A and B
- A, B and C
Java API for XML Registries (JAX-R) is an API
- To read and write to-from a UDDI registry using SOAP messages
- To read and write to-from an ebXML registry using SOAP messages
- Both A and B
- None of the above
What are the possible pivot-handlers in java webservices?
- java:RPC, java:EJB
- java:WSDL, java:UDDI
- java:eb-xml, java:SOAP
- None of the above
Which of the following is an open source SOAP server and client?
- Apache ANT
- Apache Tomcat
- Jakarta Struts
- Apache Axis
WSDL is
- a W3C standard
- Not a W3C standard
- Microsoft’s standard
- IBM’s standard
What are the web service platform elements?
- SOAP, UDDI, XML
- HTTP, WSDL
- UDDI, XML, SOAP,XML-RPC
- SOAP, UDDI, WSDL
Java API for XML Binding (JAX-B) is an API
- That can be used to generate Java classes from an XML schema
- Can be used to read and write XML using Java classes generated from an XML schema
- Is used for parsing XML using SAX and DOM
- Both A and B
- Both B and C
- Both A and C
Which of these is/are NOT the WSDL operation type(s)?
- One-way
- Error-message
- Request-response
- Solicit-response
- None of the above
- Only A and B
UDDI communicates via which of the following
- HTTP, SOAP, WSDL
- SOAP, CORBA, Java RMI Protocol
- SOAP, XML-RPC
- XML, WSDL
What are the benefits of BIND variables? Choose all that apply
- Reduces parsing overhead
- Reduces execution overhead
- Forces usage of INDEX
- Makes code reusable
UDDI uses internet standards such as XML, HTTP and DNS protocols of which of the following?
- World wide web consortium (W3C)
- Internet Engineering Task Force (IETF)
- Both A and B
- None of the above
What is the use of 'using command' in C#?
- To specify the class where namespace is located
- Inorder to include objects into a .cs file
- Create an alias for a namespace
- None of these
Value type variables are shortlisted,never null and held in heap.
- True
- False
Technical information about a Web service is maintained in which component of UDDI?
- Green pages
- White pages
- Yellow pages
- Blue pages
The external JavaScript file must contain the <script> tag
- True
- False
How do you write "Hello World" in an alert box?
- msgBox("Hello World")
- alertBox("Hello World")
- alert("Hello World")
- alertBox="Hello World"
What is the correct JavaScript syntax to insert a comment that has more than one line?
- //This comment has ...//
- <!--This comment has ...-->
- /This comment has .../
- <--This comment has ...-->
What is the correct way to write a JavaScript array?
- var txt = new Array(1:"app",2:"cop,3:"top")
- var txt = new Array("app","cop","top")
- var txt = new Array:1=("tim")2=("cop")3=("top")
- var txt = new Array="app","cop","top"
How do you round the number 7.25, to the nearest integer?
- round(7.25)
- rnd(7.25)
- Math.round(7.25)
- Math.rnd(7.25)