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






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






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






4. sides=10;






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






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






7. A ________________ is immutable.






8. The one that is invoked






9. Constructor: creates a new pseudorandom number generator.






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






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






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






13. Delimited by double quotation characters






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






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






16. Elements of input






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






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






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






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






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






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






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






24. Expressed in a Java program with single quotes






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






26. The Scanner class is part of ___________________






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






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






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






30. Variables that don't contain any data






31. The values passed into a method in an invocation; these are called the arguments to the method






32. A method that returns a value must have a _________






33. Sets the scanner's delimiting pattern.






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






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






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






37. Methods in the Math class are ______






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






39. Control access to the members of a class. the reserved words public and private are visibility modifiers that can be applied to the variables and methods of a class.






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






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






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






43. An explicit data value used in a program






44. Returns the number of characters in this stirng.






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






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






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






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






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






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







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