Syntax
Printing
Variables
Operators
100

Every statement in Java ends with this.

What is a semicolon?

100

This is the statement used for printing something to the console and leaving a line afterward.

What is System.out.println();?

100

This data type stores data without decimals and fractions (including negative numbers).

What is an int?

100

This is 1000--.

What is 999?

200

Code blocks use this to designate their start and end.

What are curly braces {}?

200

This is the statement used for printing something to the console and not leaving a line afterward.

What is System.out.print();?

200

This data type stores text.

What is a string?

200

This is the value of this code:

int x = 15;
x *= 10;
System.out.println(x);

What is 150?

300

This goes around strings.

What are quotation marks “”?

300

This is the term for combining strings in Java.

What is concatenation?

300

This is the syntax for defining a String variable called myString with the value of Hello World.

What is String myString = "Hello World";

300

This is 49 % 8.

What is 1?

400

This is the overall code block that contains all of the code.

What is a class?


Note: Multiple classes can be made for one program, but we won’t go over that in this club.

400

This is the operator used for combining strings in Java.

What is the + operator?

400

This is a subdivision of data types that is created by Java. It is a a set of basic types of variables like int, boolean, double, etc.

What is a primitive type?

400

This is the operator to check if two values are equal.

What is ==?

500

These are the three words that go before main in the main method.

What are public, static, and void?

500

This is the result of this code:

public class Main {
    public static void main(String[] args) {
        int x = 556;
        int y = 959;
        System.out.println("x + y = " + x + y);
    }
}

What is:
x + y = 556959

500

This is the syntax for defining a character variable called firstLetter with the value of a.

What is char firstLetter = 'a';

500

This is the result of the following code:

int a = 56;
int b = 65;
int c = 11;
int d = 1;
System.out.println((!(a == b) || (c != d)) && (a <= d));

What is false?