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. Constants are ______ because the can't be changed once you use the final modifier






2. Instance data should be defined with what________ visibility






3. Sets the scanner's delimiting pattern.






4. The one that is invoked






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






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






7. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.






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






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






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






11. Boolean type conversions are ___________






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






13. The Scanner class is part of ___________________






14. Variables that don't contain any data






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






16. Returns the character at the specified index.






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






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






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






20. Part of the java.util class; picks a number at random out of a range of values.






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






22. Begins with a backslash character ""






23. Expressed in a Java program with single quotes






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






25. Examples of Scanner ________: Scanner (InputStream source) - Scanner(File source) - Scanner(String source)






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






27. Elements of input






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






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






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






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






32. Count++; count--






33. How classes are created from other classes. the definition of one class can be based on another class that already exists. inheritance is a form of software reuse - capitalizing on the similarities between various kinds of classes that we want to cre






34. A class usually provides services to access and modify __________






35. A ________________ is immutable.






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






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






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






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






40. Before you use a variable __________it






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






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






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






44. A variable that refers to an object must be __________






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






46. Returns a new string that is identical with this string except that every occurrence of oldChar is replaed by newChar






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






48. sides=10;






49. _____ expression evaluated first






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