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. Allows us to invoke more than one servlet in sequence when the URL is opened with a common servlet alias.






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






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






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






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






6. Keeps two threads from interfering with one another.






7. A set of APIs that assists with the interfacing to multiple naming and directory services.






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






9. Reuses the functionality from a previously defined interface.






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






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






12. A test suite - a set of tools and other requirements used to certify a Java platform implementation conformant both to the applicable Java platform specifications and to Java Software reference implementations.






13. Limits the computer's ability to represent extra large or extra small numbers when the computer does intermediate calculations on float and double values.






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






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






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






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






18. 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 const variable.






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






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






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






22. A subset of the Java Development Kit (JDK) for end-users and developers who want to redistribute the runtime environment alone. The Java runtime environment consists of the Java virtual machine1 - the Java core classes and supporting files.






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






24. Used to generate HTML






25. A platform-independent file format that aggregates many files into one. Multiple applets written in the Java programming language and their requisite components (.class files & images & sounds and other resource files) can be bundled in a JAR file an






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






27. Jumps out of a loop or switch.






28. Refers to the superclass of the code in which the word super appears.






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






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






31. Useful only for small sites






32. Introduces a class






33. A protocol used for communication between CORBA object request brokers.






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






35. A software development environment for writing applets and applications in the Java programming language. Technically - the JDK is the correct name for all versions of the Java platform from 1.0 to 1.1.x.






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






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






38. Puts the code into a package






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






40. Evaluates interior code to a String and feeds it to the implicit "out" print writer (JspWriter) - done at time of JSP page request






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






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






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






44. Creates a subclass






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






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






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






48. Includes a file in the page






49. A self-reference






50. CRUD: Create - Retrieve - ________ - Delete