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. Variables and constants can be referenced in any method of the class by declaring at the _________






2. Expressed in a Java program with single quotes






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






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






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






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






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






8. Variables that don't contain any data






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






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






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






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






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






14. Returns true if this string contains the same characters as str (without regard to case) and false otherwise.






15. Delimited by double quotation characters






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






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






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






19. Attempts to find the next occurence of the specified pattern - ignoring delimiters






20. Methods in the Math class are ______






21. ++count; -- count






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






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. Constants are ______ because the can't be changed once you use the final modifier






25. sides=10;






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






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






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






29. All wrapper classes are defined in ___________






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






31. The Scanner class is part of ___________________






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






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






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






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






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






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






38. ______________ operators have higher precedence






39. _____ expression evaluated first






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






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






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






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






44. Part of the java.util class; picks a number at random out of a range of values.






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






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






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






48. Before you use a variable __________it






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






50. Returns the number of characters in this stirng.







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