Describe the difference between a while and do-while loop.
What is <something about the condition coming first in a while loop but last in a do-while loop>?
Special note: will also accept "they are spelled differently"
Although necessary in Java and JavaScript, this character is optional at the end of Python lines.
What is a semicolon?
What is the result of the following line of code?
System.out.print(3 / 2 + 0.5);
What is 1.5?
What is the result of this code?
System.out.print(9 + 1 + "8" + 10 + 1);
10101
This is a specific name for a flock of geese.
What is a gaggle?
Bubble, Insert, Selection, Merge, and Quick are all methods of this.
What is sorting?
Pronounce the following language: SQL
What is "ess-que-ell"?
boolean A = true;
boolean B = false;
print(!A || (!B && A));
What is true?
What's wrong with the following line of code?
ArrayList list = new ArrayList<char>();
What is "you can't use a primitive data type (but not having angle brackets at the beginning is in fact legal)"
Tell us your opinion on Mozart.
What is <something bad>?
The "implements" keyword is used when a class takes code from a/an __________.
What is an interface?
Name an HTML tag that does not require a closing tag.
What is <image>, <input>, <a>, etc.?
Convert the following number to decimal (base 10): 341 base 5.
What is 96?
Which lines are wrong and why? Assume everything necessary has been imported.
char c = 87;
int i = int(14.0);
double d = Math.round(5.6);
int j = Math.floor(5.2);
What is “lines 2 and 4 because typecasting looks like this: int j = (int) 14.0; and floor() returns a double”?
Name the planets in increasing order of size.
What is Mercury, Mars, Venus, Earth, Neptune, Uranus, Saturn, Jupiter?
O(n), O(n2), and O(nlog(n)) are all examples of Big O notation, a method of describing this.
What is time complexity?
JavaScript can have up to this many equal signs (=) in a row before it becomes an illegal operator.
What is 3?
Describe the output of the following code:
int x = 8;
System.out.print(++x++);
System.out.print(" ");
System.out.print(x);
What is 9 10?
What is the output? (Hint: think about this category!)
try {
int x = “9”;
print(x);
print(4);
} catch (Exception e) {
print(7);
}
7
The color of oranges before they were orange.
What is green?
This happens when you use the same name for two different methods, but they are different because of the data types or numbers of their parameters.
What is overloading?
A synonym of "fast", this coding language is the basis for many of the apps you see in the App Store.
What is Swift?
This data structure uses push() and pop(), and the first item to go in is the first item to come out.
What is a Stack?
Which of the following will not run (can be any combo):
I. HashSet<Integer> s = new HashSet<Integer>();
II. HashSet<Integer> s = new Set<Integer>();
III. Set<Integer> s = new HashSet<Integer>();
What is II?
Olympic gold medals are primarily made out of this metal.
What is silver?