What are the three perspectives, or levels, in our approach to defining, creatin
ID: 3803221 • Letter: W
Question
What are the three perspectives, or levels, in our approach to defining, creating and using ADTs?
At which phase in the software development process depicted below would the decision to use a specific ADT most likely be made?
requirements gathering and analysis -> design -> coding -> testing ->deployment -> maintenance
The programmer implementing an ADT operation must do what with regards to potential error conditions arising from client code that ignores a properly documented precondition?
nothing
It is not possible to implement an unbounded ADT using arrays. true or false
Reference-based ADT implementations are typically unbounded and do not have any explicit limit on the number of elements that can be maintained in the ADT. true or false
detect and handle the error within the method itselfExplanation / Answer
1)We will be using ADT's from three different perspective:
Application level:
This is for user or client ,you will only define class for which you only know the formal ADT specifications
Logical level: designing the ADT itself given a set of requirement specified by the non programmer user
Implementation level:
Writing a code for a class that implements given ADT
2) in design process the decision for specific ADT is made.
Answer: design
3) programmer must do the following if error occurs
Answer:detect the error and throw an exception so that calling code must handle it
4)It is not possible to implement an unbounded ADT using arrays. true or false
Answer: false because we can implement unbounded array using arrays
5) true
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.