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

    A
    call function myFunction()

    B
    myFunction()

    C
    call myFunction()

    D
    none

    Note: Not available
    1. Report
  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")

    Note: Not available
    1. Report
  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")

    Note: Not available
    1. Report
  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()

    Note: Not available
    1. Report
  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

    Note: Not available
    1. Report
  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()

    Note: Not available
    1. Report
  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()

    Note: Not available
    1. Report
  8. Question: What statement (keyword) supplies the value of the function?

    A
    return

    B
    receive

    C
    take

    D
    print

    Note: Not available
    1. Report
  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

    Note: Not available
    1. Report
  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

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