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






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






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






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






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






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






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






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






9. Expressed in a Java program with single quotes






10. ______________ operators have higher precedence






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






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






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






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






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






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






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






18. The Scanner class is part of ___________________






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






20. Delimited by double quotation characters






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






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






23. Cast operator has _________ precedence to division






24. The automatic conversion between a primitive value and a corresponding wrapper object.






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






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






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






28. A combo of one or more operators and operands that usually perform a calculation; operands can be literals - constants - variables - or other sources of data






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






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






31. ++count; -- count






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






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






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






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






36. Returns the character at the specified index.






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






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






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






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






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






42. All wrapper classes are defined in ___________






43. Count++; count--






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






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






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






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






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






49. Instance data should be defined with what________ visibility






50. Boolean type conversions are ___________







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