XML, XSLT, XPath and Web Security

Quiz covering XML transformations, XSLT, XPath expressions, and web application security concepts

7 Questions Published

Questions

Question 1 Multiple Choice (Multiple Answers)

Which of following security measures are implemented in IB.?

  1. a. URL based security
  2. b. Authentication & Authorization for the web application
  3. c. Authentication & Authorization for the ejb application
  4. d. All of the above
Question 2 Multiple Choice (Single Answer)

How do you select the first two titles in the document:

  1. a. (//title)[order()<=2]
  2. b. (//title)[index()<=2]
  3. c. (//title)[last()<=2]
  4. d. (//title)[position()<=2]
Question 3 Multiple Choice (Single Answer)

Which character is used to denote a variable

  1. a. $
  2. b. #
  3. c. @
  4. d. &
Question 4 Multiple Choice (Single Answer)

The match attribute is used to:

  1. a. Select the elements for which a template is applied; used with the element xsl:template
  2. b. Select a variable; used with the element xsl:value-of
  3. c. Select a case; used with the element xsl:switch
  4. d. Set fire to the XML document
Question 5 Multiple Choice (Single Answer)

How will you select type attribute in the document

  1. a. /type
  2. b. /@type
  3. c. //@type
  4. d. type
Question 6 Multiple Choice (Single Answer)

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>

  1. a. The transformation will not output anything
  2. b. The transformation will throw an error
  3. c. The output will be true
  4. d. None
Question 7 Multiple Choice (Single Answer)

Which of following are Web Application Security Risks?

  1. SQL Injection
  2. Out of Memory exception
  3. Session Management and Tracking
  4. SQL Tracing