Test your basic knowledge |

Object Oriented Programming

Subject : it-skills
Instructions:
  • Answer 25 questions in 10 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. Part of the standard Java class library - provides convenient methods for reading input values of various types. the input can come from various sources - including data typed interactively by the user or data stored in a file; the Scanner class can






2. If the string object str holds the string "987" - the following line of code converts the string into the integer variable 987 and stores that value in the int variable num:






3. Count++; count--






4. How classes are created from other classes. the definition of one class can be based on another class that already exists. inheritance is a form of software reuse - capitalizing on the similarities between various kinds of classes that we want to cre






5. Every object has two things: a state and a _____ of behaviors






6. A ________________ is immutable.






7. Returns the next input token as the indicated type.






8. After an object has been instantiated - we set the _________ to access its methods






9. All wrapper classes are defined in ___________






10. Four integer data types: byte - short - int - _____






11. Two categories of statements that control the flow of executing through a method: __________ and loops






12. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.






13. Returns a string containing the specified number formatted according to this object's pattern.






14. The order in which statements are executed in a running program






15. Constants are ______ because the can't be changed once you use the final modifier






16. Also called a selection statement b/c it allows us to choose which statement will be executed next.






17. When two variables contain the same address and therefore refer to the same object; one important implication of _________ is that when we use one ref to change an object - it is also changed for the other reference because there is really only one o






18. System.out object represents an output device or file; we send the println message to the System.out object to request that some text be printed






19. Instructs the compiler to reserve a portion of main memory space large enough to hold a particular type of value and indicates the name by which we refer to that location






20. Variables and constants can be referenced in any method of the class by declaring at the _________






21. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight






22. Returns true if the scanner has anotehr token in its input.






23. Includes the type of teh return value - the method name - and the list of parameters that the method accepts.






24. Returns a new string identical to this string except all lowercase letters are converted to their uppercase equivalent.






25. Occurs automatically when certain operators need to modify their opeands in order to perform the operation