Java 1
Java 2
Bases
Coding 1
Coding 2
400

What is the ASCII value of 'A'?

65

400

Recite the Java main method

public static void main (String [] args)

400
Convert 25 from decimal to binary

11001

400

What is the escape sequence for a new line?

\n
400

What is the difference between print() and println()?

println() moves to the next line after printing

800

What is the ASCII value for 'a'?

97

800

What is instantiation?

creating one instance of an object

800

Convert A5 from base 16 to decimal

165

800

Write a code that prints a blank line.

System.out.println();

800

boolean a = true;

String b = "that";

What is a+b?

"truethat"

1200

What is the ASCII value for '0'?

48

1200

List the 8 primitive data types

byte, short, int, long, float, double, char, boolean

1200

Convert 101001 from binary to decimal.

41

1200

What is the escape sequence for a backslash?

\\

1200

A java file name is always the same as the name of the what?

Class

1600

What error occurs when your code asks a computer to do something it can not reliably do?

Runtime error

1600

What is Integer.MIN-VALUE?

-2^31

1600

Convert 10100111 from base 2 to hexadecimal.

A7

1600

int a = 6;

char b = '2'

What is a+b?

56

1600

int a = 6;

boolean b = false;

What is a+b?

error

2000

Which error occurs when your syntax is incorrect?

Compile error

2000

Which scanner method reads in a single word?

next();

2000

Convert 69420 from decimal to base 31.

2A7B

2000

int a = 6;

double b = 2;

What is a+b?

8.0
2000

int a = 6;

String b = '2';

What is a+b?

62

M
e
n
u