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

1. (TCO 7) Which of the following statements are false? (Points : 5) Interfaces

ID: 3558745 • Letter: 1

Question

1. (TCO 7) Which of the following statements are false? (Points : 5)
Interfaces specify a contract that must be respected by programmers implementing the interface.
Interfaces specify one or more method signatures and at least one implementation.
Interfaces can be used in some object-oriented languages to implement a form of multiple inheritance.
Interfaces are often implemented by regular classes.


Question 2.2. (TCO 7) Which of the following statements is/are true? (Points : 5)
Interfaces contain both regular and abstract methods
Abstract classes always provide implementations for all of their methods
Abstract methods can be inherited by subclasses
None of the above


Question 3.3. (TCO 7) When developing an object-oriented application, developers are required to comply with specific _____ or rules defined in a framework. (Points : 5)
programming styles
object hierarchies
instantiated classes
contracts
None of the above


Question 4.4. (TCO 8) Data/information hiding and encapsulation improves construction and maintenance because: (Points : 5)
Program bugs are isolated to a single class.
Coupling is increased.
Programming to an interface makes the code and design difficult.
All of the above
None of the above


Question 5.5. (TCO 8) What are some of the characteristics of a

Explanation / Answer

Answers Of your Questions

1. Interfaces specify one or more method signatures and at least one implementation.

2. Abstract methods can be inherited by subclasses

3. contracts

4. Program bugs are isolated to a single class.

5 All of the above

6. All of the above

7. 5

8. string GetFavoriteColor (){return favoriteColor;}, void SetFavoriteColor (string favoriteColor){this.favoriteColor = favoriteColor;}

9. public abstract void Drive();