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. Instance data should be defined with what________ visibility






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






3. Returns the character at the specified index.






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






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






6. When a variable is declared inside a method






7. The one that is invoked






8. Cast operator has _________ precedence to division






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






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






11. ++count; -- count






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






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






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






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






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






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






18. An explicit data value used in a program






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






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






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






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






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






24. Expressed in a Java program with single quotes






25. Begins with a backslash character ""






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






27. Sets the scanner's delimiting pattern.






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






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






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






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






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






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






34. Three ways in which Java conversions occur: _________ conversion - promotion - casting






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






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






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






38. They clarify the role a certain number has in the program.






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






40. Delimited by double quotation characters






41. All wrapper classes are defined in ___________






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






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






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






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






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






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






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






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. Returns a new string consisting of this string concatenated with str.