Switching from autonomous to driver control mode

Our school has just started a team to compete in Starstuck. I am somewhat familiar with RobotC (I have one year in teaching PLTW POE) in both autonomous and driver control mode, but I am not an expert at coding. So, I have a few questions.

I am assuming one file with both types of code is loaded onto the cortex. Does anyone have a template they’d be willing to share from an old event or something that would show me how the two types of code are laid out in one program? When starting in autonomous mode, is the team allowed to hit a bump switch or something to start? How does the actual switch from autonomous mode to driver control occur in competition?

Thank you!