1. Question: How do you call a function named "myFunction"? 

    A
    call function myFunction()

    B
    myFunction()

    C
    call myFunction()

    D
    none


    1. Twitter
    2. Details
  2. Question: How do you round the number 8.25, to the nearest whole number? 

    A
    Math.rnd(8.25)

    B
    Math.round(8.25)

    C
    round(8.25)

    D
    rnd(8.25)

    E
    Math.round("8.25")


    1. Twitter
    2. Details
  3. Question: What is the correct JavaScript syntax for opening a new window called "window5" ? 

    A
    new("http://www.ex-designz.net","window5")

    B
    window.open("http://www.ex-designz.net","window5")

    C
    open.new window("http://www.ex-designz.net","window5")

    D
    new.window("http://www.ex-designz.net","window5")


    1. Twitter
    2. Details
  4. Question: Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on an elapsed time? 

    A
    setElapsedTime()

    B
    Timeout()

    C
    setTimeout()

    D
    setTime()


    1. Twitter
    2. Details
  5. Question: You are working on a JavaScript project. What is used to restart the inner most loop? 

    A
    Abort

    B
    Breakloop

    C
    Stop

    D
    Continue


    1. Twitter
    2. Details
  6. Question: You work on a JavaScript project. How do you prompt users with messages and at the same time requesting user inputs? 

    A
    alert()

    B
    display()

    C
    prompt()

    D
    input()


    1. Twitter
    2. Details
  7. Question: In your JavaScript code, how do you find out which character occurs at the 5th position in a string "How are you"? 

    A
    Substring()

    B
    String()

    C
    Stringlength()

    D
    CharAt()


    1. Twitter
    2. Details
  8. Question: What statement (keyword) supplies the value of the function? 

    A
    return

    B
    receive

    C
    take

    D
    print


    1. Twitter
    2. Details
  9. Question: What is the correct output for the following code?

    var str=”This is a text.”;
    alert(str.charAt(3)); 

    A
    i

    B
    s

    C
    white space

    D
    none


    1. Twitter
    2. Details
  10. Question: How do you convert string into integer number? 

    A
    With strToInt() function

    B
    With parseInt() function

    C
    With parseFloat() function

    D
    None of above


    1. Twitter
    2. Details