Arithmetic
Syntax
Data Types
Assignment Statements
Miscellaneous
100

What is printed?

System.out.println(23 % 5);

What is 3?

100
Required at the end of most java instructions.

What is a semi-colon?

100

Use this data type for whole numbers.

What are ints?

100

the value of z

int z;

z = 3;

z = 4;

What is 4;

100

creates a variable for the first time.

What is a declaration statement?

200

What is printed
System.out.println( 10/4 );

What is 2?


Both numbers are integers, so the result is an int.

200

Is wrong with the statement below:

system.out.println("Java is fun!");

What is the s in system should be capital?

200

Use this data type for numbers with decimals.

What are doubles?

200
the value of y

int y = 3;

int x = 4;

y = y + x;

what is 7?

200

It's value remains the same throughout the program.

What is a constant or final?

300

What is printed?
System.out.println(10/4.0);

What is 2.5?

300

Is missing in the code below

public static void main(String[] args)

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

What is the curly brackets are missing?

300

Can have only two possible values, true or false.

What is a boolean?

300

the value of num;

int num = 3;

int total = 6;

total = 4 + num;

What is 3;

300

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

is this type of statement

What is an output statement?

400

What is printed?

System.out.println(11/2*3);

What is 15?

Are numbers are truncated.

11/2*3

5 * 3

15

400
Used to make a variable a constant.

What is final?

400

Store a person's name using a variable of this data type.

What is a string?

400
The value of total

int num = 4;

int total = 5;

total = 5 + num;

what is 9?

400

The editor/ide we use for this class

What is jgrasp?

500

What is printed?

System.out.println(2 * (4-3) + 3 / 4 );

What is 2?

2 * (4-3) + 3/4

2*1 + 3/4

2 + 0

2

500

Is wrong with this code snippet

public static main(String[] args) {

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

}

What is void missing from the main method line?

500

Data types of ints, doubles, booleans, and chars?

What are primitives?

500

The value of c

int x = 3;

final int c = 6;

x = 4;

c = 7;

What is there is no value because this will produce an error?

500

Write this when you want to perform a calculation

What is an arithmetic expression?

M
e
n
u