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 that is a subset of this string starting at index offset and extending through endIndx-1;






2. ______________ operators have higher precedence






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






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






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






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






7. The Scanner class is part of ___________________






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






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






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






11. Begins with a backslash character ""






12. Expressed in a Java program with single quotes






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






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






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






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






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






18. A ________________ is immutable.






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






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






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






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






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






24. Returns the number of characters in this stirng.






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






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






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






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






29. Sets the scanner's delimiting pattern.






30. ++count; -- count






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






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






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






34. Delimited by double quotation characters






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






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






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






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






39. Three ways in which Java conversions occur: _________ conversion - promotion - casting






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






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






42. Constructor: creates a new pseudorandom number generator.






43. Two floating data types: float - _______






44. sides=10;






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






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






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






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






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






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







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