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






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






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






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






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






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






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






8. When a variable is declared inside a method






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






10. Also called a selection statement b/c it allows us to choose which statement will be executed next.






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






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






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






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






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






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






17. _____ expression evaluated first






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






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






20. sides=10;






21. Before you use a variable __________it






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






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






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






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






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. White space characters such as space characters - tabs - and new lines that separate the elements of input






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






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






30. Elements of input






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






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






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






34. Expressed in a Java program with single quotes






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






36. All wrapper classes are defined in ___________






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






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






39. ++count; -- count






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






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






42. Boolean type conversions are ___________






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






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






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






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






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






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






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






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







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