Under what circumstances may an officer justifiably frisk a subject for weapons?

a) When the subject consents to the frisk.
b) When the officer has reasonable, articulable facts that the subject is armed.
c) When the officer's agency dictates they do so by policy.
d) When the officer has reasonable, articulable facts that the subject is armed and presents a danger to the officer or others.