IAM Robotics interview question

1. When do you use struct and when a class? 2. In what situation can a machine learning algorithm be bad. 3. Describe a situation when you hit a bottleneck and how you dealt with it.