Computer science practice tests: Python and SQL (Grades 6–8)
These are US practice tests (grades, CSTA standards). In the UK? Try the UK version →
Free computer science practice tests for middle school. Python tests for grades 6–7 follow our Python for complete beginners course, one test for each part of it. SQL tests for grades 6–8 ask questions of real tables. Every answer is graded right away – your code runs in your browser. In the UK, the same work is KS3 computing (Years 7 to 9).
Python tests (Grades 6–7)
One test for each part of the Python for complete beginners course, plus a mixed test.
SQL tests (Grades 6–8)
Ask a table questions: find, sort, count and group rows. Each question shows its table.
HTML and CSS tests (Grades 6–7)
One test for each unit of the HTML and CSS course, plus a mixed test. Build, fix and predict real web pages – your page is drawn by your own browser and graded with a checklist.
JavaScript tests (Grades 7–8)
One test for each part of the JavaScript for beginners course, plus a mixed test. Write, fix and predict real JavaScript – it runs in your browser. Learn it first in the JavaScript for beginners course (24 lessons).
How the tests are graded
- Predict: type what a program prints, or what a query gives – graded line by line.
- Trace tables and order: fill in a variable's values, or put mixed-up lines into a working order.
- Write it and fix it: your code runs in your browser against the example and hidden tests with different input, so it has to work every time.
- Choices: pick the right output or error.
Everything is graded by Classfern in your browser, straight away. Your code is never sent to us.
Learn first
The Programming Department has the full Python course: 24 lessons for complete beginners, each with teaching, worked examples, practice and homework, starting with Lesson 1: What is programming?.
Classfern practice material. Not an official test and not affiliated with or endorsed by any state, testing program, exam board or the CSTA. Lines up with the CSTA K–12 Computer Science Standards (2017) for grades 6–8; the descriptions are our own words.