AS Quiz #15 (Hardest Quiz Yet)

This is probably the hardest quiz yet. After yesterdays very easy quiz I figured I’d do something really trickey… binary is always a good way to make a quiz hard… so most of the questions are about binary operators and ByteArray… there is also one question about Bezier math.

Number of Questions : 7
Difficulty : Hard
Topic : Binary and Bezier

Which random sequence would you associate the below snippet with?

for (var i:int = 0; i<4; i++){
  trace(int(Math.random()*2) - 1 | 1);

Which of the below sequences would you associate with the following snippet?

for (var i:int = 0; i<10; i++){
  trace(i & 2);
You may want to work this out on paper

A quadratic B├ęzier curve is the path traced by the function B(t), given points P0, P1 and P2.

The above is from wikipedia.

Which of the below lines of actionscript accurately represents the B(t) function? Hint: Try working it out yourself and then choosing the answer that is closest to your own. You can use this template over at wonderfl to help you work it out:

What is the length of the following ByteArray?

var bytes:ByteArray = new ByteArray();

What is the length of the following ByteArray?

var bytes:ByteArray = new ByteArray();

How many bytes does it take to represent a short in a ByteArray?

What will the following snippet trace to the output window?

var bytes:ByteArray = new ByteArray();
bytes[0] = 0;
bytes[1] = 0;
bytes[2] = 1;
bytes[3] = 1;

bytes.position = 0


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


  1. Posted February 3, 2010 at 1:32 am | Permalink

    Nope, easiest yet :P.

    I’ve scored about 86% total on all the quizzes you’ve posted till date. I have had a strange experience with the radio buttons though. When I clicked results in some of these quizzes, it’d show me a different selection marked in the results then what I selected during the quiz.

    Anyway, good work, keep em coming.

  2. Rishabh Govindraj
    Posted February 3, 2010 at 5:04 am | Permalink

    “You scored 2 out of 7. (28.57 %)”
    hardest one yet
    no comment otherwise

  3. Posted February 3, 2010 at 9:23 am | Permalink

    @mohammad …. i noticed that once or twice too… its hard to find a good wp quiz plugin… and I’m a bit too lazy to write on myself (all though I may end up doing that).

Post a Comment

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