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






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






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






4. Delimited by double quotation characters






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






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






7. The values passed into a method in an invocation; these are called the arguments to the method






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






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






10. We use an object when we have a _________ to it






11. Count++; count--






12. Variables that don't contain any data






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






14. Sets the scanner's delimiting pattern.






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






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






17. Instance data should be defined with what________ visibility






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






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






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






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






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






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






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






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






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






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






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






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






30. ______________ operators have higher precedence






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






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






33. ++count; -- count






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






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






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






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






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






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






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






41. Two floating data types: float - _______






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






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






44. Expressed in a Java program with single quotes






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






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






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






48. A ________________ is immutable.






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






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







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