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. All numeric types are _______ - meaning both positive and negative values can be stored in them






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






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






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






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






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






7. Variables and constants can be referenced in any method of the class by declaring at the _________






8. Returns the character at the specified index.






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






10. Constructor: creates a new string object with the same characters as str.






11. Methods in the Math class are ______






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






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






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






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






16. All wrapper classes are defined in ___________






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






18. An explicit data value used in a program






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






20. ______________ operators have higher precedence






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






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






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






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






25. Count++; count--






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






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






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






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






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






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






32. sides=10;






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






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






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






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






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






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






39. declaration that creates a String variable that holds a reference to a String object; an object variable doesn't hold an object itself - it holds the address of an object






40. A name for a location in memory used to hold a data value.






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






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






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






44. The one that is invoked






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






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






47. _____ expression evaluated first






48. Cast operator has _________ precedence to division






49. When a variable is declared inside a method






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