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. An extension that adds graphical user interface class libraries to the Abstract Windowing Toolkit (AWT).






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






3. 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






4. Keeps two threads from interfering with one another.






5. Tests to see whether a condition is true. If it's true the computer executes certain statements; otherwise the computer executes other statements.






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






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






8. Causes the computer to repeat some statements over and over again (for instance as long as the computer keeps getting unacceptable results).






9. Indicates that a value is a character (a single letter or digit or punctuation symbol and so on) stored in 16 bits of memory.






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






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






12. Type of Java program (as opposed to a stand-alone program) which is embedded in a web page (requested from a server) and run on a client-side browser






13. A special Java servlet-aware web server process.






14. Consists of class libraries - a Java virtual machine (JVM) and class loader (which comprise the runtime environment) and a compiler - debugger and other tools (which comprise the development kit).






15. Indicates that a variable's value cannot be changed - that a class's functionality cannot be extended or that a method cannot be overridden.






16. 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()






17. 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.






18. In the Java programming language specification - describes a floating point number that holds 64 bits of data. See also single precision.






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






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






21. Indicates that a value is a 16-bit whole number.






22. Tests the truth of a condition that the programmer believes is true.






23. Repeats some statements over and over again (as long as a condition is still true).






24. Introduces an interface which is like a class but less specific.






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






26. Gets the computer to repeat some statements over and over again (for instance a certain number of times).






27. Enables the programmer to abbreviate the names of classes defined in a package.






28. A software "execution engine" that safely and compatibly executes the byte codes in Java class files on a microprocessor (whether in a computer or in another electronic device).






29. Introduces statements that are watched (during runtime) for things that can go wrong.






30. ______ uses HTML-like tags in a "*.jsp" web-page on a web server linked to from the client's web-browser as short-hand to render Java Servlet code in a Java .class file by the Servlet/JSP container (done by the "page-compiler" Servlet) running on the






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






32. Introduces the last will and testament of the statements in a try clause.






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






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






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






36. Jumps out of a loop or switch.






37. A principal native to the operating system on which the Java platform is executing.






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






39. A lock that can be counted - i.e. how many times a resouce has been accessed and locked






40. Common Object Request Broker Architecture. A language independent distributed object model specified by the Object Management Group (OMG).






41. Reuses the functionality from a previously defined interface.






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






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






44. Useful only for small sites






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






46. 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.






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






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






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






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