214 quizzes found.

Implementing your own PDO class requires which steps from the list below?

  1. Extending the PDOStatement Class
  2. Set the PDO::ATTR_STATEMENT_CLASS parameter
  3. Call the PDO::setStatementClass() method
  4. Extend the PDO class
  5. Set the PDO::ATTR_USE_CLASS paramater

Choose 3 answers

When embedding PHP into XML documents, what must you ensure is true in order for things to function properly?

  1. Disabling of the short_tags PHP.ini directive
  2. Enabling the asp_tags PHP.ini directive
  3. That you have XPath support enabled in PHP 5
  4. That your XML documents are well-formed
  5. None of the above, PHP can be embedded in XML in all cases.

Choose 1 answers

What XML technology is used when you mix two different document types in a single XML document?

  1. Validators
  2. DTD
  3. Transformations
  4. Namespaces

Choose 1 answers

Consider the following example XML document; What is wrong with this document, and how can it be corrected?

<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>XML Example</title> </head> <body> <p> Moved to <<a href="http://example.org/">http://www.example.org/</a>.> <br> </p> </body></html>
  1. The document is completely valid
  2. All special XML characters must be represented as entities within the content of a node
  3. All tags must be closed
  4. You cannot specify a namespace for the <html> attribute
  5. The DOCTYPE declaration is malformed

Choose 2 answers

Event-based XML parsing is an example of which parsing model?

  1. SAX
  2. DOM
  3. XML Object Mapping
  4. XPath
  5. XQuery

Choose 1 answers