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 identical to this string except all uppercase letters are converted to their lowercase equivalent.






2. Instance data should be defined with what________ visibility






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






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






5. Count++; count--






6. Delimited by double quotation characters






7. Constructor: creates a new pseudorandom number generator.






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






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






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






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






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






13. New memory space is reserved for that variable every time an instance of the class that is created.






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






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






16. Boolean type conversions are ___________






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






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






19. The one that is invoked






20. Begins with a backslash character ""






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






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






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






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






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






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






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






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






29. _____ expression evaluated first






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. Elements of input






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






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






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






35. The act of creating an object using the "new" operator






36. ______________ operators have higher precedence






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






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






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






40. An explicit data value used in a program






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






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






43. Expressed in a Java program with single quotes






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






45. Constructors do not even _______; therefore they cannot return a value.






46. Two categories of statements that control the flow of executing through a method: __________ and loops






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






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






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






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






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