Test your basic knowledge |

Object Oriented 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. The names of the parameters in the header of the method declaration






2. The idea that we can refer to multiple types of related objects over time in consistent ways. it gives us the ability to design powerful and elegant solutions to problems that deal with multiple objects.






3. Represents either a primitive value or an object






4. The values passed into a method in an invocation; these are called the arguments to the method






5. A null reference indicates that a variable does not refer to an object






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






7. Since an object ref var holds the address of the object - it can be thought of as a ____ to the location in memory where the object is held






8. A combo of one or more operators and operands that usually perform a calculation; operands can be literals - constants - variables - or other sources of data






9. A variable that refers to an object must be __________






10. Returns all input remaining on the current line as a character string.






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






12. A class usually provides services to access and modify __________






13. Changes a particular value - e.g.setX - where X is the value they are setting.






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






15. An object has behaviors - which are defined by the ________ associated with that object.






16. Returns the number of characters in this stirng.






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






18. Return type specified in the method header can be a primitive type - class name or the ________; when a method does not return any value - void is used as the return type - as is always done with the main method.






19. An object in Java - defined by the class String






20. Examples of Scanner ________: Scanner (InputStream source) - Scanner(File source) - Scanner(String source)






21. _____ expression evaluated first






22. A ____________ and definition always give the parameter list in parentheses after the method name. if there are no parameters - an empty set of parentheses is used






23. Two floating data types: float - _______






24. ++count; -- count






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






26. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.






27. The automatic conversion between a primitive value and a corresponding wrapper object.






28. Returns the character at the specified index.






29. The declarations of object variables have a similar structure to the declaration of _______________






30. The classes of the Java standard class library are grouped into __________.






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






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






33. ____________ is instantiated in the traditional way using the new operator.






34. Five steps of problem-solving: ____________ the problem - Designing a solution - Considering alternatives to the solution and refining the solution - Implementing the solution - Testing the solution and fixing any problems that exist






35. An explicit data value used in a program






36. Constructor: creates a new pseudorandom number generator.






37. Sets the scanner's delimiting pattern.






38. The act of creating an object using the "new" operator






39. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.






40. Even though a method may not take parameters - _________ are still necessary to indicate that a method is being invoked






41. Returns the int corresponding to the value stored in the specified string






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






43. ______________ operators have higher precedence






44. The values it stores internally - which may be represented as primitive data or as other objects. for example - a bank account object can store a floating point number (a primitive value) that represents the balance of the account. it can also contai






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






46. Methods in the Math class are ______






47. In the header of a method specifies he types of the values that are passed and the names by which the called method will refer to those values.






48. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)






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






50. A ________________ is immutable.