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. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)






2. Variables that don't contain any data






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






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






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






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






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






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






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






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






11. Methods in the Math class are ______






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






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






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






15. In the header of a method specifies he types of the values that are passed and the names by which the called method will refer to those values.






16. Sets the scanner's delimiting pattern.






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






18. sides=10;






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






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






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






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






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






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






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






26. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight






27. Returns a new string that is a subset of this string starting at index offset and extending through endIndx-1;






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






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






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






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






32. All wrapper classes are defined in ___________






33. A ________________ is immutable.






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






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






36. Modifier>type/void>identifier>parameters>method body






37. The names of the parameters in the header of the method declaration






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






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






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






41. Count++; count--






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






43. Occurs automatically when certain operators need to modify their opeands in order to perform the operation






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






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






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






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






48. ______________ operators have higher precedence






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






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







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