Computer Science in Classla

Everything a coding class needs sits in one course: coding blocks with a real machine behind them and autograders you write once, code-reading questions such as Parsons problems, live review games with coding rounds, and ready-made content in CSAwesome and the AP CSA review sets. This page covers what is specific to computer science and points to the page for each part.

Where Each Part Is Documented

  • Coding blocks: writing a coding question, its starter files, model solution and autograder tests.
  • The coding machine: what is installed, files, the terminal, the graphical desktop, restarting and the limits.
  • The Workspace: each student's ungraded coding space in the course, with private notes.
  • Grading code: test runs, rerunning the autograder, the history timeline, the paste trail and similarity.

Everything else works the same as in any other subject: assignment settings, sections, modes, the gradebook and analytics. Those are on the Every teacher tab.

The CS Demo Class

When you make your account you are asked "What do you teach?". Pick Computer science, or leave it unanswered, and your dashboard gets a demo class, AP CSA, Period 3 (Demo), one section of 24 made-up students whose work is already turned in, so grading, analytics and integrity have something in them. You can change the answer later in your account settings.

It holds six assignments, each showing a different part of Classla:

Start here
A walkthrough of the class, written for you.
Unit 3: Loops
Multiple choice, a Parsons problem, a short answer and a Java coding block, "Array statistics", with three autograder tests. The students' test runs, pastes and similarity are there to look at.
Boolean logic check
A sequential quiz with locked answers.
Unit 3 test
A 45 minute timed test under lockdown, with a rubric and a log of two students leaving the tab.
Loops review
Played as a finished live game, with correct answers shown after submission.
Methods practice
Practice after grading.

The class also has weighted grade categories (Labs, Quizzes, Homework, Tests) and three weeks of attendance. It is yours to change or delete. If your dashboard is empty, Open the demo class builds it again. A read-only copy of the same class is public at app.classla.org/demo, with no account needed; there, Run is replaced by "Create a free account to run code".

CSAwesome

CSAwesome is the Runestone Academy AP Computer Science A curriculum, imported into Classla as ordinary assignments: its lessons, questions and coding exercises are Classla blocks you can edit like your own. The model solutions and the JUnit autograder tests in it were written by Classla, and each one was checked by compiling and running it.

To start a course from it, open Templates in the header, find it under Computer science, AP courses on the Classla courses tab, and press Use Template. The Create Course dialog lists the same templates under Or start from a template. The new course gets its own join code, and every lesson in it is yours to change. Official templates are for verified teachers: if you see "Verified teachers only", email camden@classla.org.

The credit is required, and it is automatic. CSAwesome is by Beryl Hoffman and the CSAwesome team at Runestone Academy, used under CC BY-NC-SA 4.0, and Classla's adaptations are shared under the same licence. Classla does not charge for that content. Every course made from it carries an Attribution section on its summary page that says so, says the model solutions and autograder tests are Classla's and not covered by that licence, and notes that some lessons include AP Computer Science A labs and free response questions that remain the College Board's. If a save would remove the credit, Classla puts it back.

The AP CSA Review Sets

Classla has written a library of AP Computer Science A review sets: 159 sets across 53 College Board topics in the four units, each in Easy, Medium and Hard, eight questions a set. They mix trace-the-output, concept, find-the-bug, fill-in-the-blank and Parsons questions. The questions are written from scratch against the topic list, not taken from the College Board, and every trace program is compiled and run before a set ships.

Set the course's Subject to AP Computer Science A (in Course Settings, or when you create the course). The sidebar's create menu then has From a review set…. Filter by Unit, Topic, Difficulty and Format, then either Add one set as it is, or use Build a round from the selection to sample a set number of questions from every topic you picked, with Shuffle and Skip played (questions the class has already played live). Preview shows a set with its answer keys. Either way it lands unpublished, as an ordinary assignment you can edit, assign as homework or play live.

Blocks for Reading Code

Besides the coding block, two question blocks are built for code. Both are in the slash menu with every other block; the settings below are in each block's gear menu. The blocks every subject shares are on Blocks.

Parsons Problem

Paste the Correct Solution Code, Split into Blocks, and add Distractor Blocks (Optional). Students drag blocks from Available Blocks into Your Solution; a block let go anywhere inside the area lands there, beside the block nearest the pointer (below the middle of a line goes after it; the empty space at the bottom of Your Solution places a line last). The two areas sit side by side while every line fits; with a longer line they stack, and a line still too long for the screen wraps onto rows marked ↪, so students always see the whole line without scrolling.

Enable indentation (students must match indentation)
Under Grading Setup. Gives each placed block indent arrows and grades the indentation.
Spaces per Indent (4 by default)
Goes with indentation.
Show line numbers
For display.
Plain text
For sentences, not code, such as the steps of a process: the normal font and no line numbers while students arrange them. Grading does not change.
Horizontal layout
Builds a single line left to right, split by spaces instead of by line. On a narrow screen the line wraps onto more rows; a block let go past the middle of another block goes right after it, so the end of every row can be reached.

Grading is all or nothing: the feedback says whether a distractor was used, the block count is wrong, the order is wrong, or only the indentation is.

Code Selection

Paste code into Content (Code or Text), press Parse into Lines, and click the lines that are answers. Students click lines ("Click all lines that declare a variable").

Phrase selection
Lets them highlight words or phrases inside a line instead.
Plain text
For sentences, not code: the text sits on the page in the normal font, with no code window and no line numbers. Grading does not change.
Award partial credit (On by default)
The score is correct picks minus wrong picks, over the number of correct lines, and never below zero. Off, the block is all or nothing.
Show line numbers
Under Grading Setup.

Coding Rounds in a Live Game

A coding block can be a question in a live game. The launch sheet gets a separate Time per coding question (300 seconds by default, 30 to 3600). Each player writes and runs code in their own editor, then presses Lock it in. By default there is no Auto Grader tab and no Check Answer during the round.

When the assignment has a coding block, the launch sheet also offers Tests during coding rounds, off by default. Turn it on for a guided exercise: each coding block with Allow student to check answer on gives players the Auto Grader tab and Run Tests until they lock in, so they can see what they missed while there is still time to fix it. These runs are not saved and never score. It applies only to coding blocks; every other question still has no Check Answer in a game.

When the question closes, Classla runs your tests on every player's code; the projector shows "Checking code: 12 of 24" while it does. A block with no tests scores nothing live: the answers are collected and you grade them afterwards. The projector never opens an editor. It shows a Coding round card with the starter code and the tests, and after the reveal it shows the Model solution with the lines that differ from the starter code highlighted. Each player, after the reveal, sees Your code beside the Answer, your model solution, file by file. The rest of live mode is on Modes.

What It Does Not Do

  • Two subjects have review libraries: AP CSA and AP Calculus. Other computer science subjects, such as AP Computer Science Principles or Intro to Python, can be set on a course and have no review sets yet.
  • The review sets and CSAwesome are Java, because AP CSA is. Coding blocks you write yourself can use any of the six languages.
  • Parsons problems have no partial credit. Split a long program into two problems if you want to credit half of it.
  • Students in a live coding round cannot check their code against the tests before the question closes.
  • Official templates and review sets wait on a person at Classla verifying your account. Email camden@classla.org; it is usually the same day.