Variables and Set Up
Decisions
Methods
Arrays
Bonus
100

Software we use to code

What is Eclipse

100

!=

What is operator for not equal to

100

what is this method return type?

public static boolean myMethod(int a)

What is boolean

100

This data structure stores multiple values of the same type under one name and can be accessed by an index.

What is an array?

100

Who invented java and when

James Gosling, 1991

200

Data type used to contain average student marks

What is double 

200

||

What is "or"

200

what is this methods parameter type?

public static int myMethod(string name)

What is string

200

If an array in Java has 10 elements, what is the index of the 7th element

What is 8?

200

Mr. Weigand first name

What is Dan

300

Where class files are stored

What is package

300

How you would exit a switch early.

What is break;

300

What is it called when you write more that one method of the same name?

What is method overloading?

300

What is the output of this code?

int[] nums = {2, 4, 6, 8};

System.out.println(nums[2]);

What is 6?

300

what is this flag

what is Iceland

400

int that stays constant in the code

What is FINAL_STATIC_INT

400

What is the difference between an if-else if-else structure and multiple separate if statements?

In if-else if-else, only one condition can be true and executed. But with separate if statements, multiple conditions can all run if they are true.

400

what are variables declared in a method called?

what is local?

400

In Java, what happens if you try to access an array element using an index that is outside the valid range?

What is an ArrayIndexOutOfBoundsException?

400

what is an ill 7

six 7

500

The bigger data type, short or byte?

What is short

500

What will this print 

int num = 14

boolean validNum = false;

if(num <15 && !validNum )

print("This is a small number")else{

print("This is a big number")

What is: This is a small number

500

What is the argument, and output of this method

String name = "Jake"

public static int myMethod(String b)

     String a = "Blake";

     String newName =  (b + "and" + a);   

What is String name

Jake and Blake

500

int[] data = {3, 1, 4, 1, 5};

int sum = 0;

for (int i = 0; i < data.length; i++) 

    if (data[i] % 2 == 0) 

        sum += data[i];

System.out.println(sum);

What is 4?

500

 Ask this question all day long, but always get completely different answers, and yet all the answers will be correct. What is the question? 

What time is it?