Grade 2026\2027
Object
- correct answer represent real-world objects or abstract concepts.
Class
- correct answer specify the attributes of an object and the actions an object can take
UML Diagram
- correct answer Can be used to summarize the properties of a class
Instance Variable
- correct answer can be accessed outside of the class using the "." operator
Method
- correct answer defines an action that an object can perform, it can also be called outside of the class
by using the "." operator
Access Modifiers
- correct answer Used to specify how a class, method, or instance variable can be accessed
Public Method or instance variable
- correct answer a method that is accessible to another method of any other class
Private Method or instance variable
- correct answer a method that is only accessible to methods in the same class
Null Constant
- correct answer Can be used as a placeholder for a variable that does not refer to an actual object
, Void Method
- correct answer Does NOT return a value
Method Header Contains:
- correct answer Access Modifier: Public
Return Type: void
Name of method: writeOutput
Parameter list: ()
Method Body
- correct answer Sequence of statements that is executed when the method is called, surrounded by {}
Method can be defined to return a value
- correct answer True
When method is called:
- correct answer Return value should be stored in a variable
Keyword "this"
- correct answer refers to the object that is performing the action specified by the method
Local Variable
- correct answer A variable that is declared inside of a method body and cant be accessed outside of it
Two different local variables declared in different methods CANNOT have the same name
- correct answer False
Any variable declared inside of a block is local to that block and CAN be accessed outside of it
- correct answer False