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. ____________ is instantiated in the traditional way using the new operator.






2. Represents either a primitive value or an object






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






4. The one that is invoked






5. Cast operator has _________ precedence to division






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






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






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






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






10. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)






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






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






13. _____ expression evaluated first






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






15. A ________________ is immutable.






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






17. Includes the type of teh return value - the method name - and the list of parameters that the method accepts.






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






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






20. Sets the scanner's delimiting pattern.






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






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






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






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






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






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






27. The Scanner class is part of ___________________






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






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






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






31. All numeric types are _______ - meaning both positive and negative values can be stored in them






32. Constructor: creates a new pseudorandom number generator.






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






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






35. Returns the number of characters in this stirng.






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






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






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






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






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






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






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






43. sides=10;






44. ++count; -- count






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






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






47. Attempts to find the next occurence of the specified pattern - ignoring delimiters






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






49. The blueprint of an object. establishes the kind of data an object of that type will hold and defines the methods that represent the behavior of such objects. however - a class contains no space to store data. each object has space for its own data -






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