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

n the derivation of the formula for the volume of a cone, the volume of the cone is calculated to be StartFraction pi Over 4 EndFraction times the volume of the
The following sentence meets the requirements for stating a major proposition: Because Andrea dislikes reading, she is not a good college student. Group of answ
5 idioms and 5 proverbs depicted pictorially​
Many stories feature a hero who behaves honorably and fights for good. These same stories often include a villain who behaves selfishly and stands at odds with
Discuss why regionalism is used as a key element for Africa's development strategy?​
Find a in degrees. a 6 √11 5 ? ]° Round to the nearest hundredth.
Read the following excerpt from the Declaration of Independence, and read the question that follows. “He has constrained our fellow Citizens taken Captive on th
Terms: Length of lease = 48 months • MSRP of the car = $32,100 Purchase value of the car after lease = $26,200 Down payment = $4400 Monthly payment = $450 $435
Urgent!!!If the sum of 5 consecutive positive integers is w , what is the sum of the next 5 consecutive positive integers in terms of w?A. w+25 B. w+23 C. w+27
A stone of mass 150g is rotated in a horizontal circle at 10m/s which is attached to the end of a 1m long. what will be the acceleration of the stone and it's c