User Interface: Actionscript For Java Developers! Trivia Quiz

10 Questions | Total Attempts: 169

SettingsSettingsSettings
Please wait...
User Interface: Actionscript For Java Developers! Trivia Quiz

Welcome to the trivia quiz on the user interface: action script for java developers. If you clicked on this quiz, there is a high chance that you need some help when it comes to this application and worries, not as the quiz below will infuse you with enough knowledge to start you on the rejuvenation journey. Do give it a try and try others like it!


Questions and Answers
  • 1. 
    In the following code sample, what is the underlined part of the code commonly referred to as? (choose one) contact.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler0);
    • A. 

      Target event

    • B. 

      Event class

    • C. 

      Symbol name

    • D. 

      Named function

  • 2. 
    The following code is doing what? (Choose one) about.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2); function mouseDownHandler2(event:MouseEvent):void { gotoAndStop("about"); }
    • A. 

      When a user clicks a button the animation opens a URL

    • B. 

      When a user clicks a button the animation advances to the frame labeled ‘about’

    • C. 

      When a user clicks a button the animation advances to the frame 2

    • D. 

      When a user clicks a button the animation advances to a scene named ‘about’

  • 3. 
    Event listeners contain two parameters: the listener parameter and the type parameter. The type parameter specifies the type of event. In the code sample below, what part of the code is the type parameter? (choose one) function myFunction(e:MouseEvent):void { } ep_btn.addEventListener(MouseEvent.MOUSE_OVER, myFunction)
    • A. 

      E:MouseEvent

    • B. 

      AddEventListener

    • C. 

      MouseEvent.MOUSE_OVER

    • D. 

      :void

  • 4. 
    There are two ways to define a function in ActionScript 3.0: you can use a function statement or a function expression. As a general rule, use a function statement. Which statement below best explains why this is true? (Choose one)
    • A. 

      Expression statements are anonymous, and easier to re-use in the code, which leads to a more elegant coding style.

    • B. 

      Function statements are less verbose, and they provide a more consistent experience between strict mode and standard mode than function expressions.

    • C. 

      Function expressions are less verbose, and they provide a more consistent experience between strict mode and standard mode than functions statements.

    • D. 

      Function statements only work with strict mode turned on, which develops good coding practice.

  • 5. 
    Event listeners contain two parameters: the listener parameter and the type parameter. The listener parameter specifies the listener function that will execute when the event occurs. The listener parameter can be a reference to either a function or a class method. In the code sample below, what is the listener parameter? (Choose one)function myFunction(event:MouseEvent):void { }ep_btn.addEventListener(MouseEvent.MOUSE_CLICK, myFunction)
    • A. 

      The first instance of myFunction

    • B. 

      The second instance of myFunction

    • C. 

      The first instance of MouseEvent

    • D. 

      The second instance of MouseEvent

    • E. 

      None of the above

  • 6. 
    How do you add an object to the Display List? (choose two)
    • A. 

      By dragging it onto the stage

    • B. 

      By adding it the library

    • C. 

      By importing it to stage

    • D. 

      By opening an external library

  • 7. 
    The name of the event is defined by the constant associated with the event class. In the code sample below, choose the constant. (choose one)function functionName(event:MouseEvent):void {}next.addEventListener(MouseEvent.MOUSE_DOWN, functionName)
    • A. 

      Next

    • B. 

      AddEventListener

    • C. 

      MouseEvent

    • D. 

      MOUSE_DOWN

    • E. 

      None of the above

  • 8. 
    The piece of code  for a typical button action requires which of the following three pieces? (choose three)
    • A. 

      Defined Function

    • B. 

      Variables

    • C. 

      Instance Name

    • D. 

      Event Listener

    • E. 

      Data Type

  • 9. 
    An event listener is essentially: (Choose one)
    • A. 

      A function

    • B. 

      An event object

    • C. 

      A target node

    • D. 

      A method

    • E. 

      None of the above

  • 10. 
    The event flow consists of the following three concepts (Choose one):
    • A. 

      Function, listener, event object

    • B. 

      Function, method, property

    • C. 

      Event, event object, target event

    • D. 

      Capture, target, bubble

    • E. 

      Stage, parent, movieclip