CIT 597 Quiz 7: RELAX NG, Ajax, Servlets
Fall 2008, David Matuszek Name_________________________________________
  1. (10 points) List two advantages of RELAX NG over DTDs.



  2. (10 points) A RELAX NG schema can use either of two root elements. Name both of them.


  3. (5 points) When writing an Ajax application, what is the significance of request.readystate having a value of 4?


  4. (5 points) What is the proper capitalization of xmlhttprequest?

  5. (15 points) If you have an Ajax application that works the first time, but nothing appears to happen after that,
    1. What is the most likely explanation?


    2. What is the best way to fix the problem?


    3. Does this problem occur with GET, with POST, or with both? Tell why.



  6. (5 points) The Ajax command  request.send(null); doesn't appear to send any information, so when would you use it?

  7. (5 points) Is the escape method used primarily with GET or with POST? Why?



  8. (5 points) What difference does the server see between an Ajax request and a non-Ajax request?

  9. (10 points) Tell one advantage and one disadvantage of using innerHTML.



  10. (5 points) If the server responds with XML, to what string should it set the mime type?

  11. (10 points) Complete the following Java statement:
         Preferences userPrefs =

  12. (15 points) In the statement   x = userPrefs.get(y, z);   briefly tell the type and meaning of each of x, y, and z.