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 generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.






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






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






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






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






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






7. Returns the number of characters in this stirng.






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






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






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






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






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






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






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






15. Before you use a variable __________it






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






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






18. Returns the character at the specified index.






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






20. The idea that we can refer to multiple types of related objects over time in consistent ways. it gives us the ability to design powerful and elegant solutions to problems that deal with multiple objects.






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






22. _____ expression evaluated first






23. ++count; -- count






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






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






26. Variables that don't contain any data






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






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






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






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






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






32. Returns true if this string contains the same characters as str (without regard to case) and false otherwise.






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






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






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






36. The Scanner class is part of ___________________






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






38. The only purpose of a private method is to help other methods of the class do their job. they are referred to as _________






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






40. Widening byte: _________ - to int - to long - to float - to double






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






42. The one that is invoked






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






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






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






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






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






48. Delimited by double quotation characters






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






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







Sorry!:) No result found.

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