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. ______________ operators have higher precedence






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






3. sides=10;






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






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






6. Constructor: creates a new pseudorandom number generator.






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






8. Cast operator has _________ precedence to division






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






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






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






12. An explicit data value used in a program






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






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






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






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






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






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






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






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






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






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






24. Sets the scanner's delimiting pattern.






25. _____ expression evaluated first






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






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






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






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






30. Variables that don't contain any data






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






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






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






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






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






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






37. Returns the character at the specified index.






38. A ________________ is immutable.






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






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






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






42. Elements of input






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






44. Constructors do not even _______; therefore they cannot return a value.






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






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






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. Two categories of statements that control the flow of executing through a method: __________ and loops






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






50. Methods in the Math class are ______