In the two-cup one-item task, subjects are shown a food item, which is then hidden inside one of two cups. Several species spontaneously select the baited cup above chance levels if shown that the other cup is empty. Although this response may indicate inference by exclusion (if not A, then B), another possibility is that subjects simply avoid choosing the empty cup, not because they expect the food to be in the other cup but because they have seen that cup to be empty. I tested whether this hypothesis explains great apes' responses in a three-cup one-item task. Subjects saw three opaque cups on a platform, with two of them located behind a barrier during baiting. After baiting one of the cups behind the barrier, I revealed the identity of the empty cup that had been located behind the barrier (Experiment 1) or revealed the contents of the center cup (baited in half of the trials), but always removed it before the subjects' choice (Experiment 2). In Experiment 1, subjects preferentially selected the baited cup even though one of the other two cups had not been shown to be empty. In Experiment 2, subjects' preference for the cup that had been located behind the barrier during baiting was modulated by the contents of the removed cup. These results suggest that expectations about the food's location, not just the sight of the empty cup, as postulated by the "avoid the empty cup" hypothesis, determine apes' responses in the three-cup one-item task.