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. New memory space is reserved for that variable every time an instance of the class that is created.






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






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






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






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






6. Elements of input






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






8. Constructor: creates a new pseudorandom number generator.






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






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






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






12. ++count; -- count






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






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






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






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






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






19. Boolean type conversions are ___________






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. ____________ is instantiated in the traditional way using the new operator.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






36. Instance data should be defined with what________ visibility






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






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






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






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






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






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






43. Count++; count--






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






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






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






47. An explicit data value used in a program






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






49. Before you use a variable __________it






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







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