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
Elenna [48]
3 years ago
8

Which code snippet calculates the sum of all the even elements in an array values? Group of answer choices int sum = 0; for (int

i = 0; i < values.length; i++) { if ((values[i] % 2) == 0) { sum++; } } int sum = 0; for (int i = 0; i < values.length; i++) { if ((values[i] % 2) == 0) { sum += values[i]; } } int sum = 0; for (int i = 0; i < values.length; i++) { if ((values[i] / 2) == 0) { sum++; } } int sum = 0; for (int i = 0; i < values.length; i++) { if ((values[i] / 2) == 0) { sum += values[i]; } }
Computers and Technology
1 answer:
olganol [36]3 years ago
5 0

Answer:

The second one:

int sum = 0; for (int i = 0; i < values.length; i++) { if ((values[i] % 2) == 0) { sum += values[i]; } }

You might be interested in
Which is the most effective manner to deliver a speech inmost business settings?extemporaneous presentationmemorizationreadingvi
Katyanochek1 [597]

Answer:

The answer to this question is Extemporaneous Delivery.

Explanation:

You need to speak in a manner that uses unrehearsed word choice as well as smart preparation of ideas.

Extemporaneous method is delivering speech in a way that hold the interest of audience and to motivate them.

So according to me Extemporaneous method is best suited for delivering speech in most business settings.

7 0
3 years ago
When applying a filter to a text layer, how can you ensure that the types editability is not lost
yarga [219]

Answer:

Convert the layer into a smart object.

Explanation:

7 0
4 years ago
Alcohol first impairs your ____?
NemiM [27]
Alcohol first impairs your judgement 
5 0
3 years ago
Read 2 more answers
A "shooting star," or meteor, is actually a meteoroid that burns up in Earth's atmosphere.
Vikentia [17]

The answer is true. Shootings stars are, in fact, meteors. The trail you see behind them is the burning, chemical trail it leaves behind. Kinda like a rocket reentering the atmosphere.

4 0
4 years ago
Which processor is better for madvr
nadya68 [22]

Answer:

The i5.

Explanation:

It has a lower clock speed, but you do note that you have more cores, same with the cache memory.

8 0
4 years ago
Other questions:
  • Describe how the spoofing attack can affect multiple network layers (application, transport, network, and data link layers).
    14·1 answer
  • What OS is most commonly used by businesses?
    11·1 answer
  • Which statement is LEAST accurate? Select one: a. A common reason for ERP failure is that the ERP does not support one or more i
    14·1 answer
  • Define a pointer variable named daco that can be used for objects of the class Banana.
    14·2 answers
  • Write a program that uses a stack to test input strings to determine whether they are palindromes. A palindrome is a sequence of
    7·1 answer
  • 2) List three (3) negative impact of Technology on society
    14·1 answer
  • what does it mean if you get the brainlyest ?and why does everyone want it so bad? and how do i give it to someone?
    6·1 answer
  • Create a script to input 2 numbers from the user. The script will then ask the user to perform a numerical calculation of additi
    7·1 answer
  • Question 2 (6 points)
    11·1 answer
  • Match the roles to the task they perform.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!