I've been a little slow to respond a few times this week, as JR beat me to this one. (Actually, "a little slow" is a huge understatement when one is slower than JR and Dan

)
Anyway, JR nailed it. If the ball was already in the basket, then it's BI to touch the rim. Otherwise, touching the rim is nothing. In order to be BI, you have to touch the
ball while it's in the cylinder.
The reason I remember that so well is that I missed it on my IAABO test when I first became a ref. For some reason, it's stuck with me. And by the way, that same question continues to come up about every other year on the test, it seems.