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. Every object has two things: a state and a _____ of behaviors






2. Variables that don't contain any data






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






4. Before you use a variable __________it






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






6. sides=10;






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






8. Count++; count--






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






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






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






12. A null reference indicates that a variable does not refer to an object






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






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






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






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






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






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






19. When a variable is declared inside a method






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






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






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






23. All wrapper classes are defined in ___________






24. The automatic conversion between a primitive value and a corresponding wrapper object.






25. Two floating data types: float - _______






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






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






28. The Scanner class is part of ___________________






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






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






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






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






33. Methods in the Math class are ______






34. An explicit data value used in a program






35. ++count; -- count






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






37. Sets the scanner's delimiting pattern.






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






39. Instance data should be defined with what________ visibility






40. Cast operator has _________ precedence to division






41. Widening byte: _________ - to int - to long - to float - to double






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






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






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






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






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






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






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






49. Delimited by double quotation characters






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