Step 1 :Given that the total number of students is 68 and the number of students who got a B is 21.
Step 2 :The probability of a student getting a B is calculated by dividing the number of students who got a B by the total number of students.
Step 3 :Substituting the given values, we get \(\frac{21}{68} = 0.3088235294117647\).
Step 4 :Rounding off to four decimal places, we get 0.3088.
Step 5 :\(\boxed{0.3088}\) is the final answer.