JS Basics
Graphical Objects
IF/ELSE
While Loops
RANDOM FACTS
100

Stores information (a value) that the program can use and change.

What is a variable?

100

A shape or text you can draw and display (circle, rectangle, line, text).

What is a Graphical Object

100

What does an if statement allow a program to do?

Make a decision and run code only when a condition is true.


100

Repeats code while a condition is true.

What is a while loop 

100

Gas do plants take in for photosynthesis

What is Carbon dioxide (CO₂)?

200

Text in quotes

What is a string? 

200

Difference between a circle and a rectangle in graphics programming?

What is a circle is defined by a center and radius; a rectangle is defined by width and height (and position).

200

What does an else do?

Runs a different block of code when the if condition is false.

200

 must be true for a while loop to keep running

What is a Condition?

200

Number of continents are on Earth

What is 7?

300

An error causing the program to behave incorrectly.

What is a bug? 

300

What does “position” mean for a shape on the screen?

What is Where the shape is located (its x/y location).

300

When would you use else if instead of multiple separate if statements?

What is when choices are mutually exclusive and only one path should run.

300

A loop that never stops because its condition never becomes false?

What is An infinite loop?

300

The fastest land animal

What is a Cheetah? 

400

A clear step-by-step set of instructions to solve a problem.

What is an algorithm?  

400

Why might a shape not show up even if you created it?

It wasn’t added to the canvas, it’s off-screen, or it blends into the background color.

400

Why does the order of conditions matter in an else if chain?

What is The first true condition runs, so earlier checks can prevent later ones from ever being reached.

400

The most common reason loops accidentally become infinite

What is The loop variable never updates (or updates in the wrong direction)?

400

The only mammal capable of true flight

What is a Bat?

500

What’s the difference between input and output?

Input is what the user/program provides; output is what the program shows/returns.

500

What does “layering” mean when two shapes overlap?

Shapes drawn/added later appear on top of earlier ones.

500

Give a real-life example of a decision with 3+ outcomes.

What is 

If it’s raining → bring umbrella; else if it’s cold → bring jacket; else → wear normal clothes.

500

One strategy to make sure a loop eventually stops

What is update the loop control variable each iteration so the condition becomes false (or add a clear exit condition)?

500

Largest planet in our solar system

What is a Jupiter?