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. White space characters such as space characters - tabs - and new lines that separate the elements of input






2. Count++; count--






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






4. Elements of input






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






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






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






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






9. Begins with a backslash character ""






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






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






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






13. Boolean type conversions are ___________






14. Sets the scanner's delimiting pattern.






15. Delimited by double quotation characters






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






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






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






19. Returns the number of characters in this stirng.






20. Methods in the Math class are ______






21. The one that is invoked






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






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






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






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






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






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






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






29. A null reference indicates that a variable does not refer to an object






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






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






32. Cast operator has _________ precedence to division






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






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






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






36. Expressed in a Java program with single quotes






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






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






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






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






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






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






43. ______________ operators have higher precedence






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






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






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






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






48. Returns an integer indicating if this string is lexically before - equal to - or lexically after the string str.






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






50. An explicit data value used in a program