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. Two floating data types: float - _______






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






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






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






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






6. ++count; -- count






7. Represents either a primitive value or an object






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






9. Sets the scanner's delimiting pattern.






10. The one that is invoked






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






12. Expressed in a Java program with single quotes






13. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)






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






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






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






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






18. Instance data should be defined with what________ visibility






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






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






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






22. Defined and then used as the type of a variable when it is declared; establishes all possible values of a variable of that type by listing - or enumerating - them.






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






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






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






26. All wrapper classes are defined in ___________






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






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






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






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






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






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






33. Methods in the Math class are ______






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






35. An explicit data value used in a program






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






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






38. The Scanner class is part of ___________________






39. When a variable is declared inside a method






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






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






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






43. Elements of input






44. ______________ operators have higher precedence






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






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






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






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






49. Returns a new string that is identical with this string except that every occurrence of oldChar is replaed by newChar






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







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