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. Represents either a primitive value or an object






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






3. All wrapper classes are defined in ___________






4. A name for a location in memory used to hold a data value.






5. Constructor: creates a new string object with the same characters as str.






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






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






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






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






10. The Scanner class is part of ___________________






11. Occurs when a value of one type is assigned to a variable of another type during which the value is converted to the new type.






12. Expressed in a Java program with single quotes






13. Returns an integer indicating if this string is lexically before - equal to - or lexically after the string str.






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






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






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






17. ++count; -- count






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






19. Boolean type conversions are ___________






20. Defined and then used as the type of a variable when it is declared; establishes all possible values of a variable of that type by listing - or enumerating - them.






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






22. Returns a new string consisting of this string concatenated with str.






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






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






25. declaration that creates a String variable that holds a reference to a String object; an object variable doesn't hold an object itself - it holds the address of an object






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






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






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






29. Returns the number of characters in this stirng.






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






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






32. _____ expression evaluated first






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






34. Sets the scanner's delimiting pattern.






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






36. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.






37. Variables that don't contain any data






38. The only purpose of a private method is to help other methods of the class do their job. they are referred to as _________






39. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.






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






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






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






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






44. An explicit data value used in a program






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






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






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






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






49. Instance data should be defined with what________ visibility






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