What is printed?
System.out.println(23 % 5);
What is 3?
What is a semi-colon?
Use this data type for whole numbers.
What are ints?
the value of z
int z;
z = 3;
z = 4;
What is 4;
creates a variable for the first time.
What is a declaration statement?
What is printed
System.out.println( 10/4 );
What is 2?
Both numbers are integers, so the result is an int.
Is wrong with the statement below:
system.out.println("Java is fun!");
What is the s in system should be capital?
Use this data type for numbers with decimals.
What are doubles?
int y = 3;
int x = 4;
y = y + x;
what is 7?
It's value remains the same throughout the program.
What is a constant or final?
What is printed?
System.out.println(10/4.0);
What is 2.5?
Is missing in the code below
public static void main(String[] args)
System.out.println("Hello World");
What is the curly brackets are missing?
Can have only two possible values, true or false.
What is a boolean?
the value of num;
int num = 3;
int total = 6;
total = 4 + num;
What is 3;
System.out.println("Hello World");
is this type of statement
What is an output statement?
What is printed?
System.out.println(11/2*3);
What is 15?
Are numbers are truncated.
11/2*3
5 * 3
15
What is final?
Store a person's name using a variable of this data type.
What is a string?
int num = 4;
int total = 5;
total = 5 + num;
what is 9?
The editor/ide we use for this class
What is jgrasp?
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
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?
Data types of ints, doubles, booleans, and chars?
What are primitives?
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?
Write this when you want to perform a calculation
What is an arithmetic expression?