What is the number of iterations in the following loop:
for (int i = 1; i <=n; i++){
//iteration
}
Give this one a try later!
n
, Which of the following expression yields an integer between 0 and 100, inclusive?
Give this one a try later!
(int)(Math.random() * 101)
What is the output produced by the following code segment?
for (int x = 5; x > 0; x--)
System.out.print(x);
Give this one a try later!
54321
Analyze the following code:
public class Test {
public static void main(String[] args){
int i = 0;
for (i = 0; i <10; i++);
System.out.println(i + 4);
}
}
Give this one a try later!
for (int i = 1; i <=n; i++){
//iteration
}
Give this one a try later!
n
, Which of the following expression yields an integer between 0 and 100, inclusive?
Give this one a try later!
(int)(Math.random() * 101)
What is the output produced by the following code segment?
for (int x = 5; x > 0; x--)
System.out.print(x);
Give this one a try later!
54321
Analyze the following code:
public class Test {
public static void main(String[] args){
int i = 0;
for (i = 0; i <10; i++);
System.out.println(i + 4);
}
}
Give this one a try later!