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

JavaScript: Mixed Practice Test (Grades 7–8)

These are US practice tests (grades, CSTA standards). In the UK? Try the UK version →

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

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 graded 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 graded: Classfern's own checks, in your browser. Code is run in a locked box against tests, some of them hidden; 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. 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.

Lines up with the CSTA K–12 Computer Science Standards (2017): 2-AP-11 – Create clearly named variables of different data types and operate on them; 2-AP-12 – Design and iteratively develop programs with control structures incl. nested loops and compound conditionals; 2-AP-13 – Decompose problems to help design, implement and review programs; 2-AP-14 – Create procedures with parameters to organize and reuse code; 2-AP-16 – Use existing code, media and libraries in original programs, with attribution; 2-AP-17 – Systematically test and refine programs using a range of test cases; 2-AP-19 – Document programs so they are easier to follow, test and debug. The standard codes are CSTA's; the short descriptions are our own words.

More computer science tests · Programming Department · All practice tests