Get the appApp
Learning departments Music, Maths, Cookery, Programming and Art are open – explore →

KS3 computing: JavaScript practice test (mixed) – Year 8

These are UK practice tests (year groups, national curriculum). In the US? Try the US version →

A free JavaScript practice test for Year 8 (ages 12–13): 20 questions, marked instantly – write, fix and predict real code in your browser. No sign-up. This test is for Year 8 (ages 12–13).

Before you start

20 questions on everything in the beginners' course, mixed, picked from a bank of 63 each time. Some questions ask what a program prints or what a variable holds; some ask you to put lines in order, or to write or fix a short program. When you write or fix code, press Run to try it. It is marked when you move on: your program is run in your browser against the example and some hidden tests. Choose Practice to see the answer after each question, or Test to see your answers at the end.

  • 20 questions – a new mix each time you try
  • JavaScript runs in your browser – nothing to install
  • A keyboard helps for the coding questions
Choose how to do it

No sign-up and no adverts. Your answers and your code stay on this device. Nothing you type in the test is sent to us – unless you choose to report a problem with a question.

How it is marked: Classfern's own checks, in your browser. Code is run in a locked box against tests, some of them hidden; nothing is marked 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. JavaScript is a trademark or registered trademark of Oracle Corporation in the U.S. and other countries; Classfern is not affiliated with or endorsed by it.

Curriculum: the key stage 3 computing programme of study says pupils should be taught to design, use and evaluate computational abstractions that model the state and behaviour of real-world problems and physical systems; and to understand several key algorithms that reflect computational thinking [for example, ones for sorting and searching]; use logical reasoning to compare the utility of alternative algorithms for the same problem; and to use 2 or more programming languages, at least one of which is textual, to solve a variety of computational problems; make appropriate use of data structures [for example, lists, tables or arrays]; design and develop modular programs that use procedures or functions; and to understand simple Boolean logic [for example, AND, OR and NOT] and some of its uses in circuits and programming; understand how numbers can be represented in binary, and be able to carry out simple operations on binary numbers [for example, binary addition, and conversion between binary and decimal].

Contains public sector information licensed under the Open Government Licence v3.0. Curriculum statements from: Department for Education, National curriculum in England: computing programmes of study, © Crown copyright 2013.

More KS3 computing tests · Programming Department · All practice tests