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
elixir [45]
4 years ago
8

Suppose list1 is an MyArrayList and list2 is a MyLinkedList. Both contains 1 million double values. Analyze the following code:

A: while (list1.size() > 0) list1.remove(size() - 1); B: while (list2.size() > 0) list2.remove(size() - 1); Question 42 options:
Computers and Technology
1 answer:
hjlf4 years ago
7 0

Answer:

The correct answer for the given question is " The Code fragment A runs fastly than the code fragment of B".

Explanation:

In this question there are some information is missing i. e options. The question does not give any options. The options for the given question is given below

(A.) The Code fragment A runs fastly than the code fragment of B.

(B.) The Code fragment B runs fastly than code fragment of  A.

(C)  The Code fragment A runs as fastly as code fragment of B.  

So we conclude the answer i.e option(A) because As given in the question list1  is a MyArrayList and list2 is a MyLinkedList.  , in list1 we fetching the data easily and fastly means that it remove the data easily as compare to list2 As MyArrayList is storing the list only and also we can fetch the data easily manner.

The list2 is an object of MyLinkedList means that it manipulating the data fastly as compared to MyArrayList but if we compared the fetching of data then  MyArrayList is a better option so the code fragment runs fastly then code fragmented B.

You might be interested in
A program that will read each player’s name and golf score as keyboard input,
PtichkaEL [24]
Use for loop and question inside it
7 0
3 years ago
The pseudo-class selectors for links let you use CSS to change the formatting for all but one of the following. Which one is it?
aev [14]
B. A link that is inactive
7 0
3 years ago
Which futures would work well for text entered into cells check all that apply
Vikki [24]

Answer:

this is no image for me to see to to do

Explanation:

7 0
4 years ago
Cyber vulnerabilities to dod systems may include
Ivan

Cyber vulnerabilities to dod systems may include all of the above Options.

<h3>What is Cyber vulnerabilities?</h3>

In cybersecurity, a vulnerability is known to be any kind of weakness  exist with the aim to be exploited by cybercriminals to be able to have unauthorized access to a computer system.

Note that in the case above, Cyber vulnerabilities to dod systems may include All of the above Options.

Learn more about cyber vulnerabilities from

brainly.com/question/7065536

#SPJ11

6 0
2 years ago
If you want to learn more about a command, point to its button and wait for the ____ to appear.
Pani-rosa [81]

Answer:

The answer to this question is "Screen Tip".

Explanation:

In the operating system, there are many software. In this software, there is an option of the screen tip. screen tip is a small window that displays detailed text.

For example :  

If we start a paint software and we point the mouse on the pencil tool it display the detail of that tool like "Draw free-from line with a selected line width".

7 0
3 years ago
Other questions:
  • which type of website would a business selling merchandise on the internet use? A person B information C commercial D social
    9·1 answer
  • Which is not the option applicable to the technology reference framework for advanced countries?
    11·1 answer
  • Use the SAS dataset insure to create a dataset, work.insure10, that (a) only reads in the variables Name, Policy, Company, PctIn
    9·1 answer
  • Which tcp/ip troubleshooting command should you use to determine whether a client and server are communicating with each other?
    7·1 answer
  • In a company you are in charge of system maintainance. Justify with 5 reasons why your role is key
    6·1 answer
  • what programs controls all operations of the computer hardware such as memory storage devices or printers and provides for you t
    7·1 answer
  • WHAT DO U MEANS BY DIGITAL PROFILE​
    15·1 answer
  • In Python, the data structure that stores elements of the same data type is called an array.
    6·1 answer
  • Boolean logic deals with statements having one of _____ values.
    13·1 answer
  • Which is considered both an input and output device?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!