Clemson CPSC 2150 Exam 1 & Exam 2 || All Answers Are Correct 100%.
What are the three parts of a UML class diagram? a. The name of the class b. The contracts for the class c. The decisions made in the code d. The attributes of the class e. The location of the file contains the class f. The methods of the class correct answers a. The name of the class d. The attributes of the class f. The methods of the class Static methods can access _______________ a. Private Data b. Public Static Data c. Public final Data d. Private Final Data e. Public Data f. Private Static Data correct answers b. Public static data d. Private static data A(n) ________________ method or operation is not required for the class to be useful because it can be implemented by calling other existing methods or operations a. Static b. Primary c. Required d. Secondary correct answers d. Secondary Who is responsible for making sure that the postcondition of a method is met? a. The client that calls the method b. The implementer of the method c. Neither the client not the implementer is responsible d. Both the client and the implementer are responsible correct answers b. The implementer of the method You have a class called MyStats that has a method called myAverage that takes in an array and returns the average of the values in the array, In another code file and package you call myAverage on an array called arr with: Double avg = mySAverage(arr) Which of the following have to be true in order for this code to work? a. myAverage must be a public method
Written for
- Institution
- CPSC 2150
- Course
- CPSC 2150
Document information
- Uploaded on
- March 25, 2024
- Number of pages
- 16
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
what are the three parts of a uml class diagram
Also available in package deal