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. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type






2. Returns the number of characters in this stirng.






3. White space characters such as space characters - tabs - and new lines that separate the elements of input






4. Occurs automatically when certain operators need to modify their opeands in order to perform the operation






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






6. format for constants: all upper-case; separated by ________






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






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






9. Delimited by double quotation characters






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






11. Returns a string containing the specified number formatted according to this object's pattern.






12. Cast operator has _________ precedence to division






13. Examples of Scanner ________: Scanner (InputStream source) - Scanner(File source) - Scanner(String source)






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






15. Count++; count--






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






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






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






19. A name for a location in memory used to hold a data value.






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






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






22. Methods in the Math class are ______






23. Since an object ref var holds the address of the object - it can be thought of as a ____ to the location in memory where the object is held






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






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






26. Instance data should be defined with what________ visibility






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






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






29. The Scanner class is part of ___________________






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






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






32. Boolean type conversions are ___________






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






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






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






36. sides=10;






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






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






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






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






41. ______________ operators have higher precedence






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






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






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






45. The one that is invoked






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






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






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






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






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







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