Many states the courses are free, some you have to pay for, so you'd have to check the website or call them for info about that.
But NO, you don't take the beginners then go right to the advanced..especially if you're a new rider!!! There's no way you'd pass the advanced course a week or 2 after you just completed the advanced course. You need time to practice your skills and learn on your bike. The advanced course is taken on your own motorcycle, unlike the beginners course.