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. Returns all input remaining on the current line as a character string.






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






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






4. sides=10;






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






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






7. Sets the scanner's delimiting pattern.






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






9. ______________ operators have higher precedence






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






11. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight






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






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






14. Before you use a variable __________it






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






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






17. A Java operator that is specified by a type name in parentheses; truncates rather than rounds; useful in division if u want an integer to be treated as a float or double






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






19. Variables that don't contain any data






20. An object in Java - defined by the class String






21. A value that is passed into a method when it is invoked






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






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






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






25. The Scanner class is part of ___________________






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






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






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






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






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






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






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






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






34. Delimited by double quotation characters






35. An explicit data value used in a program






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






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






38. ____________ is instantiated in the traditional way using the new operator.






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






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. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.






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






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






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






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






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






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






48. Two floating data types: float - _______






49. Returns true if the scanner has anotehr token in its input.






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