1. Question: Which of the following method is used to evaluate a string of Java Script code in the context of the specified object?

    A
    Eval

    B
    ParseDoule

    C
    ParseObject

    D
    Efloat

    Note: Not available
    1. Report
  2. Question: Which of the following is used to capture all click events in a window?

    A
    window.captureEvents(Event.CLICK);

    B
    window.routeEvents(Event.CLICK );

    C
    window.handleEvents (Event.CLICK);

    D
    window.raiseEvents(Event.CLICK );

    Note: Not available
    1. Report
  3. Question: JavaScript is an object oriented language?

    A
    True

    B
    False

    Note: Not available
    1. Report
  4. Question: C-style block-level scoping is not supported in Java script

    A
    False

    B
    True

    Note: Not available
    1. Report
  5. Question: Which of the below is used in Java script to insert special characters?

    A
    &

    B
    \

    C
    -

    D
    %

    Note: Not available
    1. Report
  6. Question: Which is the correct way to write a JavaScript array?

    A
    var txt = new Array(1:"arr",2:"kim",3:"jim")

    B
    var txt = new Array:1=(" arr ")2=("kim")3=("jim")

    C
    var txt = new Array("arr ","kim","jim")

    D
    var txt = new Array=" arr ","kim","jim"

    Note: Not available
    1. Report
  7. Question: If a boolean variable is like var alive=”0”; Then what is the appropriate answer

    A
    alive is false

    B
    alive is true

    C
    alive is overflow

    D
    the statement is not valid

    Note: Not available
    1. Report
  8. Question: What will be the output of the following code?
    var a=20;
    if(a>5 || <5)
     document.write("true");
    else
     document.write("false");

    A
    True

    B
    False

    C
    No output

    Note: Not available
    1. Report
  9. Question: Which of the following variable names is/are valid? Choose multiple correct options if has.

    A
    test_1

    B
    test 1

    C
    $test1

    D
    test/1

    E
    5test

    Note: Not available
    1. Report
  10. Question: What will be output of the following code?
    var a=30*5+7;
    document.write(a);

    A
    360

    B
    157

    C
    3057

    D
    1507

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