subject

Suppose list1 is an arraylist and list2 is a linkedlist. both contains 1 million double values. analyze the following code:
a: for (int i = 0; i < list1.size(); i++)
sum += list1.get(i);
b: for (int i = 0; i < list2.size(); i++)
sum += list2.get(i);
a. code fragment a runs faster than code fragment b.
b. code fragment b runs faster than code fragment a.
c. code fragment a runs as fast as code fragment b.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
question
Computers and Technology, 22.06.2019 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec.modifying search results based on a ranking of a web page
Answers: 2
question
Computers and Technology, 24.06.2019 19:20
Kiesha has a worksheet with a range of cells using the following columns: name, score, group, study group, and date. kiesha needs to sort the worksheet on the date field. which option she use to most efficiently complete this task ? a use the cut and paste option to reorganize the data to fit that order b use the filter function to organize the data based on the date c use the order function to organize the data based on the date d use the sort function to organize the data based on date order
Answers: 3
You know the right answer?
Suppose list1 is an arraylist and list2 is a linkedlist. both contains 1 million double values. anal...
Questions
question
Biology, 16.04.2021 07:40