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
xeze [42]
3 years ago
9

Java Array question.

Computers and Technology
1 answer:
kodGreya [7K]3 years ago
3 0

Answer:

3) 3 44 44

Explanation:

Given data

int [] val = { 3, 10, 44 };

The total number of parameters of given array are 3, so total length of array is also 3.

The indexing of array starts with '0', Therefore the <u>indexes</u> of array with length zero are: {0,1,2}

The value of array at index 0 is = 3

similarly

value at index 1 = 10

value at index 2 = 44

Here, Int i = 1 is storing the value '1' in integer variable i.

In addition to that, any value of index 'i' of an array is selected using array[i].

Therefore,

val[i] is selecting the value of array located at index '1' because i = 1.

val[i] = val[1] = 10

val[i+1] is selecting the value of array located at index 'i+1' that is (1+1) =2

val[i+1] = val[2] = 44

Finally,

val[i] = val[i + 1]; is copying the value placed at index 2 (44) to value placed at index 1 (10). Hence, the output would be {3 44 44}. So 3rd option is correct.

 

You might be interested in
How to install windows 11 on unsupported processor
alexgriva [62]

Answer: You can't, if you anyway bypass the system, your device will run on risk.

Suggestion: Use any Linux distro similar windows 11. Like - Ubuntu/ Linux Mint/ ElementaryOs.

(Suggestion is only for if you can't run windows 10 or the pre installed Operating System in your machine.)

4 0
3 years ago
The internet's data pathways rely on what kind of hardware device to route data to its destination?
Alja [10]

Answer:

Routers

Explanation:

Essentially a router is a device used in networking that route packets of data from one computer network to another.

5 0
3 years ago
How has the manufacturing process of cell phones evolved over time? What factors have influenced these changes? *
kicyunya [14]

Answer:

Cellphones have evolved rapidly since handheld mobile phones first appeared in the 1970s. ... Generally, phones have evolved to be more compact, to have longer battery life and to allow addition of features beyond making calls, like running apps and sending text messages.

Explanation:

7 0
3 years ago
Which of the following is true of how packets are sent through the Internet?
klemol [59]

Packet metadata is used to route and reassemble information travelling through the Internet

-scav

5 0
3 years ago
Which of the following statements are true of network packets? Check all of the boxes that apply. They contain control informati
oksian1 [2.3K]

They contain control information.

They contain user data.

They are sent over a network.




They can travel indefinitely over the Internet is wrong as every packet contains the source and destination in the header. If the destination is not available you'll get an error message for example "The HTTP 404 Not Found Error" or another error depending on the application. The packet is then discarded.  

4 0
3 years ago
Other questions:
  • What connects two or more LANs together?
    10·2 answers
  • How to create a delete button in Python?
    15·1 answer
  • Distinguish between engineering and architecture​
    5·1 answer
  • Suppose there is a class Alarm. Alarm has two class variables, code which contains a String value representing the code that dea
    12·1 answer
  • It is necessary tto save updates often when working in google docs? True or false
    11·2 answers
  • Write the algorithm and draw a flowchart to display the greatest number among any two different numbers....
    5·1 answer
  • Has anyone used freya on Mobile legends bang bang
    8·2 answers
  • I need help with this question. its in the photo
    10·1 answer
  • Endnotes are indicated by
    6·2 answers
  • Interstate highway numbers Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 of 95) go north/south, an
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!