Test your basic knowledge |

Java Programming Basics

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 technology that provides distributed persistence and data exchange mechanisms for code in Java.






2. Introduces statements that are executed when something interrupts the flow of execution in a try clause.






3. Creates an object from an existing class.






4. Servlet is: loaded by servlet container when 1st requested; is then forwarded the user's request; processes the user's request; returns the response back to the servlet container. Servlet container sends this response back to the user. Servlet stays






5. Tests to see whether a certain object comes from a certain class.






6. Jumps out of a loop or switch.






7. Indicates that a method doesn't return a value.






8. Indicates that a value is a 64-bit whole number.






9. You can't use this word in a Java program. The word has no meaning. Because it's a keyword you can't create a goto variable.






10. Used to terminate the execution of the current JSP page and switch control to another resource






11. Run-once code blocks which run once at beginning of page load for initialization tasks - can appear anywhere in .jsp page itself - useful for overload JspInit() and JspDestroy()






12. Indicates that a value is a 32-bit number with one or more digits after the decimal point.






13. This separates the content presentation (View) from the underlying business operations/content generation (Model) using infrastructure/controller Servlet (Controller) which exists between the client browser and the JSP/Servlet-generated pages. Contro






14. Introduces a class






15. Ends execution of a method and possibly returns a value to the calling code.






16. A tool for checking compliance of applications and applets to a specification.






17. Sets attributes and properties specific to the current JSP page






18. Introduces one of several possible paths of execution in a switch statement.






19. A software development environment for writing applets and application in Java .






20. Indicates that a method or constructor may pass the buck when an exception is thrown.






21. A CORBA standard for building server-side applications that are portable across heterogeneous ORBs.






22. Indicates that a variable or method can be used in subclasses from another package.






23. A class that wraps primitives - Integer or Boolean...






24. A set of Java APIs that provide CORBA (Common Object Request Broker Architecture) interoperability and connectivity capabilities for the J2EE platform. These capabilities enable J2EE applications to invoke operations on remote network services using






25. A set of APIs that support the integration of audio and video clips & 2D fonts & graphics and images as well as 3D models and telephony.






26. Indicates that a value is an 8-bit whole number.






27. A Java class that can be loaded into and run dynamically in a Servlet container on a web server; interact with web clients via a request-response model based on HTTP.






28. Indicates that a variable or method belongs to a class rather than to any object created from the class.






29. A tool for tracking and managing source file changes - written in Java.






30. A description of the structure and properties of a class of XML files.






31. Basic code block of a JSP page






32. A tree of objects with interfaces for traversing the tree and writing an XML version of it as defined by the W3C specification.






33. Similar to the include Directive but can pass information to the included resource






34. Reuses the functionality from a previously defined interface.






35. Indicates that a value is a 32-bit whole number.






36. Indicates that a variable or class or method can be used by any other Java code.






37. Used to generate HTML






38. A definition of the interfaces that permit CORBA objects to participate in transactions.






39. A self-reference






40. Indicates that the details of a class or a method or an interface are given elsewhere in the code.






41. The output of one servlet act as a input to another servlet.






42. Useful only for small sites






43. Allows us to invoke more than one servlet in sequence when the URL is opened with a common servlet alias.






44. Enables the programmer to use code that was written in another language (one of those awful languages other than Java).






45. Introduces a path of execution to take when no case is a match in a switch statement.






46. A portable platform-independent reusable component model. A component that conforms to this model is called a bean.






47. Creates a new exception object and indicates that an exceptional situation (usually something unwanted) has occurred.






48. Two Servlet API packages: javax.servlet.* ___________






49. Indicates that if and when an object is serialized a variable's value doesn't need to be stored.






50. Keeps two threads from interfering with one another.