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. Also called a selection statement b/c it allows us to choose which statement will be executed next.






2. Count++; count--






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






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






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






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






7. Cast operator has _________ precedence to division






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






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






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






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






12. Expressed in a Java program with single quotes






13. Boolean type conversions are ___________






14. Two floating data types: float - _______






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






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






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






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






19. The Scanner class is part of ___________________






20. When two variables contain the same address and therefore refer to the same object; one important implication of _________ is that when we use one ref to change an object - it is also changed for the other reference because there is really only one o






21. ______________ operators have higher precedence






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






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






24. sides=10;






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






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






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






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






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






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






31. Making it difficult - if not impossible - for code outside of a class to "reach in" and chnage the value of a variable that is declared inside that class.






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






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






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






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






36. ++count; -- count






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






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






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






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






41. The one that is invoked






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






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






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






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






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






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






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






49. Variables that don't contain any data






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







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