5. Labs Management & Activities

Where: sidebar → Course Content → Labs (/courseware/course/{courseId}/content/labs)

A lab is a container with a schedule. Inside it sit activities: the things students actually do:

Activity type

What it is

Programming Activity

Write code, run against testcases, auto-graded

Quiz Activity

Questions, file uploads, subjective answers. Students see this as “lab quiz”


5.1 The Labs Dashboard

Counters across the top (All Labs / Visible / Hidden) and matching tabs. The bar below gives you a search box, Reorder (on the All Labs tab only, and only once you have two labs), a New ▾ dropdown holding New Lab and Import Programming Lab, and two icon buttons: Export Labs and Recycle Bin.

Each row shows the lab’s Title, Status (visible or hidden), Type, Timeline (start and end), Submissions count, and Actions icons.

Your search, sort, filter, and page-size choices are remembered per course for the browser session — they reset when you close the tab.

Bulk Show & Hide Operations

Tick the checkbox next to one or more labs. A bulk bar appears at the bottom of the screen: Show makes every selected lab visible to students, Hide hides them all.

Labs list with several labs selected and the bulk bar


5.2 Creating a New Lab

New ▾ → New Lab opens the Create Lab dialog:

Create Lab dialog

  • Title: required

  • Instructions: click to edit, rich text

You then set:

Field

Notes

Available From / Available Till

From must be before Till

Submission Grace Period

Default 00:01:00: “Extra time after deadline to accept auto-submissions (accounts for network latency)”

Leave the grace period alone unless you have a reason. It exists so a student who hits submit on the deadline is not failed by network lag.

Preview as Student in the dialog header shows the student’s view before you save. Click Submit to create the lab.

New labs are created hidden. Make the lab visible when you are ready for students to see it.


5.3 Programming Activities & Autograding

From a lab, Create Activity ▾ → Programming Activity.

Students write code in an in-browser editor, run it, and submit. BodhiTree runs each submission in a sandbox and checks its output against your testcases.

Programming activity form, Basic Info card

Basic Details & Setup

Preview as Student in the top bar shows the problem and editor as a student sees them.

  • Title (required) and Description: the problem statement, with expected input, output, and constraints

  • Files to be submitted (required): comma-separated names without extensions, e.g. Sum, Matrix. For Java this is also the class name — students must declare public class Sum in Sum.java

  • Languages (required): at least one of C, C++, Python3, Simplecpp, Java

  • Instructor Solution and Documents file uploads

Advanced configuration

Linker Flags, Header Files, and per-language Additional Files for C, C++ and Simplecpp. Additional files are bundled automatically and appear in the student’s editor read-only.

Instructor-provided files are capped at 20 KB each, as are student submissions.

Configuring Test Cases: Visible vs. Hidden

The testcase table is edited inline: click to edit a row, or add a row directly. Each testcase has a Name, Input, Expected Output, Visibility, and Marks.

Visibility is the key decision:

  • Visible testcases (green eye icon) appear to students as Practice Testcases, input and expected output included, and they can download them. Use them to help students test and debug

  • Hidden testcases (grey eye-off icon) appear as Evaluation Testcases; students never see their input or output. Use them for edge cases and large inputs, so students cannot hard-code answers

Click the eye icon in a row at any time to switch that testcase between Visible and Hidden.

Testcase Details with a visible and a hidden testcase

+ Add Testcase below the table adds a row. Each row has Edit (inline), Download (that testcase’s input and output files), and Delete (after a confirmation) icons.

Actions ▾ offers Delete Selected, Bulk Upload Test Case, Configure Resource Limit, Expose Hidden Testcases / Hide Exposed Testcases, and Download All.

Bulk Upload takes a .zip package, with Visible to students and Marks per case applied to the whole batch. You must save the activity first: “Please save the activity first before importing testcases”.

Reorder opens a drag-and-drop dialog; it needs at least two testcases and saves immediately.

Configure Resource Limits

Configure Resource Limit sets execution limits per language group:

Setting

Range

Wall clock / CPU time

1–240 seconds

Virtual memory

15 MB – 256 MB

Stack size

8 MB – 64 MB

CPU time must be ≤ wall clock time, and stack ≤ memory. Defaults are in §10.2.

Child processes are limited to zero. Code that forks or spawns threads will fail whatever time limit you set.

Autograding

Option

Effect

Indentation percentage

Weight given to indentation

Ignore extra white spaces

Whitespace-insensitive comparison

Compare only numbers

Extract and compare numbers only; adds an error bound and Order is not important

Case sensitive

Case-sensitive comparison

⚠️ “Allow varied delimiters” and the Tab delimiter are permanently on. Both checkboxes render ticked and disabled; you cannot turn them off, despite appearing to be choices.

Rubrics for subjective grading

The Subjective Grading Configuration table holds Criteria, each with Ratings carrying names, descriptions, and marks. Save the activity first, or you get “Please save the activity first”.

The buttons are + ADD, Cancel, Submit, and Clear Rubrics.


5.4 Lab Quizzes: Creation & Authoring

Create Activity ▾ → Quiz Activity. Enter a Title and a Description (instructions for students), choose the question file and settings below, then click Create Activity.

Quiz activity form

Important Difference: In-Book Quiz vs. Lab Quiz

In-book quiz (Multimedia Book, §4.3)

Lab quiz

Purpose

Self-paced practice with instant feedback

Graded assessment

When it is open

Whenever the chapter is visible

The parent lab’s Available From / Available Till

Resubmission

Per-question attempts

Allow students to resubmit until deadline

Marks and answers

Course-wide reveal settings (§2.7)

Per-quiz settings (below)

Grading

Automatic

Automatic, plus manual grading of subjective answers

Questions

Upload a .odt question file with Choose File; the format is documented in §10.5, and the Sample Question File button next to the picker downloads a working example. Prepare the file in LibreOffice Writer, or in Google Docs or Microsoft Word saved as .odt.

⚠️ Replacing a question file destroys student work. Uploading a new file over existing questions warns:

“Uploading a new question file will permanently delete all existing questions in this quiz activity. This will also delete all student responses and submissions for this activity.”

This is the most destructive action in the authoring interface. If a quiz is live, edit questions individually instead.

You can also build a quiz without any file and add questions by hand through Edit Questions, which supports Single Correct, Multiple Correct, Numerical, Fill Blanks, Descriptive/Paper, Text, and File Upload questions, plus Modules that group questions together.

Questions inside a module can only be edited from the Module Editor, not from the flat list.

To get there, open the quiz activity, click Edit, then Edit Questions. The Add Question/Module ▾ button at the top right adds a module or any of the seven question types. Each module header shows its question count and total marks, a drag grip for reordering, and edit and delete icons; click it to expand or collapse. Each question card shows its number, type, marks, negative marks, and text.

Lab quiz question editor with modules and questions

Type

Graded

Notes

Single Correct

Automatically

One correct option; positive and negative marks

Multiple Correct

Automatically

One or more correct options

Numerical

Automatically

A value, or a minimum–maximum range

Fill Blanks

Automatically

Per-blank marks and negative marks; several acceptable answers, comma-separated

Descriptive/Paper

Manually

Long-form or paper-based answers

Text

Manually

A short plain-text answer

File Upload

Manually

The student uploads a file (code, PDF, spreadsheet)

Settings

Setting

Effect on students

Allow students to see their marks on quiz submission

Marks visible, or replaced with -

Reveal correct answers to students

Answers shown after submission

Allow students to resubmit until deadline

Turns a one-shot submission into an editable one

The resubmission setting changes the submit dialog fundamentally. Off, students must type the word SUBMIT to confirm a final submission. On, they get a soft confirm and can keep editing.

Preview Quiz, next to Edit Questions, opens the student’s view of the quiz in a new tab.

The marks/resubmit combination is subtle. With resubmission on and marks on, marks stay hidden until the deadline passes, then appear. This is deliberate; it stops students from using marks as an answer oracle while resubmitting.

Required files

Set No. of Files and their names. Use any for no restriction. The count must match the names you list, and every name needs an extension, otherwise “‘helper’ is missing a file extension (e.g., helper.py)”.

Students cannot submit until they have attached the required number of files.


5.6 Inside a Lab: Activities, Editing, and Actions

Click a lab’s title to open it. The page shows the lab’s dates and Instructions, then the Activities card.

Lab page with the Edit and ⋮ buttons, Create Activity, and the activities table

Next to the lab title, the pencil icon edits the lab’s title, instructions, and dates. Its ⋮ menu offers:

  • Student View

  • Download all Programming Submission CSVs and Download Collated CSV

  • Export Lab

Inside a lab, the Activities card lists everything with per-row View Submissions, Edit, Delete, and a ⋮ menu offering Clone Activity and Export Activity (programming only). Delete is hidden unless you may delete content (§2.7).

Create Activity ▾ offers Programming Activity, Quiz Activity, and Import Activity.

Actions ▾ gives Recycle Bin, Submissions, and Leaderboard. Reorder needs at least two activities: drag, then Save Order.

Restoring Deleted Items from the Recycle Bin

Deleted labs and programming activities go to the Recycle Bin, from which you can Restore or Delete Permanently, individually or in bulk. Open it from the Recycle Bin icon on the labs list; the Labs / Recycle Bin breadcrumb takes you back.

Recycle Bin with the Actions menu and a deleted item

  • Each row shows the item’s Name and Type (Lab or Program), with a green Restore icon (“Restore Item?”) and a red Delete Permanently icon (“This action cannot be undone.”). A restored item returns to its original place with its student submissions intact.

  • Actions ▾ applies to the whole bin: Restore All and Delete All.

  • More than ten items are split into pages (Prev / Next).

  • With content protection on (§2.7), only the course creator sees the permanent-delete options.

⚠️ The Recycle Bin only protects Programming activities. Quiz activities are deleted permanently and immediately with no recovery. Check what you are deleting.

If a restore fails because the parent lab is itself in the bin, BodhiTree says “Cannot Restore Item”: restore the lab first.


5.7 Import and export

Exporting

Export on the labs list lets you tick individual labs, with an option to include submissions. Single-activity export is on the activity’s ⋮ menu (programming activities only).

A lab export carries both activity types: programming activities with their testcases and quiz activities with their question file. Activities in the Recycle Bin are excluded.

Importing

Import offers two modes — Import Single Lab and Import Multiple Labs — which expect different archive layouts, so pick the one matching how the archive was exported. Both take a .zip.

Despite the menu wording (“Import Programming Lab”), the import restores programming and quiz activities alike.

A lab arrives exactly as it was exported. Its dates, visibility, and per-activity publish states all come from the archive — they are not reset. Check and adjust them before students arrive; an imported lab can be visible immediately, with a deadline that has already passed.

Duplicate titles get (Copy), (Copy 2) suffixes rather than overwriting.

⚠️ A multi-lab import is not atomic. Labs are created one after another with no rollback: if one archive is malformed, the labs before it stay imported and the rest are never attempted.

The View sample archive structure link is not wired up yet — it reports “Sample archive structure documentation coming soon”.


5.8 Submissions Management & Student Evaluation

Overall Lab Submissions & Exporting Reports

Open a lab’s submissions from the Submissions icon on the labs list, or Actions ▾ → Submissions inside the lab. Summary cards at the top give the student and activity counts. Below them:

  • a search box (name, roll number, or email) that filters as you type

  • All Activities ▾: choose which activities appear as columns

  • View ▾: show or hide columns (Name, Email, Roll No, Updated On, Activities Submitted, and each activity’s marks)

  • Actions ▾: Download Selected Submissions (code and files for the ticked students) and Download as CSV (the whole lab’s marksheet)

Each row shows the student’s details, latest submission time, number of activities submitted, and per-activity marks (evaluation, manual, and rubric). Cells read Not Attempted or Not Submitted where there is nothing to grade.

Programming Submissions

Open a programming activity’s submissions from the View Submissions icon on its row. Summary cards count submissions, pending and finished evaluations, rubric grading, and invalid submissions. The toolbar adds:

  • Run ▾: evaluate pending submissions against Visible, Hidden, or All testcases

  • Force Run ▾: the same three choices, but re-evaluates submissions that were already evaluated. Use it after you change a testcase, a resource limit, or the reference solution

  • Filters ▾: submission status, evaluation status, rubric status, validity

  • View ▾: toggle columns, including one per testcase

  • More ▾: download as ZIP or CSV, and Bulk Submission

Submission statuses are Submitted, Compilation Error, Runtime Error, Time Limit Exceeded, and Not Uploaded.

Subjective Grading

Click Grade on a student’s row to get a split view: their code read-only on the left, with syntax highlighting, and the grading panel on the right.

  • Select Student ▾ (with ‹ › arrows) moves between students without going back to the table

  • Rubrics: apply ratings and comments per criterion

  • Manual Marks: overrides the automatic score — type the mark and click the green tick to save, for partial credit or a penalty

  • Run ▾ re-runs the student’s code against the testcases from this page; View ▾ shows each testcase’s status, output against expected output, and execution time

  • Comments: feedback the student reads with their evaluated submission

JTAs can grade here but cannot change the activity or its testcases.

Submitting on a student’s behalf

Bulk Submission (More ▾) lets you upload for students who could not. It is restricted to Instructors and Senior TAs; JTAs cannot do this.

Lab quiz submissions

Open a quiz activity’s Submissions. Cards show Total Students and Total Submissions (with a refresh button), next to a search box.

  • View ▾ toggles the optional columns: Roll No, Submitted On, and Graded On

  • Actions ▾: Download Marks (question-wise marks and totals as CSV) and Download All Files (every uploaded answer file, as .tar.gz)

Sort by Email, Name, Marks, Total Marks, or Submission Status (Submitted, Incomplete, Not Uploaded). Each row has Download Files (that student’s uploads), View Submission (opens their answer sheet in a new tab), and a trash icon that deletes the submission after a confirmation — for example to let a student retake an incomplete attempt.

Lab Quiz Individual Grading

View Submission opens the student’s answer sheet. Student ▾ at the top right switches between students and shows each one’s status.

  • Automatically graded questions (Single/Multiple Correct, Numerical, Fill Blanks) are already scored; Answer reveals the key and explanation.

  • For File Upload, Text, and Descriptive/Paper questions, click the green Grade button on the question. Enter Marks (out of the question’s total) and optional Remarks / Comments (up to 255 characters), then Save. The card then shows the scored marks, who graded it, and when.

  • The Questions navigator on the right marks attempted questions in green. Below it, the Manual Grading panel lists every manually graded question with its type, grader, date, status (Not Graded → graded), and marks.


Previous: 4. The Multimedia Book (MMB) · Next: 7. Grades and the Gradebook