1. Question: You define an array using-

    A
    var myarray = new Array();

    B
    var myarray = array new;

    C
    var new Array() = myarray;

    D
    var new array = myarray;

    Note: Not available
    1. Report
  2. Question: When you plan for the JavaScript variable names, the first character must be?

    A
    Underscore

    B
    Comma

    C
    Hyphen

    D
    Letter

    Note: Not available
    1. Report
  3. Question: Which of the following is the correct syntex of defining a variable?

    A
    var a_variable=10;

    B
    var 0a_variable=10

    C
    a_variable=10

    D
    var #a_variable=10

    Note: Not available
    1. Report
  4. Question: Which of the follownig is the correct method to open a new window?

    A
    popUp(PageURL,WindowName,settings);

    B
    window.launch(PageURL,WindowName,settings).

    C
    window.exec(PageURL,WindowName,settings);

    D
    window.open(PageURL,WindowName,settings);

    Note: Not available
    1. Report
  5. Question: What is the correct syntax for referring to an external script called "file.js"?

    A
    <script name="file.js" type=”text/javascript”></script>

    B
    <script href="file.js" type=”text/javascript” />

    C
    <script src="file.js" type=”text/javascript”></script>

    D
    <link src="file.js" type=”text/javascript” />

    Note: Not available
    1. Report
  6. Question: How do you make comment in JavaScript?

    A
    //    comment

    B
    /*    comment    */

    C
    <!—comment -->

    D
    /*    comment

    Note: Not available
    1. Report
  7. Question: Placing the "break" at the end of every case within a switch statement is________?

    A
    Compulsory

    B
    Optional

    C
    both

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

    A
    &

    B
    \

    C
    -

    D
    %

    Note: Not available
    1. Report
  9. Question: What is this keyword in JavaScript?

    A
    The this keyword is just an operator.

    B
    The this keyword is a reference variable that refers to the current object

    C
    The this keyword is a reference variable that refers to the any object

    D
    None

    Note: Not available
    1. Report
  10. Question: What is the correct syntax of creating JavaScript cookie?

    A
    cookie="name=value;[expires];[path];[domain];[secure]"

    B
    document.cookie="name=value;[expires];[path];[domain];[secure]"

    C
    window.cookie="name=value;[expires];[path];[domain];[secure]"

    D
    document.cookie="name=value;[path];[expires];[domain];[secure]"

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