Activetuts+ Quiz #2: I Hope You Like Math
It’s time for another quiz! This time, it’s on everybody’s favorite subject: math. The topics covered are incredibly important for game development, and even more so if you know them well enough to answer off the top of your head.
Obligatory Futurama Clip
Let’s Get Quizzy
Having trouble? Check out our You Do The Math session.
Just So You Know…
This quiz was built with the jQuizzy Quiz Engine by Siddharth, ace reviewer for Envato. jQuizzy is available for purchase over on Codecanyon
Thanks also to Orman Clark and MediaLoot for their graphical contributions to the Activetuts+ Coffee Break Quizzes.
Got Something You’d Like To Be Tested On?
If you’ve got an idea for an Activetuts+-related quiz subject, let us know in the comments!
View full post on Activetuts+


Haha. I spent, like, 15 minutes rewriting that question because I kept getting it wrong. And.. yeah, I think you’re correct, I still didn’t get it right! I’ve changed it now, thanks for pointing it out
Actually, random() can not return a full 1. According to the AS3 docs: “[random()] Returns a pseudo-random number n, where 0 <= n < 1."
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Math.html#random%28%29
I have a doubt in question 9: if the ball was thrown upwards at 3px/frame and Y points down, ball.ySpeed should be -3. Since gravity acts downwards, it has the same direction as Y, so it should be: ball.ySpeed += gravity. And only then: ball.y += ball.ySpeed.
I think there's an error in question 9's answer
Yep, same one. I never said we were using a specific language
But I’ve changed the wording of the question to make that a bit clearer.
In the previous question we assumed that random() would return at least 0 but less than 1. I suppose this was the same random() function
Q no. 6 is wrong – the supposedly correct answer forces me to quote Spinal Tap:
“This one goes to eleven”.
random() can return a full 1. Times 10 and then floored, it’s still 10. + 1, voila = 11!