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
laiz [17]
3 years ago
8

Consider the program below:public class Test{ public static void main(String[] args) {Int[] a;a = new int[10];for(int i = 0; i &

lt; a.length; i++)a[i] = i + 2;int result = 0;for(inti = 0; i < a.length; i++)result += a[i];System.out.printf("Result is: %d%n", result); } }The output of this program is:a. 62b. 64c. 65d. 67
Physics
1 answer:
ivolga24 [154]3 years ago
6 0

Answer:

c. 65

Explanation:

The output is 65.

An array of length 10 is created first. Then, the first for-loop fill the array with different values; The array element now become: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. The array element are generated using the equation a[i] = i + 2; so when i is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. i must be less than the array length (10).

a[0] = 0 + 2 = 2

a[1] = 1 + 2 = 3

a[2] = 2 + 2 = 4

a[3] = 3 + 2 = 5

a[4] = 4 + 2 = 6

a[5] = 5 + 2 = 7

a[6] = 6 + 2 = 8

a[7] = 7 + 2 = 9

a[8] = 8 + 2 = 10

a[9] = 9 + 2 = 11

result variable is declared and initialized to 0.

The second for-loop goes through the array and add individual element to result.

You might be interested in
calculate the resistance of 50m length of wire of cross sectional area 0.01 square mm and of resistivity 5*10 to the power minus
Pachacha [2.7K]
Resistance R = resistivity * length / area&#10;&#10;R = 5  10^{-8} * 50 m / 0.01 *  10^{-3} * 10^{-3}&#10;&#10;R =  250 Ohms&#10;
8 0
3 years ago
A strand of 10 lights is plugged into a outlet. How can you determine if the lights are connected in series or parrel
NeTakaya

Answer:

C) Unscrew one light. If the other lights turn off, it's a series circuit.

Explanation:

THIS IS THE COMPLETE QUESTION BELOW;

A strand of 10 lights is plugged into an outlet. How can you determine if the lights are connected in series or parallel? A) Unscrew one light. If the other lights stay on, it's a series circuit. B) Unplug the strand. If the first light stays on, it's a series circuit. C) Unscrew one light. If the other lights turn off, it's a series circuit. D) Cut the strand in half. If the plugged in half stays on, it's a series circuit.

SERIES CIRCUIT

In this circuit, the components there are in the same path, the entire circuit has the same current, each of the components posses different voltage drop. Hence, failure of one components to work, there will be break in entire circuit then other components cease to work.

PARALLEL CIRCUIT

This circuit has equal voltage drop across all the components, any problem in a component will not has effect on other components.

Therefore, if one want to determine if a light connection is in series or in parallel, one of the light can be unplugged if others stop working it means it's series, if other works it's parallel.

5 0
2 years ago
The force of attraction between a -130.0 C and +180.0 C charge is 8.00 N. What is the separation between these two charges in me
kondaur [170]

Answer with Explanation:

The force of attraction between 2 charges of magnitudeq_1,q_2 separated by a distance 'r' is given by

F=\frac{1}{4\pi \epsilon _o}\frac{q_1\times q_2}{r^2}=k\frac{q_1\times q_2}{r^2}

where

\epsilon _o is a constant known as permitivity of free space

k=9\times 10^{9}Nm^2/C^2

Applying the given values in the above relation we get

8=9\times 10^{9}\times \frac{130\times 180}{r^{2}}\\\\r^{2}=\frac{9\times 10^{9}\times 130\times 180}{8}\\\\r^{2}=26325\times 10^{9}\\\\\therefore r=\sqrt{26325\times 10^{9}}=5.131\times 10^{6}meters

5 0
3 years ago
Which of the events below does NOT happen during the G1 phase of the cell cycle
aleksandr82 [10.1K]

Answer:

Could you please add the events

Explanation:

if not I could give a brief explanation of what happens in the phase and you could just eliminate?

6 0
2 years ago
A 0.14 kilogram baseball is throw in a straight line at a velocity of 30 m/sec.what is the momentum of the baseball
Masja [62]
4.2 kg m/s hope this helps
4 0
2 years ago
Other questions:
  • Required information Problem 16.048 - DEPENDENT MULTI-PART PROBLEM - ASSIGN ALL PARTS NOTE: This is a multi-part question. Once
    10·1 answer
  • How many cycles/vibrations are there in 1 wavelength?
    7·1 answer
  • Please solve it ,,,,,,,,,,................................
    13·1 answer
  • Image caught<br>on Screen is called​
    10·2 answers
  • Elements that typically give up electrons
    12·1 answer
  • Calculate the period of a satellite orbiting the Moon, 98 kmkm above the Moon's surface. Ignore effects of the Earth. The radius
    7·1 answer
  • A runner jumps off the ground at a speed of 16m/s. At what angle did he jumps from the ground if he landed 8m away?
    10·1 answer
  • Which effect has been useful (and successful) in the search for and identification of black holes in the universe
    14·1 answer
  • Choice are 1.3 1.0 17​
    13·1 answer
  • A 60.00-cm guitar string under a tension of 50.000 N has a mass per unit length of 0.100 00 g/cm chegg
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!