Test your basic knowledge |

Java Web Programming

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. A mechanism defined in the HTTP specification that makes it possible to serve different versions of a document (a resource representation) at the same URI so that user agents can specify which version fit their capabilities the best.






2. Your computer sends a ______ for some file (e.g. "Get me the file 'home.html'") and the web server sends back a response ("Here's the file" - followed by the file itself).






3. This Java object is used by a controller servlet to send the request to the appropriate JSP page






4. Associative array that by default contains contents of $_GET and $_POST and $_COOKIE






5. A popular persistence provider used with Java Web servers






6. Does nothing if expected value equals actual value but throws error otherwise






7. This provides methods that allow you to retrieve header information as well as information about the client and server.






8. Open-source SQL (Structured Query Language) database implementation. persistence provider.






9. This part of a CSS rule specifies the set of HTML elements to which a defined style should apply






10. A GET request results from a normal request for a URL or from an HTML form that has no METHOD specified and it should be handled by this method.






11. Prints a message and exits the current script






12. Document that conforms to SML syntax rules (ex. start tag without end tag)






13. HTTP request method. Parameters are passed to the server through a separate input channel. used for non-dempotent requests.






14. This DTD contains all HTML elements and attributes but does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed.






15. Not intended to be depended on by external code and thus are not part of the interface.






16. If the XML file containing the fragment above were parsed with a W3C DOM parser (as in our programming assignment) the contents of the fragment above would appear as an object satisfying this interface






17. Rreduces the amount of redundancy in code that may connect to the database (assists in some functionality)






18. Returns a reference to the element by its ID where element is a reference to an Element object or null if an element with the specified ID is not in the document.






19. A notation that shows all of the information needed to invoke (or call) the method






20. String that is the result of submitting an HTTP request/form with query that specifies the name/value pairs






21. Object used for executing a static SQL statement and returning the result it produces






22. Gets the value of a Bean property so that you can display it in a result page.






23. Web page content that changes or is changed automatically based on database content or user information.






24. an object associated with a visitor. Data can be put in this and retrieved from it - much like a Hashtable. A different set of data is kept for each visitor to the site.






25. what an MVC is given by a database






26. Technology specifically designed for automated logic testing of Web applications






27. a set of classes that supports the development of programs






28. The element containing the current element with no intervening container elements.






29. a database view that allows the user to see all fields for one record and enter them one at a time.






30. Code indicating status that server sends back to you.






31. Objects of any type that are explicitly placed on the request object via a call to the setAttribute() method






32. Database that represents data as a collection of tables in which all data relationships are represented by common values in related tables






33. Entries in a database






34. Keyword that can be used inside any method to refer to the current object






35. Methodology that anticipates need for flexibility. focuses on keeping code simple and testing often and delivering functional bits of application as soon as they're ready. goal is to build upon small client-approved parts as the project progresses as






36. a piece of Java-code embedded in the HTML-like JSP code






37. Method that may involve anything - like storing or updating data or ordering a product or sending E-mail.






38. The act of intercepting requests and responses to transform or use info contained in the requests or responses; can transform response from a servlet or JSP page






39. After a database query is performed - this Java class provides access to the records extracted from the database






40. Servlet configuration descriptor to use WEB-INF/web.xml; required most of the time in WAR task






41. Design pattern for asynchronous invocation of potentially long-running methods of an object






42. What to attempt to do; requires a "catch" statement






43. Test class used to test your code automatically






44. This component of the MVC architecture holds business data that will be displayed in the JSP page






45. Tells the compiler where to access certain classes






46. Gets the value of a Bean property so that you can display it in a result page.






47. Object reference






48. stores information about or change settings for a user session. Variables stored in it hold information about one single user and are available to all pages in one application.






49. Your computer sends a ______ for some file (e.g. "Get me the file 'home.html'") and the web server sends back a response ("Here's the file" - followed by the file itself).






50. an individual component of a document