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
STOP WHAT UR DOING!!! TAKE A MOMENT TO THINK ABOUT THESE!!
dolphi86 [110]

Answer:

lol

can i have brainllest

Explanation:

Think of this how can a camera have a circler lens but take rectangular photos

4 0
3 years ago
Scavengers are organisms that help clean a habitat by feeding on dead or rotting flesh. They help break down the remains left be
vagabundo [1.1K]

Answer:

I think no B

if wrong correct me pls

have a nice day

#Captainpower

좋은 하루 되세요

#캡틴 파워

6 0
3 years ago
Read 2 more answers
A projectile is launched horizontally at a speed of 45.0 m/s from a
Free_Kalibri [48]

Answer:

answer will be c: 1.5 seconds :)

8 0
2 years ago
What statements correctly describe theories
elixir [45]

Theories result from several repeated experiments.

Theories explain observations and hypotheses.

Theories may be revised over time.

Explanation:

Scientific theories are purely explanations into an observation and hypothesis. The are general binding explanations that have been developed from several tests.

  • Theories are products of different stages of experiments in their own regard.
  • For a theory to be accepted by the scientific community, its hypothesis statement must be:
  1. Testable
  2. Repeated
  3. Falsifiable
  • Based on new evidence, a theory may be revised with time. One of such is the Dalton's atomic theory with a modern atomic theory version now.

Learn more:

Experiments brainly.com/question/5096428

#learnwithBrainly

8 0
3 years ago
What have psychologists learned about perception from optical illusions ?
ruslelena [56]

Answer:

Explanation:

That an optical illusion somehow interferes with the way we see things. Even simple illusions can completely fool us. If you search out the term, you'll see all kinds of them.

Most critically we see one thing and know another to be true. But knowing the truth doesn't help us. We still see and believe the truth of the illusion.

5 0
3 years ago
Read 2 more answers
Other questions:
  • I don't know how to do this. Working on #2
    14·1 answer
  • Obesity refers to gradual weight gain as a person grows older
    8·1 answer
  • A source from which organisms generally take elements is called a/an
    10·2 answers
  • What is the degree of precision of this ruler?<br> cm
    5·1 answer
  • Types of energy transferred from mechanical waves
    13·1 answer
  • I NEED THIS ASAP
    11·2 answers
  • What is the average speed of a car that traveled 300 meters in 5.5 seconds?
    14·1 answer
  • a busis moving with the initial velocity 10m/s . after 4 seconds, the velocity becomes 30m/s . find the acceleration produce by
    8·1 answer
  • What radiation gets through the atmosphere?
    15·2 answers
  • What is the equilibrium constant for the following reaction at 25 °c?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!