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






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






3. Variables that don't contain any data






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






5. sides=10;






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






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






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






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






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






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






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






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






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






15. Represents either a primitive value or an object






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






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






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






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






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






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






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






23. ______________ operators have higher precedence






24. A ________________ is immutable.






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






26. Expressed in a Java program with single quotes






27. Methods in the Math class are ______






28. Returns the number of characters in this stirng.






29. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.






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






31. Cast operator has _________ precedence to division






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






33. Constructor: creates a new pseudorandom number generator.






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






35. Two floating data types: float - _______






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






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






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






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






40. Count++; count--






41. Delimited by double quotation characters






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






43. Before you use a variable __________it






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






45. Elements of input






46. ++count; -- count






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






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






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






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







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