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. _____ expression evaluated first






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






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






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






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






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






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






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






9. Modifier>type/void>identifier>parameters>method body






10. This declaration creates a Scanner object that reads input from the keyboard






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






12. Constants are ______ because the can't be changed once you use the final modifier






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






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






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






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






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






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






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






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






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






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






23. Two floating data types: float - _______






24. Delimited by double quotation characters






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






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






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






28. Cast operator has _________ precedence to division






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






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






31. The Scanner class is part of ___________________






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






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






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






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






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






37. If the string object str holds the string "987" - the following line of code converts the string into the integer variable 987 and stores that value in the int variable num:






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






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






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






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






42. Instance data should be defined with what________ visibility






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






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






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






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






47. Returns true if the scanner has anotehr token in its input.






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






49. A ________________ is immutable.






50. ++count; -- count







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