Skip to main content
Logo image

PreTeXt Sample Book: Abstract Algebra (SAMPLE ONLY)

Section 3.7 Deeper

This is a stub of a <section>, but it contains two <subsection> which each contain a PROJECT-LIKE item that includes a <program> element, and thus is a coding exercise. This tests migration to the Runestone assignment area, though Runestone only has divisions two-deep (“chapter” and “subchapter”, so both will show up associated with the same <section>—this one.
The first is a start of a C program, so will only be interactive on a Runestone server. The second is a Python program, so will be interactive in all HTML outputs.

Subsection 3.7.1 Subsection One

An <activity> next. This one has a <program> so will be made interactive whenever possible.

Activity 3.7.1. Activity in a Subsection.

We would suggest you do something here.
#include <stdio.h>

int main(void)
Nothing suggests this next <project> is interactive.

Project 3.7.2. Project in a Subsection.

You would work this project on paper, most likely. It is never interactive since there is no indication of a desire for that, even if hosted on a capable platform.
A little bit of markup, to test a bug: \(x^2\text{.}\) (The bug was only apparent under a deprecated method for specify a question to be an interactive short-answer question on Runestone Academy.)

Subsection 3.7.2 Subsection Two

An <exploration> next.

Exploration 3.7.3. Exploration in a Subsection.

We would suggest now that you explore something here. In this case we simply provide a CodeLens, which would be graded as an “interaction”.
The next simple <exercise> will be a “short answer” question on a capable interactive platform since we have included a <response> element.

Checkpoint 3.7.1. Inline Exercise in a Subsection.

I am an interactive short answer question, but only on a capable platform.