AS Quiz # 2

People seemed to do pretty well on yesterday’s quiz. I have lots of questions written that fall into that same category of being somewhere between beginner and intermediate level. I decided to write a trickier quiz for today. Tomorrow I’ll alternate back to some easier questions. This quiz is really more about operators and hex numbers than ActionScript…

Number of Questions : 5
Difficulty : Medium
Topic : Operators and Hexadecimal

Assuming that we're using hexadecimal to represent colors (as in the case of beginFill() or lineStyle())...
Which of the following hexadecimal numbers has the highest value in its green channel?





Which answer best describes the following operators:
& | ! % ===






Which of the following would correctly unpack the red channel from a hexadecimal color.





Which of the following operators would you most likely use for integer multiplication?






Which of the below is equivalent to the following expression?

110 % 3







This entry was posted in Quiz and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

14 Comments

  1. Posted January 12, 2010 at 11:02 am | Permalink

    Haha, 100%, guessed the last one though! Thought 110 was 6 written as binary.

  2. Posted January 12, 2010 at 11:10 am | Permalink

    ha… I would have mentioned if it were binary :)… or done parseInt(”110″, 2)

  3. Posted January 12, 2010 at 1:13 pm | Permalink

    You scored 5 out of 5. (100.00 %)

    I hesitated on the question about integer multiplication because you would use >> or >>= to multiply by 1/2, 1/4, …

    These are fun!

  4. Posted January 12, 2010 at 1:32 pm | Permalink

    I agree, those are great. Keep ‘em coming!

  5. Posted January 12, 2010 at 1:44 pm | Permalink

    these quizzes are a good idea! more quiz posts please.

  6. Posted January 12, 2010 at 3:51 pm | Permalink

    You scored 5 out of 5. (100.00 %)

    cool quizz :)

  7. Posted January 12, 2010 at 5:59 pm | Permalink

    Thanks for feedback.. glad people are digging the quizzes. There’s another one in the pipeline for tomorrow :)

    @Jackson … yeah I thought about that as well… thus the use of the term integer…
    …figured it would be good to use the phrasing: “would you most likely use for integer multiplication”… was thinking specifically about the old (* 2) = (<< 1) … (*4) = (<< 2) etc…

  8. NINJA
    Posted January 12, 2010 at 11:28 pm | Permalink

    You scored 4 out of 5. (80.00 %)

    whats with me getting the last one wrong all the time.

    Zevan Stop rigging the last question!

    hahha

  9. Posted January 13, 2010 at 2:10 am | Permalink

    Very nice series, please continue posting questions like these.

  10. Posted January 13, 2010 at 4:02 am | Permalink

    In fact I was always annoyed by the fact that I can pass the quiz/test and not be able to solve the real problem… haha, here it comes:

    Discrete the colour (given as 0xRRGGBB) so that each of the RGB values is “rounded up” to variable 1-16 bit(s) precision.

    In one line preferably ;-) Go figure!

  11. rishabh govindraj
    Posted January 13, 2010 at 4:28 am | Permalink

    “You scored 5 out of 5. (100.00 %)”
    this one was a bit tougher
    i actually had to get out a pen and paper for the 110 % 3

  12. Posted January 15, 2010 at 2:18 am | Permalink

    I knew nothing of questions 3 - 5 but stil managed to get 4/5/ These tests are very fun. Keep it up!!!

  13. Posted January 16, 2010 at 11:36 pm | Permalink

    Number of Questions : 5
    Difficulty : Medium
    Topic : Operators and Hexadecimal

    You have Completed AS Quiz AS Quiz # 2

    You scored 5 out of 5. (100.00 %)

  14. jared
    Posted February 9, 2010 at 10:37 pm | Permalink

    4/5 i missed the hex conversion for red. i still don’t understand that math.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*