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. Attempts to find the next occurence of the specified pattern - ignoring delimiters






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






4. Sets the scanner's delimiting pattern.






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






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






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






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






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






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






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






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






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






14. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.






15. Examples of Scanner ________: Scanner (InputStream source) - Scanner(File source) - Scanner(String source)






16. Two floating data types: float - _______






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






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






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






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






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






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






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






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






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






26. Count++; count--






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






28. Before you use a variable __________it






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






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






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






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






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






34. sides=10;






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






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






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






38. Instance data should be defined with what________ visibility






39. ++count; -- count






40. Boolean type conversions are ___________






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






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






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






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






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






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






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






48. Constructor: creates a new pseudorandom number generator.






49. A ________________ is immutable.






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