How Do You Know When Pasta Is Done?

Should pasta be hard or soft?

.

Does pasta float when it’s done?

Is undercooked pasta hard?

How long does it take to cook pasta?