int k=1
while(k<=5)
{
System.out.println("Java is fun!");
k+=1;
}
System.out.println(k);
What will the value of k be printed on the screen after the loop finished
Give this one a try later!
, 6
If chr is a character variable, which of the following if statements is written correctly?
a.) if(chr= "a")
b.) (chr== "a")
c.) (chr= 'a')
d.) (chr== 'a')
Give this one a try later!
d.) (chr== 'a')
What will be the value of x after the following code is expected?
int y=10;
double x;
x=y/100;
a.) 0
b.) 0.1
c.) 0.0
d.) None is Correct
Give this one a try later!
a.) 0
while(k<=5)
{
System.out.println("Java is fun!");
k+=1;
}
System.out.println(k);
What will the value of k be printed on the screen after the loop finished
Give this one a try later!
, 6
If chr is a character variable, which of the following if statements is written correctly?
a.) if(chr= "a")
b.) (chr== "a")
c.) (chr= 'a')
d.) (chr== 'a')
Give this one a try later!
d.) (chr== 'a')
What will be the value of x after the following code is expected?
int y=10;
double x;
x=y/100;
a.) 0
b.) 0.1
c.) 0.0
d.) None is Correct
Give this one a try later!
a.) 0