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. Variables that don't contain any data






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






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






4. ______________ operators have higher precedence






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






6. Returns the character at the specified index.






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






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






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






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






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






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






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






14. Begins with a backslash character ""






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






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






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






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






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






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






21. Sets the scanner's delimiting pattern.






22. The location at which a variable is declared defines its scope - which is the area within a program in which the variable can be referenced.






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






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






25. Part of the java.util class; picks a number at random out of a range of values.






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






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






28. Returns the next input token as a character string.






29. Elements of input






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






31. Even though a method may not take parameters - _________ are still necessary to indicate that a method is being invoked






32. Before you use a variable __________it






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






34. When a variable is declared inside a method






35. ++count; -- count






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






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






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






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






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






41. The names of the parameters in the header of the method declaration






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






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






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






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






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






47. Instance data should be defined with what________ visibility






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






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






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