XML, XSLT, XPath and Web Security
Quiz covering XML transformations, XSLT, XPath expressions, and web application security concepts
Questions
Which of following security measures are implemented in IB.?
- a. URL based security
- b. Authentication & Authorization for the web application
- c. Authentication & Authorization for the ejb application
- d. All of the above
How do you select the first two titles in the document:
- a. (//title)[order()<=2]
- b. (//title)[index()<=2]
- c. (//title)[last()<=2]
- d. (//title)[position()<=2]
Which character is used to denote a variable
- a. $
- b. #
- c. @
- d. &
The match attribute is used to:
- a. Select the elements for which a template is applied; used with the element xsl:template
- b. Select a variable; used with the element xsl:value-of
- c. Select a case; used with the element xsl:switch
- d. Set fire to the XML document
How will you select type attribute in the document
- a. /type
- b. /@type
- c. //@type
- d. type
Considering the following XML and XSLT documents, what is the output? XML: <?xml version="1.0"?> <staff> <employee id="45"> <name>John</name> <salary>$100,000</salary> </employee> </staff> XSLT: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:if test="employee/name = 'John'"> true </xsl:if> </xsl:template> </xsl:stylesheet>
- a. The transformation will not output anything
- b. The transformation will throw an error
- c. The output will be true
- d. None
Which of following are Web Application Security Risks?
- SQL Injection
- Out of Memory exception
- Session Management and Tracking
- SQL Tracing