AP CSP 1.4 Exercise 2: Boundary Patrol

Big Idea 1 · Topic 1.4 · Exercise 2

Boundary Patrol

25 minutes - 4 patrols - LO CRD-2.J

Back to the Topic 1.4 lessonAll CSP topics

How this page works

The writing boxes below are yours. What you type stays in this browser, is saved here as you go, and is never sent to us or to your teacher. Hand the written work in the way your teacher asked for it.

The graded check at the bottom is the part that records to your teacher's gradebook.

The cases, from your handoutNot recorded

The same cases as your handout, in the same order.

Scenario 1 · Foundational

A gradebook accepts quiz scores as whole numbers from 0 to 100 and prints a letter grade. The developer tested 85, 92, and 74 - all three produced correct grades - and wants to ship this afternoon.

Extremes named (the minimum and maximum the requirements define, and what is measured):

Test set + expected outcome for each input (at and just beyond the extremes):

Enrichment - the subtler second boundary this scenario hides:

Scenario 2 · Core

A review site lets users rate films from 1 to 5 stars, and the average rating shows on every film's page. The rating box is free-type - users can enter any number. The lead developer says the star range 'is obvious, so nobody will type anything else.'

Extremes named (the minimum and maximum the requirements define, and what is measured):

Test set + expected outcome for each input (at and just beyond the extremes):

Enrichment - the subtler second boundary this scenario hides:

Scenario 3 · Core

A sign-up page requires passwords of 8 to 16 characters. The intern tested 'sunshine12' - ten characters, accepted, works - and marked the story done.

Extremes named (the minimum and maximum the requirements define, and what is measured):

Test set + expected outcome for each input (at and just beyond the extremes):

Enrichment - the subtler second boundary this scenario hides:

Scenario 4 · Challenge

A wellness app logs nightly sleep in whole minutes, from 0 to 1440 (a full day). It stores each night AND a running lifetime total in the same size of numeric storage, and a school pilot will run it for a full semester. The developer tested 420 and 480 minutes - a good night's sleep either way - and both worked.

Extremes named (the minimum and maximum the requirements define, and what is measured):

Test set + expected outcome for each input (at and just beyond the extremes):

Enrichment - the subtler second boundary this scenario hides:

No graded check on this page yetNot recorded

About the line in your handout

Your handout says this exercise is available online and auto-graded. The exercise IS here, and it is the same work in the same order, but the auto-graded half is not written for this topic yet. Nothing on this page is scored or sent to your teacher.

Hand this in the way your teacher asked for it. Topic 1.1 has its graded check today, and the rest follow.

Get in Touch

Whether you're a student, parent, or teacher — I'd love to hear from you.

Just want free AP CS resources?

Enter your email below and check the subscribe box — no message needed. Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.

Typically responds within 24 hours

Message Sent!

Thanks for reaching out. I'll get back to you within 24 hours.

🏫 Welcome, fellow educator!

I offer curriculum resources, practice materials, and study guides designed for AP CS teachers. Let me know what you're looking for — whether it's classroom materials, a guest speaker, or Teachers Pay Teachers resources.

Email

[email protected]

📚

Courses

AP CSA, CSP, & Cybersecurity

Response Time

Within 24 hours

Prefer email? Reach me directly at [email protected]