💻 Coding Practice Test — 4th Grade

20 questions from 17 coding articles. Take it online for an instant score, or print it with the answer key.

Free · US Letter · no sign-up
Google Classroom Save to Pinterest Email me

Coding test — 4th Grade

  1. What is an app?

  2. What is a counter?

  3. What is a bug?

  4. What is decomposition?

  5. What is an event?

  6. What is a flowchart?

  7. What does the game loop do in every round?

  8. When does the else part run?

  9. What is input?

  10. What is output?

  11. What is pattern recognition?

  12. What does print do in Python?

  13. What is a programming language?

  14. What is pseudocode?

  15. What is decomposition in computational thinking?

  16. What is a variable?

  17. What is a variable?

  18. What should you do before building an app?

  19. What does clicks += 1 do?

  20. What is debugging?

Answer key

Show the answers and explanations
  1. A. A program that does a particular job — Usually on a phone, but not only. (App)
  2. C. A variable that counts how many times something happened — It usually starts at 0. (Counter)
  3. B. A mistake in software — “Bug” is the English word for an insect. (Debugging: Finding and Fixing Bugs)
  4. D. Splitting a problem into small parts that are easy to solve — Keep going until every part is simple. (Decomposition)
  5. C. Something that happens while the program is running — For example, a click or a key press. (Event)
  6. D. A drawing of an algorithm with shapes and arrows — It shows every path at a glance. (Flowchart)
  7. B. Checks the input, updates the world and draws the screen — The loop runs dozens of times per second. (How Video Games Are Made)
  8. A. When the condition is not true — “Else” means “otherwise.” (If-Else)
  9. B. Information that comes into the program from outside — Typing, clicking and talking are all input. (Input)
  10. C. What the program sends out — Screen, sound, printing. (Output)
  11. A. Finding things that are similar or repeat — So you can solve it once and reuse it. (Pattern Recognition)
  12. A. Shows values on the screen — The name is left over from the days of paper printouts. (Print Function)
  13. A. A language with strict rules for writing instructions for a computer — Software translates it for the computer. (Programming Language)
  14. D. An algorithm’s steps written in plain language — It’s a planning tool for people. (Pseudocode)
  15. C. Splitting a big problem into small parts — Each small part is easier to solve. (Thinking Like a Programmer: Computational Thinking)
  16. D. A named spot that holds a value you can change — Like a box with a label. (Variable)
  17. D. A named spot that stores a value you can change — Like a box with a label and a note inside. (Variables: Boxes for Information)
  18. B. Ask what problem it solves and sketch the screens — Plan first. (App)
  19. A. Adds 1 to the counter — It’s a shortcut for clicks = clicks + 1. (Counter)
  20. C. Finding mistakes in code and fixing them — It’s detective work that every programmer does. (Debugging: Finding and Fixing Bugs)

Study before the test

Other grades: 3rd Grade5th Grade6th Grade7th Grade

What is on this coding test?

20 multiple-choice questions taken from 17 coding articles written for 4th grade readers.

Can I print it?

Yes. Use the print button: the test and the answer key come out on separate pages, no sign-up needed.