key words
Balatro Project
Code Paths
Recursion
Class Trivia
100
This key word is used when creating an object.

What is new?

100

The classes that made up the Balatro program.

What is Main, BalatroHand, and Card?

100

Number of code paths for a method that contains no if, if/else, or if/elif/else statements. 

What is 1?

100

This is when you call a method inside of its own definition.

What is recursion?

100

Video game we played in class once on the panorama screen.

What is Balatro?


200

This key word can be used to differentiate between field names and other variable names. 

What is this?

200

The fields (datatype and name) that each Card object had.

What are int suit and int rank?

200

Number of code paths for a method with an if/else statement. 

What is 2?

200

This is how recursion stops.

What is some calls finishing?

200

This is what this acronym (HIT) stands for.

What is "Hang in There"?

300

This key word is used to denote what value a call results in.

What is return?

300

The methods that each Card object had.

What are getSuit, getRank, and printCard?

300

Number of code paths for a method with an if/elif/elif/else statement.

What is 4?

300

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?

300

Name of room where we sometimes go.

What is the Digital Landscape Lab?

400

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?

400

The fields (datatype and name) that each BalatroHand object had. 

What are five Card objects (card1, card2, ... card5), int blueMultiplier, and int redMultiplier?

400

Number of code paths for a method who has three separate if statements.

What is 8?

400

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?

400

The other classes that Mr.Lopez teaches.

What is AP Computer Science Principles and 5th Grade Technology?

500

This keyword is used to denote that a variable should not change after its initial value.

What is final?

500
This is how the number of different test cases for BalatroHand methods like checkPair and checkTree was reduced.

What is sorting the references (card1 refers to the object with lowest rank, card2 refers to object with 2nd lowest rank, and so on)?

500

Number of code paths for four separate if/elif/else statements.

What is 81?

500

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?

500

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