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






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






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






4. sides=10;






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






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






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






8. Before you use a variable __________it






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






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






11. Making it difficult - if not impossible - for code outside of a class to "reach in" and chnage the value of a variable that is declared inside that class.






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






13. Represents either a primitive value or an object






14. When a variable is declared inside a method






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






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






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






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






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






20. Begins with a backslash character ""






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






22. Cast operator has _________ precedence to division






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






24. An explicit data value used in a program






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






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






27. Expressed in a Java program with single quotes






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






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






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






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






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






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






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






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






36. Since an object ref var holds the address of the object - it can be thought of as a ____ to the location in memory where the object is held






37. Boolean type conversions are ___________






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






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






40. The one that is invoked






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






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






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






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






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






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






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






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






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






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







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