Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.(TCO3)Which of the following is/are true about the object? <?xml:namespace pre

ID: 3657608 • Letter: 1

Question

1.(TCO3)Which of the following is/are true about the object? <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>

a. An object is an instance of the class.

b. Real-world objects share two characteristics-state and behavior.

c. A and B

d. None of the above

2.(TCO3)A default constructor has how many parameters?

a. 0

b. 1

c. 2

d. Variable number

3.(TCO3)Which of the following might be potential class(es) in an application?

a. Address

b. Item

c. Credit

d. All of the Above

e. None of the above

4.(TCO3)Which of the following relationships are the most common relationships between classes?

a. "has-a"

b. "uses-a"

c. "is-a"

d. All of the above

e. None of the above

5.(TCO3)Assume you have a Circle class with a non-static attribute named radius. If you create two objects of the Circle class, how many copies of the radius will you have?

a. 1

b. 2

c. 3

d. 4

6.(TCO3) What happens right after we gather requirements in the object-oriented design process?

a. We develop a SOW

b. We identify classes

c. We create a UML diagram

d. We develop a prototype

7.(TCO3)In the object-oriented design process,, which of the following is/are true?

a. The cost of a design change in the implementation phase is very low.

b. The cost of a requirement/design change in the design phase is very high.

c. The cost of a design change after the deployment phase is astronomicla.

d. All of the above

e. None of the above

8.(TCO3) A(n)____language is one to which you can add your own data types.

a. low-level

b. high-level

c. extensible

d. object-oriented

9.(TCO3)Which of the following is/are true?

An abstract data type:

I. captures a data representation

II. defines the operations that are allowed on its data

III. replaces structured programming

a. I, II, and III

b. I, II

c. I, III

d. II, III

10.(TCO3)Access specifiers (public and private) can appear _____ within an application's codes.

a. in any order and multiple times

b. in any order (public first or private first), but not multiple times

c. in any order and multiple times if they have brackets separating each type

d. multiple times, but all specifiers of the same type must be grouped together

Explanation / Answer

1. a. An object is an instance of the class. (b would have been correct if data is used instead of state) 2. d. Variable number 3. c. Credit 4. d. All of the above 5. a. 1 6. c. We create a UML diagram 7. b . The cost of a requirement/design change in the design phase is very high. 8. d. object-oriented 9. b. I, II (abstract d.t. means it uses abstraction) 10. d. multiple times, but all specifiers of the same type must be grouped together.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote