Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →
A colleague sent you $30 off Fiveable. Get the annual plan for $99 →

💻ap computer science a review

Modulo Operator (%) in AP Computer Science A

Written by the Fiveable Content Team
Verified for the 2027 exam
Verified for the 2027 exam•Written by the Fiveable Content Team

Definition

The modulo operator (%) is used in programming to find the remainder when one number is divided by another. It takes a dividend and a divisor, and returns the remainder after performing division.

AP course connection

Topic 4.12: 4.12 Traversing 2D Arrays

Unit 4

"Modulo Operator (%)" also found in: