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
natulia [17]
3 years ago
9

The following code accomplishes which of the tasks written below? Assume list is an int array that stores positive int values on

ly.int foo = list[0];for (int j =1 ; j < list.length; j++)if (list[j] > foo)foo = list[j];Group of answer choicesit stores the largest value in list (the maximum) in fooit stores the smallest value in list (the minimum) in fooit stores every value in list, one at a time, in foo, until the loop terminatesit counts the number of elements in list that are greater than foo
Computers and Technology
1 answer:
worty [1.4K]3 years ago
5 0

Answer:

it stores the largest value in list (the maximum) in foo

Explanation:

Initially foo is assigned as the first element of the list

Inside the loop, every element in the list will be compared with foo, starting from the second element. If an element is greater than foo, the new value of the foo will be that element. At the end of the loop, foo will be equal to the largest element in the list.

You might be interested in
You have just replaced the NIC on a server, making no other changes. It can communicate with all the computers on its network bu
Darina [25.2K]

Answer:

Option C is the correct option.

Explanation:

When any user or the person change NIC from the server then, the following person is unable to make changes at that place and he exchange their information with the systems on its network because ARP cache stores all the previous Mac address entries through the remote computer. So, that's why the following option is correct according to the statement.

5 0
3 years ago
You recently started working part-time in a retail store, and are learning about the reading devices your store uses. Your store
Pachacha [2.7K]

Answer:

Laser beams

Explanation:

The laser beams technology is being used by bar code reader.

5 0
3 years ago
Please help me i’ll give you brainlist
Genrish500 [490]

answer: C

explanation: because it's the biggest of the given platforms

5 0
2 years ago
An app builder wants to show groups as the last navigation menu item in the Salesforce1 mobile app. However, the app builder is
tatyana61 [14]

Answer:

Option B is the correct answer.

Explanation:

Because of an app builder and they need to display the groups as the final menu items of the navigation in the software of the mobile. Then, they unable to select those groups in which the items list on the menu. So, that's why the following groups are not in the list of the selected navigation menu.

Other option is not true because they are not according to the following statement.

8 0
3 years ago
How does abstraction help us write programs
Misha Larkins [42]

Answer:

Abstraction refines concepts to their core values, stripping away ideas to the fundamentals of the abstract idea. It leaves the common details of an idea. Abstractions make it easier to understand code because it concentrates on core features/actions and not on the small details.

This is only to be used for studying purposes.

Hope it helps!

4 0
3 years ago
Other questions:
  • Which is a function of network media?
    11·2 answers
  • What are 2 ways that technology can negatively impact the environment.
    8·2 answers
  • Which expense is a bank least likely to extend a line of credit for?
    13·2 answers
  • Kuta software infinite pre- algebra multiplying polynomial and a monomial find product answer key
    14·1 answer
  • How much days are in a year
    9·2 answers
  • List and describe the tools for all the main stages of app/application development.
    11·1 answer
  • A cybersecurity analyst is currently investigating a server outage. The analyst has discovered the following value was entered f
    9·1 answer
  • Which one of the following, in addition to disciplinary programs and drug-testing, can employers misuse as a form of retaliation
    8·1 answer
  • Write a formula that would return a TRUE result if the sum of the first five numbers in a column of data are negative
    7·1 answer
  • Where in PowerPoint should a user navigate to complete the tasks listed below?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!