Step 1: The sentencing powers of magistrates are laid down in Section 29 of the Code of Criminal Procedure (CrPC).
Step 2: A Chief Judicial Magistrate can pass any sentence except death, life imprisonment, or imprisonment beyond 7 years.
Step 3: A Judicial Magistrate of the First Class (Class I) can impose imprisonment up to 3 years and a fine up to Rs. 5000. This matches option b.
Step 4: A Judicial Magistrate of the Second Class can give up to 1 year of imprisonment and a fine up to Rs. 1000. The other combinations (5 years or Rs. 3000) do not match the Class I limits, so the answer is 3 years and Rs. 5000.