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. Returns true if this string contains the same characters as str (without regard to case) and false otherwise.






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






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






4. Returns the character at the specified index.






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






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






7. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.






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






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






10. Boolean type conversions are ___________






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






12. The names of the parameters in the header of the method declaration






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






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






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






16. Delimited by double quotation characters






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






18. A null reference indicates that a variable does not refer to an object






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






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






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






22. Elements of input






23. An explicit data value used in a program






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






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






26. When a variable is declared inside a method






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. Widening byte: _________ - to int - to long - to float - to double






29. If the string object str holds the string "987" - the following line of code converts the string into the integer variable 987 and stores that value in the int variable num:






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






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






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






33. Sets the scanner's delimiting pattern.






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






35. The Scanner class is part of ___________________






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






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






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






39. A ________________ is immutable.






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






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






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






43. _____ expression evaluated first






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






46. ++count; -- count






47. All wrapper classes are defined in ___________






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






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






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