Block Coding: Variables Practice Test (Grades 4–5)
These are US practice tests (grades, CSTA standards). In the UK? Try the UK version →
A free block coding variables test for Grades 4–5: 12 questions, graded instantly – steer Myrtle the Turtle, read and fix block programs in your browser. No sign-up.
Before you start
12 questions on variables, picked from a bank of 42 each time. Some questions ask where Myrtle stops or what she draws; some ask you to put blocks in order, spot a bug, or build a program with the blocks. Press Run to watch Myrtle the Turtle. Your program is graded when you move on – on the grid shown and on hidden ones. Choose Practice to see the answer after each question, or Test to see your answers at the end.
- 12 questions – a new mix each time you try
- Myrtle runs in your browser – nothing to install
- Works with a mouse, a keyboard or a finger on a tablet or phone
No sign-up and no adverts. Your answers stay on this device. Nothing you do in the test is sent to us – unless you choose to report a problem with a question.
How it is graded: Classfern's own checks, in your browser. Programs are run and checked against the task, some of them on hidden grids; nothing is graded by a person or by guesswork. Spot a mistake? Use the Report button.
Classfern practice material. Not an official test. Written by Classfern for practice. Not affiliated with or endorsed by any exam board, testing agency, school district or government department. The block coding here is Classfern's own design.
Lines up with the CSTA K–12 Computer Science Standards (2017): 1B-AP-09 – Build programs that store and change data using variables; 1B-AP-10 – Build programs with sequences, events, loops and conditionals; 1B-AP-11 – Break problems into smaller sub-problems; 1B-AP-12 – Modify, remix or reuse parts of an existing program to add features; 1B-AP-13 – Plan programs iteratively using others' views and user preferences; 1B-AP-15 – Test and debug a program or algorithm so it works as intended. The standard codes are CSTA's; the short descriptions are our own words.
Learn it first: Lesson 16: Variables: a box for a number · Lesson 17: Changing a variable (and a first look at Python) · Lesson 18: Project: your own turtle picture
More computer science tests · Programming Department · All practice tests