Question
Solve all the questions. and right answer 1.Which of the items listed below are considered to be defining characteristics of an abstract data type? Check
Solve all the questions. and right answer
1.Which of the items listed below are considered to be defining characteristics of an abstract data type? Check all that apply.
a,A set of values
b, A set of operations that can be peformed on the ADT's values
c, A specific representation in memory
2.
A programmer implementing an ADT operation must include logic to detect and resolve potential error conditions that can arise from application-level code that attempts to execute the operation under circumstances known to cause problems.
True |
False |
3,
I am developing an ADT class in Java and have decided to make use of the exception processing capabilities built into Java for responding to error conditions in the ADT's operations.
At the implementation level, what aspects of Java exception processing must I include in my code? Check all that apply.
Specify a catch block for each exception that might occur within a try block |
Define the exceptions |
Define try blocks where exceptions might occur |
Detect error conditions and throw the appropriate exception for each error 4.What is the Big-O notation for the execution time of an algorithm that is invariant with respect to the amount of data processed? 5. Which of the execution time assessments below is the worst, i.e., indicates the potential for the longest running time?
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started