What goes in the parenthesizes of an if-statement
What is a conditional statement?
Is this legal: int dracula = 2.0;?
Illegal
out.println(4 - 3 * 2)
-2
(1-word answer, verb) Another word for what a for loop does each time 'i' is increased
Iterate
Object Oriented Programming
What is printed: if("SKELETON").equals("skeleton"){ print("dropped a bow")} else { print("dropped arrows")}
dropped arrows
Is a double primitive?
Yes
out.println(9.0/3)
3.0
How many times will this for-loop add 2 to C: for(int i=3;i<9;i++){c+=2}
6 times.
A primitive data type and nonprimitive data type (multiple combinations of answers)
What is a (int/long/double/short) and a String?
What does this print: if(int i =0; i++){ print i; } print ("none");
Gives an error! That belongs in a for-loop
Create a string list called spider with a length of 5
String[] spider=new String[5]
Where does modulus, %, fit in PEMDAS?
With M & D (same precedence)
I want to iterate through an ArrayList called Z. What is missing from this for loop setup: for(int i=0; (EMPTY) ; i++)
i < Z.size()
23 (base 10) in binary (base 2)
What is 0001 0111?
RIDDLE: I am tall when I'm new and grow shorter when I'm old. Every Halloween you can find me glowing inside a jack-o'-lantern. What am I?
A candle
Is this legal: String zombie = 1992;
Illegal
out.println( 4 * (int)(3.5 * 2) / 2.0 );
How many times will this for-loop add 2 to A: for(int i=11;i>3;i-=2){A+=2}
4 times.
17 (base 10) in base 3
What is 122?