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






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






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






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






5. Cast operator has _________ precedence to division






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






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






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






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






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






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






12. _____ expression evaluated first






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






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






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






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






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






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






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






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






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






22. Count++; count--






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






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






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






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






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






28. Defined and then used as the type of a variable when it is declared; establishes all possible values of a variable of that type by listing - or enumerating - them.






29. Returns the character at the specified index.






30. Expressed in a Java program with single quotes






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






32. Sets the scanner's delimiting pattern.






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






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






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






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






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






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






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






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






41. Returns the number of characters in this stirng.






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






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






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






45. Variables that don't contain any data






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






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






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






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






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






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