kiaramarie894 kiaramarie894
  • 18-01-2024
  • Computers and Technology
contestada

What is the output of the following code fragment?

int i = 1;
int j = 1;
while (i < 5) {
i++;
j = j *2;
}
System.out.printin(j);

A) 64
B) 42
C) 16
D) 4
E) 8

Respuesta :

Otras preguntas

A note on guitar 440 C note on guitar 256 red laser light 4 x 1014 violet light beam 8 x 1014 Based on the table and your knowledge of waves, what can you con
Write a phrase for y + 9
Which of the following is a reason why society might reject the idea that humans are causing global warming?    because scientists have not discovered evidence
in the fall the leaves of some trees change color and then fall off. how would this affect a trees ability to make food
Total _____ is the money earned from all producers in a country. sales income quantity
True or False: Only mutations which take place in the DNA of gametes (sex cells) will be passed down to offspring
What is the name of the above sculpture by Bernini?
How many centimeters is a table
Flavius' conversation with the commoners in the beginning of Act I give important information. What else does it provides? A conflict B tragedy C humor D crisi
You are out to lunch. The cost of your food comes to $16.00, and you will leave a 20% tip. Find the total cost to the nearest cent.