💻 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.
Coding test — 4th Grade
What is an app?
What is a counter?
What is a bug?
What is decomposition?
What is an event?
What is a flowchart?
What does the game loop do in every round?
When does the else part run?
What is input?
What is output?
What is pattern recognition?
What does print do in Python?
What is a programming language?
What is pseudocode?
What is decomposition in computational thinking?
What is a variable?
What is a variable?
What should you do before building an app?
What does clicks += 1 do?
What is debugging?
Name: ____________________ Date: ____________
What is an app?
- A. A program that does a particular job
- B. A kind of screen
- C. A charging cable
- D. A part inside the phone you can touch
What is a counter?
- A. An HTML tag
- B. A kind of screen
- C. A variable that counts how many times something happened
- D. An error
What is a bug?
- A. A kind of loop
- B. A mistake in software
- C. A new computer
- D. The name of a programming language
What is decomposition?
- A. Deleting the problem
- B. Ignoring the problem
- C. Breaking the computer
- D. Splitting a problem into small parts that are easy to solve
What is an event?
- A. A kind of loop
- B. An error message
- C. Something that happens while the program is running
- D. The name of a variable
What is a flowchart?
- A. A picture of a computer
- B. A shopping list
- C. A map of rivers
- D. A drawing of an algorithm with shapes and arrows
What does the game loop do in every round?
- A. Saves the game and turns off
- B. Checks the input, updates the world and draws the screen
- C. Deletes the characters
- D. Only plays music
When does the else part run?
- A. When the condition is not true
- B. Always
- C. When the condition is true
- D. Never
What is input?
- A. The name of a language
- B. Information that comes into the program from outside
- C. A kind of bug
- D. Information the program displays
What is output?
- A. The name of a file
- B. A kind of loop
- C. What the program sends out
- D. What the user types
What is pattern recognition?
- A. Finding things that are similar or repeat
- B. Choosing a color
- C. Deleting duplicates
- D. Drawing patterns on fabric
What does print do in Python?
- A. Shows values on the screen
- B. Deletes variables
- C. Saves a file
- D. Prints a page on the printer
What is a programming language?
- A. A language with strict rules for writing instructions for a computer
- B. The name of a computer
- C. Sign language
- D. The language you speak at home
What is pseudocode?
- A. A secret programming language
- B. Code that harms the computer
- C. Code that was deleted by mistake
- D. An algorithm’s steps written in plain language
What is decomposition in computational thinking?
- A. Printing the program
- B. Breaking the computer
- C. Splitting a big problem into small parts
- D. Deleting the code
What is a variable?
- A. A tag
- B. An error message
- C. A loop
- D. A named spot that holds a value you can change
What is a variable?
- A. An error message
- B. A kind of loop
- C. A computer that changes every day
- D. A named spot that stores a value you can change
What should you do before building an app?
- A. Build everything at once
- B. Ask what problem it solves and sketch the screens
- C. Ask everyone for personal details
- D. Only pick a color
What does clicks += 1 do?
- A. Adds 1 to the counter
- B. Resets the counter
- C. Multiplies by 1
- D. Deletes the counter
What is debugging?
- A. Buying a computer
- B. Deleting the program
- C. Finding mistakes in code and fixing them
- D. Writing new code from scratch
Answer key
- A. A program that does a particular job
- C. A variable that counts how many times something happened
- B. A mistake in software
- D. Splitting a problem into small parts that are easy to solve
- C. Something that happens while the program is running
- D. A drawing of an algorithm with shapes and arrows
- B. Checks the input, updates the world and draws the screen
- A. When the condition is not true
- B. Information that comes into the program from outside
- C. What the program sends out
- A. Finding things that are similar or repeat
- A. Shows values on the screen
- A. A language with strict rules for writing instructions for a computer
- D. An algorithm’s steps written in plain language
- C. Splitting a big problem into small parts
- D. A named spot that holds a value you can change
- D. A named spot that stores a value you can change
- B. Ask what problem it solves and sketch the screens
- A. Adds 1 to the counter
- C. Finding mistakes in code and fixing them
Answer key
Show the answers and explanations
- A. A program that does a particular job — Usually on a phone, but not only. (App)
- C. A variable that counts how many times something happened — It usually starts at 0. (Counter)
- B. A mistake in software — “Bug” is the English word for an insect. (Debugging: Finding and Fixing Bugs)
- D. Splitting a problem into small parts that are easy to solve — Keep going until every part is simple. (Decomposition)
- C. Something that happens while the program is running — For example, a click or a key press. (Event)
- D. A drawing of an algorithm with shapes and arrows — It shows every path at a glance. (Flowchart)
- B. Checks the input, updates the world and draws the screen — The loop runs dozens of times per second. (How Video Games Are Made)
- A. When the condition is not true — “Else” means “otherwise.” (If-Else)
- B. Information that comes into the program from outside — Typing, clicking and talking are all input. (Input)
- C. What the program sends out — Screen, sound, printing. (Output)
- A. Finding things that are similar or repeat — So you can solve it once and reuse it. (Pattern Recognition)
- A. Shows values on the screen — The name is left over from the days of paper printouts. (Print Function)
- A. A language with strict rules for writing instructions for a computer — Software translates it for the computer. (Programming Language)
- D. An algorithm’s steps written in plain language — It’s a planning tool for people. (Pseudocode)
- C. Splitting a big problem into small parts — Each small part is easier to solve. (Thinking Like a Programmer: Computational Thinking)
- D. A named spot that holds a value you can change — Like a box with a label. (Variable)
- 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)
- B. Ask what problem it solves and sketch the screens — Plan first. (App)
- A. Adds 1 to the counter — It’s a shortcut for clicks = clicks + 1. (Counter)
- 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
- 📱 App
- 🧮 Counter
- 🐞 Debugging: Finding and Fixing Bugs
- 🪓 Decomposition
- 🔔 Event
- 🔀 Flowchart
- 🎮 How Video Games Are Made
- 🔀 If-Else
- ⌨️ Input
- 📤 Output
- 🔁 Pattern Recognition
- 🖨️ Print Function
- 🗣️ Programming Language
- 📝 Pseudocode
- 🧠 Thinking Like a Programmer: Computational Thinking
- 📦 Variable
- 📦 Variables: Boxes for Information
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.