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 the next input token as the indicated type.






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






3. Three ways in which Java conversions occur: _________ conversion - promotion - casting






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






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






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






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






8. Control access to the members of a class. the reserved words public and private are visibility modifiers that can be applied to the variables and methods of a class.






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






10. Constructors do not even _______; therefore they cannot return a value.






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






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






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






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






15. Two floating data types: float - _______






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






17. sides=10;






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






19. Returns the character at the specified index.






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






21. The Scanner class is part of ___________________






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






23. Variables that don't contain any data






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






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






26. Count++; count--






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






28. Each piece of data that we send to a method






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






30. Returns the number of characters in this stirng.






31. The act of creating an object using the "new" operator






32. Elements of input






33. Expressed in a Java program with single quotes






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






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






36. Begins with a backslash character ""






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






38. The one that is invoked






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






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






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






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






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






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






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






46. ____________ is instantiated in the traditional way using the new operator.






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






48. Boolean type conversions are ___________






49. ++count; -- count






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