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. Returns a new string consisting of this string concatenated with str.






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






3. ______________ operators have higher precedence






4. Declared in a class but not inside any particular method






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






6. Returns the number of characters in this stirng.






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






8. A ________________ is immutable.






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






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






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






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






13. Boolean type conversions are ___________






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






15. Two floating data types: float - _______






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






17. White space characters such as space characters - tabs - and new lines that separate the elements of input






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






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






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






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






22. Delimited by double quotation characters






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






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






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






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. An object in Java - defined by the class String






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






29. Before you use a variable __________it






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






31. Cast operator has _________ precedence to division






32. Variables that don't contain any data






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






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






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






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






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






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






39. Returns true if this string contains the same characters as str (without regard to case) and false otherwise.






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






41. Return type specified in the method header can be a primitive type - class name or the ________; when a method does not return any value - void is used as the return type - as is always done with the main method.






42. Returns the character at the specified index.






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






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






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






46. Sets the scanner's delimiting pattern.






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






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






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






50. _____ expression evaluated first