Trace the Code
Loop Logic
If / Else Reasoning
Debug the Idea
Vocabulary & Concepts
100

What Does Trace the code mean

going line by line to recheck your code

100

What does a loop usually do

prints out what you want more than once 

100

What does an if and else statement do?

checks if a certain condition is being met and if it isn't it prints the else 
100

if (x = 5) {

    System.out.println("x is 5");

} else {

    System.out.println("x is not 5");

}



the else cannot have a condition 

100

What is a variable in Java

A variable is used as a sort of storage

200

where is it best to start when tracing code

from the top going down

200

What types of loops, loops only when a condition is met

a while loop

200

When is a if and else statement usually used

When you want multiple outcomes that can appear depending on the inputs

200

int score = 85;


if (score >= 90) {

    System.out.println("A");

}

else if (score >= 80) {

    System.out.println("B");

}

else (score >= 70) {

    System.out.println("C");

}

only the if and else can have a condition and else cannot 

200

What is the purpose of an if statement in Java?

An if statement is used to make decisions in a program. It runs a block of code only if a certain condition is true.

300

Why is it good to trace the code

it allows you to check for any mistakes you made early on

300

what are the two types of loops

while loop and forloop

300

When should an if and else statement be checked

After the values were checked

300

int age = 16;


if (age > 18) {

    System.out.println("Adult");

}

if (age > 13) {

    System.out.println("Teen");

}

else {

    System.out.println("Child");

}

The else went with the wrong if

300

What does System.out.println() do in a Java program?

System.out.println() prints text or values to the screen

M
e
n
u