1. Question: Given the following code snippet: public class Student { public function Student () { trace("Student variable created"); } public function hello () : String { return "Hello World"; } } ------------------------------------------------------- public function helloWorld () : String { var student1 : Student; return student1.hello (); } What will the function helloWorld() return?

    A
    Hello World

    B
    Blank string

    C
    Program execution ends with a Runtime error

    D
    Compilation error

    Note: Not available
    1. Report
  2. Question: Which of the following types of variables can be accessed without creating an instance of a class?

    A
    Constant

    B
    Final

    C
    Static

    D
    Global

    Note: Not available
    1. Report
  3. Question: Which of these is not a valid access modifier?

    A
    Private

    B
    Protected

    C
    Internal

    D
    All of these valid.

    Note: Not available
    1. Report
  4. Question: When ActionScript can immediately judge an operation to be in violation of a security rule, the __________ exception is thrown, and if, after waiting for some asynchronous task to complete, ActionScript deems an operation in violation of a security rule, the __________ event is dispatched.

    A
    Security, SecurityErrorEvent.SECURITY_ERROR

    B
    SecurityError, SecurityErrorEvent.ERROR

    C
    SecurityError, SecurityErrorEvent.SECURITY_ERROR

    D
    Security, SecurityErrorEvent.ERROR

    Note: Not available
    1. Report
  5. Question: Which of the following is not a phase in the event propagation lifecycle?

    A
    Targeting

    B
    Bubbling

    C
    Cancelling

    D
    Capturing

    Note: Not available
    1. Report
  6. Question: What will be the output of the following code snippet? try { try { trace("<< try >>"); throw new ArgumentError ("throw this error"); } catch(error : ArgumentError) { trace("<< catch >> " + error); trace("<< throw >>"); throw error; } catch(error:Error) { trace ("<< Error >> " + error); } } catch (error:ArgumentError) { trace ("<< catch >> " + error); }

    A
    << try >> << catch >> ArgumentError: throw this error << throw >> << Error >> ArgumentError: throw this error << catch >> ArgumentError: throw this error

    B
    << try >> << catch >> ArgumentError: throw this error << throw >>

    C
    << try >> << catch >> ArgumentError: throw this error << throw >> << catch >> ArgumentError: throw this error

    D
    Compilation error: Nesting or try catch block not permitted

    Note: Not available
    1. Report
  7. Question: E4X in Action script is used to:

    A
    manipulate complex numeric data.

    B
    manipulate String data.

    C
    manipulate string and numeric data.

    D
    manipulate XML data.

    Note: Not available
    1. Report
  8. Question: What will be the output of the following trace statement? trace ("output: " + 10 > 20);

    A
    output: true

    B
    output: false

    C
    true

    D
    false

    Note: Not available
    1. Report
  9. Question: What will be the output of the following trace statement? trace(myXML..employee.*.@*);

    A
    An XMLList that includes every attribute defined on the employee tag, its parent and all descendants

    B
    An XMLList that includes every attribute defined on the employee's parent tag and all descendant tags

    C
    An XMLList that includes every attribute defined on the employee tag's descendants but not on the employee tag

    D
    An XMLList that includes every attribute defined on the employee tag and all its descendants

    Note: Not available
    1. Report
  10. Question: The default values of String and int type variables are:

    A
    null and 0 respectively.

    B
    "" and NaN respectively.

    C
    null and Nan respectively.

    D
    "" and 0 respectively.

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd