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. ______________ operators have higher precedence






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






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






4. The Scanner class is part of ___________________






5. Part of the standard Java class library - provides convenient methods for reading input values of various types. the input can come from various sources - including data typed interactively by the user or data stored in a file; the Scanner class can






6. Count++; count--






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






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






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






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






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






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






14. Includes the type of teh return value - the method name - and the list of parameters that the method accepts.






15. Begins with a backslash character ""






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






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






18. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.






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






20. The only purpose of a private method is to help other methods of the class do their job. they are referred to as _________






21. Even though a method may not take parameters - _________ are still necessary to indicate that a method is being invoked






22. Elements of input






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






24. ++count; -- count






25. Returns the character at the specified index.






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






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






28. Before you use a variable __________it






29. The one that is invoked






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






31. All wrapper classes are defined in ___________






32. Every object has two things: a state and a _____ of behaviors






33. Boolean type conversions are ___________






34. Instructs the compiler to reserve a portion of main memory space large enough to hold a particular type of value and indicates the name by which we refer to that location






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






36. When a variable is declared inside a method






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






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






39. Variables that don't contain any data






40. _____ expression evaluated first






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






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






43. Changes a particular value - e.g.setX - where X is the value they are setting.






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






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






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






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






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






49. Only two valid values: true and false; can indicate whether a particular condition is true - but can also be used to represent any situation that has two states - such as a light bulb being on or off






50. An explicit data value used in a program