AS Quiz #1

This is the first in a hopefully long series of short ActionScript Quizzes I’ll be writing. This is just 6 simple questions… check it out….

Number of Questions : 6
Difficulty : Easy
Topic : General


Which of the following classes is dynamic?





If you would like to prevent a method of a superclass from being overridden, which of the following would you use?






Which of the following is not a property of the Sprite class?
Don't disregard inherited properties.







The stage property of a DisplayObject is null if...





What is the return value type of the getChildAt() method?





What is the variable type of an Event object's target or currentTarget property?







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

16 Comments

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

    You scored 6 out of 6. (100.00 %)

    I had to guess #6, figured it could be IEventDispatcher, for example (”non of the above”) but for some reason Object seemed more like what Adobe would do.

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

    it’s useful that they left it dynamic for one liners like:

    evt.currentTarget.alpha = 0.5

    but as soon as you need to do more with it, you end up casting:

    var sp:Sprite = Sprite(evt.currentTarget);
    sp.alpha = 0.5;
    sp.rotation = 45;

    … its a tad annoying but I eventually got used to it… always takes my students a bit to get their heads wrapped around this, and the idea of casting in general…

  3. Posted January 11, 2010 at 1:03 pm | Permalink

    You scored 6 out of 6. (100.00 %)

    I too guessed at #6. It could have easily been untyped (*).

  4. Posted January 11, 2010 at 1:15 pm | Permalink

    Seeing those 100% marks makes me want to write a really difficult quiz :D

    I have a few trickier/intermediate level questions in the pipeline… but I may do something super hard in the next few days ;) just for fun

  5. Posted January 12, 2010 at 1:26 am | Permalink

    100% !!
    But, I not agree when you said that the first question is easy.
    Dynamic property is not an easy conception for beginners.

    Are we certified now ? :p

  6. rishabh govindraj
    Posted January 12, 2010 at 2:52 am | Permalink

    “You scored 6 out of 6. (100.00 %)”
    the 6th one was kind of tough
    i was about to press untyped when i remember i had to type cast for some custom classes events
    and in the end i chose object

  7. Posted January 12, 2010 at 3:04 am | Permalink

    100% too :)
    Waiting for Intermediate Quizz :D

  8. Posted January 12, 2010 at 4:29 am | Permalink

    You scored 6 out of 6. (100.00 %)
    Too
    :p
    Thanks for this Quiz. I wonder what will be in the next quiz

  9. Posted January 12, 2010 at 9:08 am | Permalink

    Great way to refine a few concepts! Cheers!!

  10. NINJA
    Posted January 12, 2010 at 11:23 pm | Permalink

    You scored 5 out of 6. (83.33 %)

    #6 got me.

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

    It seems i hadn’t a clue about “final”…

  12. Posted January 14, 2010 at 2:20 am | Permalink

    I got 5/6 and guessed number 6 as untyped which it could perhaps be. Cool test!

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

    You have Completed AS Quiz AS Quiz # 1

    You scored 6 out of 6. (100.00 %)

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

    5/6 - i missed the last one

  15. Posted April 1, 2010 at 8:26 am | Permalink

    Thank you for writing these Zevan. I hope they will help me in my adventure of mastering AS3.
    And I must tell you your big blue book is one of my favorites, it has helped me not only understand AS3 but to get over my math-fear.
    many thanks - jh
    ps key-word = KrTheremin

  16. Posted April 2, 2010 at 1:21 pm | Permalink

    @John Hoge Glad you like them… good luck learning AS3 it’s a fun langauage. Thanks for the complements on the book and nice to know that my dad possibly had a hand in you finding your way to actionsnippet :D

Post a Comment

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

*
*