Which type of glucose testing is often used to diagnose diabetes?

A) Random plasma glucose test
B) Fasting plasma glucose test
C) Oral glucose tolerance test
D) Hemoglobin A1c test