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






2. _____ expression evaluated first






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






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






5. Count++; count--






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






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






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






9. Delimited by double quotation characters






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






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






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






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






14. Sets the scanner's delimiting pattern.






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






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






17. ++count; -- count






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






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






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






21. Every object has two things: a state and a _____ of behaviors






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






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






24. Four integer data types: byte - short - int - _____






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






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






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






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






29. Protection and management of an object's info. this implies that the object should be self-governing. the only changes made to the state of the object should be accomplished by that object's methods. other objects should not be able to "reach in" to






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. Constructor: creates a new string object with the same characters as str.






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






33. Begins with a backslash character ""






34. All wrapper classes are defined in ___________






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






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






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






38. Expressed in a Java program with single quotes






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






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






41. The one that is invoked






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






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






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






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






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






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






48. Represents either a primitive value or an object






49. An explicit data value used in a program






50. Returns the number of characters in this stirng.