When does a peace officer have the right to inspect the premises without a warrant?

a. when they deem necessary
b. when they are in uniform
c. a and b
d. they can’t inspect unless they have a warrant