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 ________________ is immutable.






2. Expressed in a Java program with single quotes






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






4. Begins with a backslash character ""






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






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






7. ______________ operators have higher precedence






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






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






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






11. Boolean type conversions are ___________






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






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






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






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






16. Constructor: creates a new pseudorandom number generator.






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






18. Delimited by double quotation characters






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






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






21. sides=10;






22. All wrapper classes are defined in ___________






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






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






25. The order in which statements are executed in a running program






26. The idea that we can refer to multiple types of related objects over time in consistent ways. it gives us the ability to design powerful and elegant solutions to problems that deal with multiple objects.






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






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






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






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






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






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






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






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






35. Before you use a variable __________it






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






37. _____ expression evaluated first






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






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






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






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






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






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






44. Returns an integer indicating if this string is lexically before - equal to - or lexically after the string str.






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. A null reference indicates that a variable does not refer to an object






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






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






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






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







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