What is new?
The classes that made up the Balatro program.
What is Main, BalatroHand, and Card?
Number of code paths for a method that contains no if, if/else, or if/elif/else statements.
What is 1?
This is when you call a method inside of its own definition.
What is recursion?
Video game we played in class once on the panorama screen.
What is Balatro?
This key word can be used to differentiate between field names and other variable names.
What is this?
The fields (datatype and name) that each Card object had.
What are int suit and int rank?
Number of code paths for a method with an if/else statement.
What is 2?
This is how recursion stops.
What is some calls finishing?
This is what this acronym (HIT) stands for.
What is "Hang in There"?
This key word is used to denote what value a call results in.
What is return?
The methods that each Card object had.
What are getSuit, getRank, and printCard?
Number of code paths for a method with an if/elif/elif/else statement.
What is 4?
What this call results in: mystery(3, 0)
public static int mystery(int n, int c){
if(n > 0){
c = c + 10;
n = n - 1;
return mystery(n, c);
}
else{
return c;
}
}
What is 30?
Name of room where we sometimes go.
What is the Digital Landscape Lab?
This key word is used to denote that a field is shared amongst all objects of a certain class. Its also used to denote that you can call a class's method without first creating an object to do so.
What is static?
The fields (datatype and name) that each BalatroHand object had.
What are five Card objects (card1, card2, ... card5), int blueMultiplier, and int redMultiplier?
Number of code paths for a method who has three separate if statements.
What is 8?
The result of the following method call: mystery()
public static void mystery(){
int n = (int) (Math.random() * 4) + 1;
if(n != 5){
mystery();
}
}
What is infinite recursion?
The other classes that Mr.Lopez teaches.
What is AP Computer Science Principles and 5th Grade Technology?
This keyword is used to denote that a variable should not change after its initial value.
What is final?
What is sorting the references (card1 refers to the object with lowest rank, card2 refers to object with 2nd lowest rank, and so on)?
Number of code paths for four separate if/elif/else statements.
What is 81?
The result of this call: mystery(10, 20, 4)
public static int mystery(int x, int y, int n){
if(n == 1){
return x;
}
elif(n == 2){
return y;
}
else{
return mystery(x, y, n - 1) + mystery(x, y, n - 2);
}
}
What is 50?
Any of last year's AP CS A students.
Who is:
Aidan Kho or
Vincent Zhang or
Win Vaughn or
Yuchen Lin or
Nick Nguyen