For the moped, you can take a theory exam from 15.5 years so that you can go straight for the practice at the age of 16.
For the car, you can take a theory exam from the age of 16.5 so that you can immediately go for the practical exam when you are 17. You can take lessons from the age of 16.5.