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
oksano4ka [1.4K]
3 years ago
13

Consider array items, which contains the values 0, 2, 4, 6 and 8. If method changeArray is called with the method call changeArr

ay(items, items[2]), what values are stored in items after the method has finished executing?
Computers and Technology
1 answer:
bagirrra123 [75]3 years ago
5 0

INCOMPLETE QUESTION

Consider array items, which contains the values 0, 2, 4, 6 and 8. If method changeArray is called with the method call changeArray(items, items[2]), what values are stored in items after the method has finished executing?

public static void changeArray(int[] passedArray, int value)

{

passedArray[value] = 12;

value = 5;

}

A. 0, 2, 5, 6, 12.

B. 0, 2, 12, 6, 8.

C. 0, 2, 4, 6, 5.

D. 0, 2, 4, 6, 12.

Answer:

D. 0, 2, 4, 6, 12

Explanation:

The initial values for the array was 0,2,4,6,8. The method changeArray ( ) when called changes the the the value of the element at the ith index position to 12. so the final elements in the array will be 0,2,4,6,12

You might be interested in
What is the purpose of lookup tables in spreadsheet software
garik1379 [7]

You can easily find and changed the data by using lookup table. You can also find the data within few seconds.

7 0
3 years ago
Read 2 more answers
My name Jeff <br><br> what movie is this off of
Zielflug [23.3K]

Answer:

there is no movie name off of

4 0
3 years ago
Read 2 more answers
What is the top folder of the file tree called
m_a_m_a [10]
The root directory, or root folder, is the top-level directory of a file system.
3 0
3 years ago
Read 2 more answers
Which is the correct description of the first act in a classical game story structure?
Reil [10]
The 3-act structure<span> is an old principle widely adhered to in storytelling today. It can be found in plays, poetry, novels, comic books, short stories, video games, and the movies. It was present in the novels of Conan Doyle, the plays of Shakespeare, the fables of Aesop, the poetry of Aristotle, and the films of Hitchcock. It’s older than Greek dramaturgy. Hollywood and Broadway use it well. It’s irrefutable and bullet-proof, so to speak.

so this means its more basic antagonist protagonist set-up even if the protagonist and antagonist are "CUBES"</span>
5 0
3 years ago
_____ creates a border or space that separates information.
KATRIN_1 [288]
A. Padding
*************
7 0
2 years ago
Other questions:
  • HELP ASAP????? please
    5·2 answers
  • 10.
    13·1 answer
  • Software that manages and supports the resources of a computer is known as?
    10·1 answer
  • Which letters appear in the home row on a keyboard?
    14·2 answers
  • Apart from confidential information, what other information does NDA help to outline?
    15·1 answer
  • Sofia is reading a difficult text for class and worries that she won't complete it by the given deadline. How can a text-
    13·2 answers
  • Phishing is ____________. When hackers overwhelm a website with too many requests. A network of private computers infected with
    7·1 answer
  • A brick has a weight of 23N. The brick is flat and smooth on the side in contact with the floor having measurements ( height= 5c
    13·1 answer
  • Commercial technical data and commercial software:_________.
    11·1 answer
  • How should excel Identify social security numbers: as a text, numbers, or date and time? Why?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!