OTUxZTU0OTExMzIzYWYxYWJhOTU3M2JhMzhkMWVmNTViOTRlYzUyYmQ2OGU3MDQ1NTA5MTViNTc0MmIyNzI3OQ.mu8c48li.eyJ1cmwiOiIvcGwvY291cnNlX2luc3RhbmNlLzEvaW5zdGFuY2VfcXVlc3Rpb24vNjUvIiwiYXV0aG5fdXNlcl9pZCI6IjEifQ
Skip to main content Accessibility guide
PrairieLearn Go home
  • XC 101, SectionA
  • Assessments
  • Gradebook
  • C2
Load from disk
  • Dev User student
    View type
    ✓ Staff view staff ✓ Student view student ✓ Student view without access restrictions student
    Effective user
    Customize…
    Course Requests Settings Log out

Regenerate assessment instance

Warning: Regenerating the assessment instance will select a new set of questions from this assessment. Any progress on the current assessment instance will be lost.

Are you sure you want to regenerate the assessment instance?

Course staff: Regenerate your assessment instance to pick up changes to the assessment or to get a fresh set of questions.

C2.9. Autograder demo: Quitting grading early

Because the Python autograder runs test cases in sequential order, we provide the capability to stop grading early, e.g. if there is some later test case that depends on the successful result of an earlier one. This can be done implicitly in most checks by passing accuracy_critical=True, or by specifically calling feedback.finish().

For some number $x$ given as the variable x, compute $y=x^2$ and store this as y.

Finally, compute $z=\sqrt{y+1}$ and save this as z.

The setup code gives the following variables:

Name Type Description
x floating point number $x$

Your code snippet should define the following variables:

Name Type Description
y floating point number $y=x^2$
z floating point number $z=\sqrt{y+1}$
user_code.py
Editor Settings

Correct answer

Collection 2

Assessment overview
Total points: 0/68
Score:
0%

Question C2.9

Value: 1
Total points: — /5
Auto-graded question

This form is only for reporting errors in the question itself. Do not use this form if you just don't know how to answer the question.

Previous question Next question

 Personal Notes

No attached notes

Attached files will be saved here for your reference. These files act as personal notes and can be used for your own review purposes. They are not used for grading.

Max file size: 10 MB

Attached personal notes will be saved here for your reference. These notes can be used for your own review purposes. They are not used for grading.

Staff information

Student details

Dev User
dev@example.com

Question

QID:
demo/autograder/python/earlyExit
Title:
Autograder demo: Quitting grading early

Variant

Started at:
2026-09-19 06:59:22 (CDT)
Duration:
0s
Show/Hide answer
{}

Assessment instance

Assessment:
demo/externalGrading
Started at:
2026-09-18 22:13:44 (CDT)
Duration:
0s
View log
This box is not visible to students.