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. Variables that don't contain any data






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






3. Count++; count--






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






5. Constructor: creates a new pseudorandom number generator.






6. A group of programming statements that is given a name. when a method is invoked - its statements are executed. a set of methods is associated with an object and defines its potential behaviors. to define the ability to make a deposit into a bank acc






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






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






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






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






11. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)






12. Two floating data types: float - _______






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






14. When a variable is declared inside a method






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






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






17. Represents either a primitive value or an object






18. The automatic conversion between a primitive value and a corresponding wrapper object.






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






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






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






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






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






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






25. sides=10;






26. An object has behaviors - which are defined by the ________ associated with that object.






27. Instance data should be defined with what________ visibility






28. Returns the number of characters in this stirng.






29. Methods in the Math class are ______






30. A combo of one or more operators and operands that usually perform a calculation; operands can be literals - constants - variables - or other sources of data






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






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






33. Elements of input






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






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






36. The values it stores internally - which may be represented as primitive data or as other objects. for example - a bank account object can store a floating point number (a primitive value) that represents the balance of the account. it can also contai






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






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






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






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






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






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






43. The order in which statements are executed in a running program






44. A ________________ is immutable.






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






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






48. The one that is invoked






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






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







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