1. Question: Which of the following browsers support the sort() method for arrays? (Check all that apply.)

    A
    Netscape Navigator 2.0

    B
    Netscape Navigator 3.0

    C
    Netscape Navigator 4.0

    D
    Microsoft Internet Explorer 3.0

    E
    Microsoft Internet Explorer 4.0

    Note: Not available
    1. Report
  2. Question: What is the correct way to write a one dimensional JavaScript array?

    A
    var txt = new Array(1:"tim",2:"shaq",3:"kobe")

    B
    var txt = new Array="tim","shaq","kobe"

    C
    var txt = new Array("tim","shaq","kobe")

    D
    var txt=["tim","shaq","kobe"]

    E
    var txt = new Array() txt[0]="tim" txt[1]="shaq" txt[2]="kobe"

    Note: None
    1. Report
  3. Question: Which of the following JavaScript statements use arrays?

    A
    setTimeout("a["+i+"]",1000)

    B
    k = a & i

    C
    k = a(i)

    D
    a{i++}

    Note: Not available
    1. Report
  4. Question: What is the correct output of the following code?
    var a=["Lenny","Harold","Mary","Jean","Sal"];
     alert(a.shift());

    A
    Sal

    B
    Jean

    C
    Lenny

    D
    None

    Note: Not available
    1. Report
  5. Question: What is the output of the following in JavaScript?
    var Lit=["yes","no","maybe"];
    document.write(Lit[2]);

    A
    no

    B
    maybe

    C
    NaN

    D
    undefined

    Note: Not available
    1. Report
  6. Question: How to append a value to an array of Java Script?

    A
    arr[arr.length] = value

    B
    arr[arr.length+1] = new Arrays()

    C
    arr[arr.length-1] = value

    D
    arr[arr.length*1] = value

    Note: Not available
    1. Report
  7. 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
Copyright © 2024. Powered by Intellect Software Ltd