Design 1 Exam Questions Complete
With Correct Answers
\Q\.object - ANSWERS✔-In the class-based object-oriented programming paradigm, "object"
refers to a particular instance of a class where the object can be a combination of variables,
functions, and data structures. Objects have states and behaviors. Example: A dog has states -
color, name, breed as well as behaviors - wagging the tail, barking, eating. An object is an
instance of a class.
\Q\.class - ANSWERS✔-A class is the basic building block of an object-oriented language such as
Java--is a template that describes the data and behavior associated with instances of that class.
When you instantiate a class you create an object that looks and feels like other instances of the
same class.
\Q\.instance - ANSWERS✔-A particular object.
\Q\.method - ANSWERS✔-Communicating with objects by invoking methods on them.
\Q\.signature - ANSWERS✔-The method name and the parameter types. They provide the
information needed to invoke that method.
\Q\.parameter - ANSWERS✔-Parameters are the variables that are listed as part of a method
header. Each parameter must have a unique name and a defined data type.
\Q\.type - ANSWERS✔-Defines what kinds of values a parameter can take.
,\Q\.state - ANSWERS✔-The set of values describing attributes defining an object.
\Q\.source code - ANSWERS✔-The source code of a class determines the structure and behavior
(the fields and methods) of each of the objects of that class.
\Q\.return value - ANSWERS✔-The information a method returns about an object.
\Q\.compiler - ANSWERS✔-Translates source code into machine code.
\Q\.field - ANSWERS✔-Stores data for an object to use, also known as instance variables.
\Q\.constructor - ANSWERS✔-Allows objects to be set up properly when first created.
\Q\.method header - ANSWERS✔-The beginning of a method that contains the method
modifier, return type, method name, and parameter list.
\Q\.method body - ANSWERS✔-The part of the method containing the declarations and
statements that define what an object does when that method is called.
\Q\.formal parameter - ANSWERS✔-Parameters listed in the method header
\Q\.actual parameter - ANSWERS✔-Parameters listed in method call
\Q\.accessor method - ANSWERS✔-A method that returns information about the state of an
object.
, \Q\.mutator method - ANSWERS✔-A method that changes the state of an object.
\Q\.variable declaration - ANSWERS✔-Setting the type and name of a variable.
\Q\.variable initialization - ANSWERS✔-Giving a variable its value
\Q\.block - ANSWERS✔-The section of code in between two curly braces.
\Q\.statement - ANSWERS✔-Describe the action taking place.
\Q\.assignment statement - ANSWERS✔-Storing values into variables
\Q\.conditional statement - ANSWERS✔-Takes one of two possible actions based upon the
result of a test. Ex) if, if-else, switch
\Q\.return statement - ANSWERS✔-A statement that ends a method and returns a value that
matches the return type in the method header.
\Q\.return type - ANSWERS✔-The type of value that is being returned.
\Q\.operator - ANSWERS✔-Something that is used to manipulate multiple data types.
\Q\.variable - ANSWERS✔-Stores data