Java Fundamentals
Operators
Find the Bug
Comp Sci
Data Types
100

Every line in Java ends with one of these terminating characters.

What is ;?

100

This operator adds together two numbers.

What is +?

100

String message = "Hello";

System.out.println(message)

There is no semicolon in the print line.

100

The rules of how to write a programming language. Also called the grammar of a language.

What is Syntax?

100

This primitive type can only hold positive and negative integers.

What is int?

200

This is how you write single and multiline comments in Java.

What is // and /* */?

200

This operator allows you to assign a value to a variable.

What is =?

200

string message = "Hello, World!";

System.out.println(message);

String is not capitalized.

200

This programming concept is referenced to be similar to a recipe.

What is an algorithm?

200

Holding only two bytes of data, this primitive type holds a value surrounded by single quotes.

What is char?

300

This is responsible for memory management and running your Java program.

What is the Java Virtual Machine (JVM)

300

This operator divides a number and returns the remainder.

What is modulo (%)?

300

boolean goHome = true;

if (goHome = true) {

    System.out.println("I went home");

} if else (goHome = false) {

    System.out.println("I stayed at work");

}

both if statements need to use == or can just be replaced with a boolean. There's no such thing as if else, it's else if.

300

These are the reserved words by a language.

What are keywords?

300

This reference type holds multiple characters.

What is String?

400

The entry point function for all Java programs

What is public static void main(String[] args) {}?

400

This neat assignment operator takes an existing variable and will multiply it by whatever you pass in.

What is *=?

400

class App {

    public void main(String[] args) {

        System.out.println("Hello, World");

    }

}

Class is missing public. main is missing static.
400

These are user invented tokens used by programmers to name various in-program constructs such as variables.

What are Identifiers?

400

This primitive type can be referred to as a yes or no, 1 or 0, and is used for making decisions.

What is a boolean?

500

This is the language is Java's syntax based off of.

What is C?

500

These operators can add or subtract 1 to any number

What is ++ and --?

500

double float = 12.3;

if (float >= 12.3) {

    System.out.print("And I said, "That's my salad"");

} else {

    System.out.print("We are eating mice tonight...");


float is reserved and can't be a variable name. You can't have multiple double quotes in System.out.print(). else has no closing curly brace.

500

This tool is responsible for taking your code written in a high-level language and translating it down into machine code that your computer can run.

What is the compiler?

500

This data type has twice the precision as a normal float and holds fractional values.

What is a double?

M
e
n
u