APSU CSCI FINAL EXAM REVIEW UPDATED ACTUAL
QUESTIONS AND CORRECT ANSWERS
Question:
1. Object
Answer:
represent real-world objects or abstract concepts.
Question:
2. Class
Answer:
specify the attributes of an object and the actions an object can take
Question:
3. UML Diagram
Answer:
Can be used to summarize the properties of a class
Question:
4. Instance Variable
Answer:
can be accessed outside of the class using the "." operator
Question:
5. Method
Answer:
defines an action that an object can perform, it can also be called outside of the
class by using the "." operator
Question:
6. Access Modifiers
Answer:
Used to specify how a class, method, or instance variable can be accessed
Question:
7. Public Method or instance variable
Answer:
a method that is accessible to another method of any other class
, Question:
8. Private Method or instance variable
Answer:
a method that is only accessible to methods in the same class
Question:
9. Null Constant
Answer:
Can be used as a placeholder for a variable that does not refer to an actual object
Question:
10. Void Method
Answer:
Does NOT return a value
Question:
11. Method Header Contains:
Answer:
Access Modifier: Public
Return Type: void
Name of method: writeOutput
Parameter list: ()
Question:
12. Method Body
Answer:
Sequence of statements that is executed when the method is called, surrounded
by {}
Question:
13. Method can be defined to return a value
Answer:
True
Question:
14. When method is called:
Answer:
Return value should be stored in a variable
QUESTIONS AND CORRECT ANSWERS
Question:
1. Object
Answer:
represent real-world objects or abstract concepts.
Question:
2. Class
Answer:
specify the attributes of an object and the actions an object can take
Question:
3. UML Diagram
Answer:
Can be used to summarize the properties of a class
Question:
4. Instance Variable
Answer:
can be accessed outside of the class using the "." operator
Question:
5. Method
Answer:
defines an action that an object can perform, it can also be called outside of the
class by using the "." operator
Question:
6. Access Modifiers
Answer:
Used to specify how a class, method, or instance variable can be accessed
Question:
7. Public Method or instance variable
Answer:
a method that is accessible to another method of any other class
, Question:
8. Private Method or instance variable
Answer:
a method that is only accessible to methods in the same class
Question:
9. Null Constant
Answer:
Can be used as a placeholder for a variable that does not refer to an actual object
Question:
10. Void Method
Answer:
Does NOT return a value
Question:
11. Method Header Contains:
Answer:
Access Modifier: Public
Return Type: void
Name of method: writeOutput
Parameter list: ()
Question:
12. Method Body
Answer:
Sequence of statements that is executed when the method is called, surrounded
by {}
Question:
13. Method can be defined to return a value
Answer:
True
Question:
14. When method is called:
Answer:
Return value should be stored in a variable