for (int x = 0; x < 2; x++){
System.out.print("Hello World");
Should output:
"Hello World"
"Hello World"
the statement should be println not print
9
int
for (int num = 100; num > 1; num /= 2){
System.out.println(num);
}
100
50
25
12
6
3
How many times will this for loop run?
for (int x = 0; x < 14; x++){
System.out.println("Hello");
}
14
num = 25;
if (num > 0){
System.out.println("works");
}
This code should print out "works" but it does not. Why?
num should be declared as type int
false
boolean
String cat = "dog";
String dog = "cat";
String dogcat = "catdog";
System.out.println("cat" + dogcat + cat + dog + dog);
catcatdogdogcatcat
What day is the AP bowl on?
April 19th
int num = 9.0;
if (num > 5){
System.out.print("bigger number");
}
num should be a double and not an int
"123abc"
if (true && false == false){
System.out.println ("0");
else if (true || false == true){
System.out.println("1");
}
}
0
How many bytes does it take to represent the RGB values plus alpha?
4
FINAL JEOPARDY
Fill in the blank
Road Work Ahead, ____________________
Uh yeah, I sure hope it does