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. Begins with a backslash character ""






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






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






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






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






6. A method that returns a value must have a _________






7. Returns the number of characters in this stirng.






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






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






10. Modifier>type/void>identifier>parameters>method body






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






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






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






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






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






16. An explicit data value used in a program






17. A special method that has the same name as the class. After the "new" operator creates the object it is invoked to help set it up initially






18. An object should be self-governing - meaning that the instance data of an object should be modified only by that object.






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






20. A ________________ is immutable.






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






22. Making it difficult - if not impossible - for code outside of a class to "reach in" and chnage the value of a variable that is declared inside that class.






23. Returns a new string that is a subset of this string starting at index offset and extending through endIndx-1;






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






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






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






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






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






29. All wrapper classes are defined in ___________






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






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






32. Before you use a variable __________it






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






34. Elements of input






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






36. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.






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






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






39. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.






40. ++count; -- count






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






42. A set of classes that supports the development of programs






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






44. This declaration creates a Scanner object that reads input from the keyboard






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






46. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.






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






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






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






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