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
Which bitwise operation has the same effect as multiplying a by 16?
Shalnov [3]
<span>Jun 15, 2011 - Multiplication and division can be achieved using bit operators, for example .... I discovered pretty much the same thing for Sun CC close to 20 years ago. ... Just to add a rough estimation: On a typical 16-Bit processor ..... Doing it yourself willaffect readability and possibly have no effect on performance.</span><span>
</span>
4 0
3 years ago
Read 2 more answers
What is the value of 25 x 103 = ________?
ira [324]

Answer:

2575

heres coorect

6 0
3 years ago
Read 2 more answers
Which of the following is NOT a project management cause of failed projects? (Points : 2) Shortcuts taken during the project
muminat

Answer:

Inadequate analysis of system and the design

Explanation:

Some of the causes of failed project in project management are as follows:

  • Deficient hazard the executives.
  • Inadequately characterized task scope.  
  • Inability to recognize key presumptions.  
  • Undertaking administrators who need involvement and preparing.
  • Absence of powerful correspondence at all levels.
  • No utilization of formal techniques and procedures.  
  • Overrun of the budget

8 0
4 years ago
When a user runs a program in a text-based environment, such as the command line, what determines the order in which things happ
Svetradugi [14.3K]

Explanation:

In general, when a program runs in text-based environment like command line interface, the program is used for determining the order in which things happen.

As the program runs, the user will not have any choice and he or she can enter the required data.

If the user enters the data in required format then, he/she can get the result or output in desired format.

7 0
4 years ago
How do Europe and North America address the challenges of jurisdiction when a computer crime involves both continents?
Anastasy [175]

Answer:

A. Treaties

Explanation:

Based on the information provided within the question it can be said that in this type of situation where both countries are affected they usually enter into a treaty. This treaty represents an agreement between both countries on how they are going to handle the situation so that both countries get the justice that they want and therefore mutually benefit.

4 0
3 years ago
Other questions:
  • What did you include in your response? Check all that
    15·1 answer
  • If you wanna buy a Monitor, please explain why you wanna buy it! PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!
    9·1 answer
  • 1A network administrator notices that some newly installed Ethernet cabling is carrying corrupt and distorted data signals. The
    5·1 answer
  • Tom's Art Supplies used to sell art supplies through mail order catalogs, but the company's order takers often had difficulty de
    9·1 answer
  • What are some types of vehicle technology advancements?
    5·1 answer
  • Which category of management information systems (MIS) combines the forecasting capability of decision support software with the
    12·1 answer
  • What can you use on Code.org's Web Lab to find and fix problems when you are writing code for your website?
    13·1 answer
  • The template code provided is intended to take two inputs, x and y, from the user and print "pass" if one or more of the followi
    5·1 answer
  • def list_length(shrinking_list): ''' A recursive way to count the number of items in a list. ''' if shrinking_list
    10·1 answer
  • Fill in the blank to complete the sentence.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!