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. Returns the next input token as a character string.






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






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






4. A value that is passed into a method when it is invoked






5. We use an object when we have a _________ to it






6. A Java operator that is specified by a type name in parentheses; truncates rather than rounds; useful in division if u want an integer to be treated as a float or double






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. _____ expression evaluated first






9. Before you use a variable __________it






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






11. Protection and management of an object's info. this implies that the object should be self-governing. the only changes made to the state of the object should be accomplished by that object's methods. other objects should not be able to "reach in" to






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






13. Declared in a class but not inside any particular method






14. Boolean type conversions are ___________






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






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






17. Only two valid values: true and false; can indicate whether a particular condition is true - but can also be used to represent any situation that has two states - such as a light bulb being on or off






18. Each piece of data that we send to a method






19. New memory space is reserved for that variable every time an instance of the class that is created.






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






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






22. A group of programming statements that is given a name. when a method is invoked - its statements are executed. a set of methods is associated with an object and defines its potential behaviors. to define the ability to make a deposit into a bank acc






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






24. Returns a new string that is identical with this string except that every occurrence of oldChar is replaed by newChar






25. The one that is invoked






26. Provide various methods related to the management of the associated primitive type. Used when we create an object that serves as a container to hold various types of other objects - and we want the object to hold a simple integer value. In this case






27. The names of the parameters in the header of the method declaration






28. Returns true if this string contains the same characters as str (without regard to case) and false otherwise.






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






30. A ________________ is immutable.






31. All wrapper classes are defined in ___________






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






33. Control access to the members of a class. the reserved words public and private are visibility modifiers that can be applied to the variables and methods of a class.






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






35. Cast operator has _________ precedence to division






36. ++count; -- count






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






38. White space characters such as space characters - tabs - and new lines that separate the elements of input






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






40. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type






41. Two floating data types: float - _______






42. Count++; count--






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






44. Constructor: creates a new pseudorandom number generator.






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. An object has behaviors - which are defined by the ________ associated with that object.






47. Instance data should be defined with what________ visibility






48. Widening byte: _________ - to int - to long - to float - to double






49. format for constants: all upper-case; separated by ________






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