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;


    1. Twitter
    2. Details
  2. Question: When you plan for the JavaScript variable names, the first character must be? 

    A
    Underscore

    B
    Comma

    C
    Hyphen

    D
    Letter


    1. Twitter
    2. Details
  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


    1. Twitter
    2. Details
  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);


    1. Twitter
    2. Details
  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” />


    1. Twitter
    2. Details
  6. Question: How do you make comment in JavaScript? 

    A
    //    comment

    B
    /*    comment    */

    C
    <!—comment -->

    D
    /*    comment


    1. Twitter
    2. Details
  7. Question: Placing the "break" at the end of every case within a switch statement is________? 

    A
    Compulsory

    B
    Optional

    C
    both


    1. Twitter
    2. Details
  8. Question: Which of the below is used in Java script to insert special characters? 

    A
    &

    B
    \

    C
    -

    D
    %


    1. Twitter
    2. Details