1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
JulsSmile [24]
3 years ago
15

Anew class is proposed to collect information about a group of dvds. a separate class containing information about a single dvd,

named dvd, has already been created. which of the following is the best design to store the data and size of this collection?
a) have an arraylist of dvds and use its size as the size of the collection.
b) have an arraylist of dvds and an integer representing the number of dvds in the collection.
c) have an array of dvds and use its size as the size of the collection.
d) have a single dvd variable representing the last dvd added and an integer representing the number of dvds in the collection.
Computers and Technology
1 answer:
katrin2010 [14]3 years ago
3 0

Answer:

The answer is "Option a".

Explanation:

The ArrayList is often similar to an array but in this, we can re-sized the collection of the elements, that's why it also is known as a dynamic array. As compare to the array, in the array list we increase and decrease the length to fit the new components. It also uses an array to hold the elements. Just like arrays, the index enables users to access their items, and wrong choices can be described as follows:

  • In option b, It is wrong because it stores all types of data.
  • In option c, It uses the size to described its range that's why it is wrong.
  • In option d, It is wrong because It uses index value to represent ArrayList.
You might be interested in
Trevor got home from work and suddenly realized that he needed to edit a certain file stored in the company network's server. ho
gregori [183]

I believe the answer is Virtual Private Network (VPN).

Know this answer is late, but im doing my deed hoping i this can help someone else pass this darn class. Best of Luck to whoever is taking the same course. You can do it if my lazy self can do it! It'll be okay ;)

3 0
3 years ago
Where can the Ease of Access and Speech Recognition centers be found?
Bess [88]

Answer:

bottom right

Explanation:

at least on windows it's bottom right

3 0
4 years ago
Read 2 more answers
The process of executing a program is also called ________.
irga5000 [103]
It is also called running it.  Hope this helps!!!
5 0
3 years ago
What is the depth of the following tree?
atroni [7]

Answer:

the answer for the question is D.

4 0
3 years ago
In GIMP, the ( ) displays the image that the user is currently working on
kotykmax [81]
I don'r know what your trying to use? GIMP is a free photo editing software just upload it to photobucket.
7 0
3 years ago
Other questions:
  • In 2-3 paragraphs, identify at least two ways technology and innovation have affected global economic competition. Provide a spe
    5·1 answer
  • According to a recent study, more than 75 percent of teens between the ages of twelve and seventeen in the United States have a
    11·2 answers
  • You are having problems on your Windows 7 computer and you pull up Device Manager to see if there are any alerts. Two of your de
    11·1 answer
  • A class is a _____, which encapsulates _____ and _____. (Points : 2) programming language construct; attributes; behavior
    7·1 answer
  • Which of the following are valid calls to Math.max? 1. Math.max(1,4) 2. Math.max(2.3, 5) 3. Math.max(1, 3, 5, 7) 4. Math.max(-1.
    9·1 answer
  • Which of these is NOT a desktop computer operating system?
    8·2 answers
  • Describe how to add slide numbers and image to a Microsoft power point presentations ?​
    5·1 answer
  • You arrive at school on Friday for a field trip ! What a lucky day!You need to figure out what room you are in before leaving. Y
    9·2 answers
  • Why is quantum computing potentially a better fit for weather forecasting than classical computers?.
    8·1 answer
  • In a database, what term is used to describe a group of fields that are all associated with and accessed using single primary ke
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!