ArticleslgStudy

computer science

Scratch (programming language)

Scratch (programming language) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Scratch (programming language) rather than just read about it. In short: Scratch is a high-level, block-based visual programming language and website aimed primarily at children as an educational tool, with a target audience of ages 5 to 16. Users can create projects on the website using a block-like interface.

Scratch (programming language) — main illustration
Scratch (programming language) — illustration

Key takeaways

  • Scratch (programming language) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Scratch (programming language) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Scratch (programming language) from memory before moving on to harder problems.

Reference excerpt

Scratch is a high-level, block-based visual programming language and website aimed primarily at children as an educational tool, with a target audience of ages 5 to 16. Users can create projects on the website using a block-like interface. Scratch was conceived and designed through collaborative National Science Foundation grants awarded to Mitchel Resnick and Yasmin Kafai. Scratch is developed by the MIT Media Lab and has been translated into 70+ languages, being used in most parts of the world. Scratch is taught and used in after-school centers, schools, and colleges, as well as other public knowledge institutions. As of 15 February 2023, community statistics on the language's official website show more than 123 million projects shared by over 103 million users, and more than 95 million monthly website visits. Overall, more than 1.3 billion projects have been created in total, with the site reaching its one millionth project in April 21st, 2010 and its one billionth project on April 12th, 2024. Scratch takes its name from a technique used by disk jockeys called "scratching", where vinyl records are clipped together and manipulated on a turntable to produce different sound effects and music. Like scratching, the website lets users mix together different media (including graphics, sound, and other programs) in creative ways by creating and "remixing" projects, like video games, animations, music, and simulations.

Scratch 3.0

User interface

The Scratch interface is divided into three main sections: a stage area, block palette, and a coding area to place and arrange the blocks into scripts that can be run by pressing the green flag or clicking on the code itself. Users may also create their own code blocks, which will appear in the "My Blocks" section. The stage area features the results (e.g., animations, turtle graphics, either in a small or normal size, with a full-screen option also available) and all sprites' thumbnails being listed in the bottom area. The stage uses x and y coordinates, with 0,0 being the stage center. With a sprite selected at the bottom of the staging area, blocks of code can be applied by dragging them from the block palette into the coding area. The Costumes tab allows users to change the look of the sprite with a vector and bitmap editor in order to create various effects, including animation. The Sounds tab allows attaching sounds and music to a sprite. When creating sprites and also backgrounds, users can draw their own sprites manually, choose a sprite from the library, or upload an image. The table below shows the categories of the programming blocks:

Offline editing

An offline "Desktop Editor" for Scratch 3.0 is available for Microsoft Windows 10 and above in the Microsoft Store, Apple's macOS, ChromeOS, Android, and unofficially in Linux, but Scratch is working with open-source partners to support Linux in the future. This allows the creation and playing of Scratch programs offline. Previous versions of the offline editor are also accessible.

Extensions In Scratch, extensions add extra blocks and features that can be used in projects. In Scratch 2.0, the extensions were all hardware-based and Pen was a normal category. Software-based extensions were added in Scratch 3.0, such as text-to-speech voices, along with some new hardware-based extensions like the micro:bit. The extensions are listed below.

Physical LEGO Mindstorms EV3 – Control motors and receive sensor data from the Lego Mindstorms EV3 Makey Makey – Use Makey Makey to control projects LEGO Education WeDo 2.0 – control motors and receive sensor data from the Lego WeDo micro:bit – Use of a micro:bit to control projects LEGO BOOST – Bring robotic creations to life Go Direct Force & Acceleration – Sense pull, push, motion, and spin

Digital Many of the digital extensions in Scratch 3.0 used to be regular block categories that were moved to the extensions section to reduce clutter. These include:

Music – Play digital instruments (drums, trumpets, violins, pianos, and more). Previously part of the Sound category. Pen – Draw on the Stage with a variety of thicknesses and color. Previously a normal block category. Video Sensing – Detect motion with the camera. Previously in the Sensing category. Face Sensing - Detects motion with the camera to create costumes and games that interact with a user's face. New digital extensions have also been added in collaborations with commercial companies. These include:

Text to Speech – Converts words in a text into voice output, especially having an option for languages (variety of voices, supplied by Amazon) Translate – Uses Google Translate to translate text from one language into a variety of other languages, including Arabic, Chinese, Dutch, English, French, Greek, Norwegian, and Japanese Makey Makey – Options for better key pressing and press multiple keys in order. You can grab a join block if you want more control on the extension. A paper published in 2019 by NYU argues and illustrates, for coding music with Scratch, "that the music and sound blocks as currently implemented in Scratch may limit and frustrate meaningful music-making for children, the core user base for Scratch."

Scratch Lab The Scratch Lab displays experiments from the Scratch Team, intended to explore whether new features may be added to the full website in the future. Experimental features currently under development include:

Video Sprites – Fill sprites with live video. Animated Text – Bring words to life with colors, fonts, and animations.

Community of users

Scratch is used in many different settings: schools, museums, libraries, community centers, and homes. Scratch is designed primarily for users aged 8–16, but it is used by all ages and has a sizeable adult user base as of 2009. This wide outreach has created many surrounding communities, both physical and digital. In April 2020, the Tiobe ranking of the world's programming languages included Scratch in the top 20. According to Tiobe, there are 50 million projects written in Scratch, and every month one million new projects are added.

… excerpt ends here. Continue reading the full article.

Illustrations

Scratch (programming language) illustration
Scratch (programming language): A program to change the background and make a sprite speak
A program to change the background and make a sprite speak
Scratch (programming language): Four different scripts for the getting started built-in tutorial
Four different scripts for the getting started built-in tutorial
Scratch (programming language): A coded example, using the ask block for the users' name, then responding with it
A coded example, using the ask block for the users' name, then responding with it
Scratch (programming language): An example of the Scratch 3 Extensions Page
An example of the Scratch 3 Extensions Page

Worked examples

Example 1 — a first encounter with Scratch (programming language)

Start with the simplest possible case. Write down what Scratch (programming language) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Scratch (programming language) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Scratch (programming language) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Scratch (programming language)

In research
Scratch (programming language) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Scratch (programming language) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Scratch (programming language) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Block-based visual programming languages, Computer file formats, Creative Commons-licensed websites, so understanding it makes those chapters shorter.
In everyday life
Look for Scratch (programming language) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Scratch (programming language) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Scratch (programming language) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Scratch (programming language) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Scratch (programming language) in simple terms?

Scratch is a high-level, block-based visual programming language and website aimed primarily at children as an educational tool, with a target audience of ages 5 to 16. Users can create projects on the website using a block-like interface.

Why does Scratch (programming language) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Scratch (programming language)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Scratch (programming language).

Tags

  • Block-based visual programming languages
  • Computer file formats
  • Creative Commons-licensed websites
  • Dynamically typed programming languages
  • Educational programming languages
  • Filename extensions
  • Free educational software
  • MIT Media Lab
  • Microsoft Store Awards 2025 winners
  • Pedagogic integrated development environments
  • Programming languages created in 2003
  • Smalltalk programming language family

Keep exploring