1. 1. True or False? An abstraction of a system is a model of the system
that includes all the details about the system.: Answer: False
2. 2. True or False? UML diagrams are a form of abstraction, since they
hide details and allow us to concentrate just on the major design
components.: - Answer: True
3.3. True or False? UML diagrams are not a form of abstraction, since they
hide details and only allow us to concentrate on the major design
components.: - Answer: False
4. 4. True or False? When you code a method that has preconditions the
first thing you should have the code do is check that the preconditions
are true.: Answer: False
5. 5. True or False? An abstract method must not have any executable
code.-
: Answer: True
6. 6. True or False? An abstract method must not have any comments.:
Answer: False
7. 7. True or False? In order to be used, an interface must implement a
class.-
: Answer: False
8. 8. True or False? A class can extend an interface.: Answer: False
9. 9. True or False? A class that implements an interface can include
methods that are not required by the interface.: Answer: True
10.10. True or False? A class that implements an interface can leave
out methods that are required by the interface.: Answer: False
11.11. True or False? An interface definition can include constant
declara- tions.: Answer: True
12. 12. True or False? An interface definition can include concrete methods.-
: Answer: False
13.13. True or False? A Java interface must have at least one defined
con- structor.: Answer: False
14.14. True or False? You can instantiate objects of an interface.: Answer:
False
15. 15. We deal with ADTs on three levels. On which level do we just need
to know how to use the ADT?
A. application (or user, client)
B. machine (or assembly)
C. logical (or abstract)
D. primitive (or language dependent)
E. implementation (or concrete): Answer: A
1/7
, CSC226 Que & Answ | First Test
16. 16. We deal with ADTs on three levels. On which level do we deal
with the "how" questions, as in how we represent the attributes and
fulfill the responsibilities of the ADT?
2/7