• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Java with Data Structures Midterm Exam With 100% Verified Solutions | Solved

Document preview thumbnail
Preview 1 out of 4 pages

Java with Data Structures Midterm Exam With 100% Verified Solutions | Solved

Content preview

Java with Data Structures Midterm
Exam With 100% Verified Solutions |
Solved
Abstract Class CORRECT ANSWERS A class that can never be instantiated and is
used when no generic object will ever be created.

Abstract Data Types vs. Data Structures CORRECT ANSWERS An ADT is a set of
operations and a data structure is a way to organize data so that we can store and
retrieve the data in some way.

Abstraction CORRECT ANSWERS A way to separate implementation from interface.

Algorithm Analysis CORRECT ANSWERS Amount of resources needed to execute a
code, i.e. time and space.

Amortized Costs CORRECT ANSWERS Incrementing a cost every time an arrayList
becomes full in a program to avoid it becoming too full to accept anymore data.

Best Case Analysis CORRECT ANSWERS When an algorithm requires the smallest
number of steps

Average Case Analysis CORRECT ANSWERS Adding the number of steps for all the
inputs and divide by the number of inputs.

Worst Case Analysis CORRECT ANSWERS When an algorithm requires the max
number of steps

Big-O-Notation (Transitivity) CORRECT ANSWERS If f(n) is O(g(n)) and g(n) is O(h(n)),
then f(n) is O(h(n))

Big-O-Notation (Additivity) CORRECT ANSWERS If f(n) is O(h(n)) and g(n) is O(h(n))
then f(n)+g(n) is O(h(n)).

Big-O-Notation (Mult by a Constant) CORRECT ANSWERS a*n is O(n)

Big-O-Notation (Powers) CORRECT ANSWERS nk is O(nk+j) for any positive j.

Class CORRECT ANSWERS Blueprint for objects

Constructor CORRECT ANSWERS Special method with the same name as the class, is
invoked when the object is created, receives values/variables and assigns them to
instance variables and has no return type including void.

Document information

Uploaded on
August 6, 2025
Number of pages
4
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ElevatedExcellence
3.8
(178)
Sold
954
Followers
505
Items
18426
Last sold
4 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions