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






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






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






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






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






6. Methods in the Math class are ______






7. A ________________ is immutable.






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






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






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






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






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






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






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






15. The one that is invoked






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






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






18. This declaration creates a Scanner object that reads input from the keyboard






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






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






21. _____ expression evaluated first






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






23. All wrapper classes are defined in ___________






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






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






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






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






28. Sets the scanner's delimiting pattern.






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






30. They clarify the role a certain number has in the program.






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






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






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






34. Count++; count--






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






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






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






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






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






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






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






42. Expressed in a Java program with single quotes






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






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






45. Boolean type conversions are ___________






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. A name for a location in memory used to hold a data value.






48. sides=10;






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






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






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests