A library gives every book a 3-digit shelf code. To be valid, a code must be divisible by both 8 and 12, but it must not be divisible by 9.
Which of the following is a valid shelf code?
Confirming your payment
Competency-Based Questions (CBQ) · Question 1 of 87
A library gives every book a 3-digit shelf code. To be valid, a code must be divisible by both 8 and 12, but it must not be divisible by 9.
Which of the following is a valid shelf code?
(A) 216
(B) 240
(C) 250
(D) 288
Option (B) is correct.
Explanation: This needs two separate tests, so check them one at a time.

Step 1 — divisible by both 8 and 12.
A number divisible by both 8 and 12 must be a multiple of their LCM:
Checking each option: ✓, ✓, is not a multiple of 24 ✗, ✓.
So 250 is out straight away.
Step 2 — must NOT be divisible by 9.
Use the digit-sum test:
Only 240 passes both tests.
216 and 288 are the traps — they clear the first test and fail the second. Always apply every condition in the question, not just the first one.