1. Question: Which is the topmost object in the object hierarchy?

    A
    document

    B
    window

    C
    history

    D
    browser

    E
    form

    Note: Not available
    1. Report
  2. Question: Which of the following are valid JavaScript methods?

    A
    scrollBy(dx, dy)

    B
    moveBy(dx, dy)

    C
    moveTo(x, y)

    D
    scrollTo(x, y)

    E
    All of the above are valid

    Note: Not available
    1. Report
  3. Question: You want to access the methods and properties of a Java Applet. What feature would allow you to do that?

    A
    The Java console

    B
    LiveConnect

    C
    LiveWire

    D
    LiveWire Pro

    Note: Not available
    1. Report
  4. Question: What will the following code snippet do?
    <form onreset="alert('Please try again')">

    A
    It validates the contents of the form

    B
    It prompts the user not to leave the fields of the form empty

    C
    It prompts the user to fill the form once the form is cleared

    D
    None of the above

    Note: Not available
    1. Report
  5. Question: You want to ascertain the protocol of the current URL. Which object would you use?

    A
    document

    B
    window

    C
    history

    D
    browser

    E
    form

    F
    location

    Note: Not available
    1. Report
  6. Question: What is the final value of the variable apt? var apt=2; apt=apt<<2;

    A
    2

    B
    4

    C
    6

    D
    8

    E
    16

    Note: Not available
    1. Report
  7. Question: Which of the following is not a valid JavaScript operator?

    A
    *=

    B
    /=

    C
    %=

    D
    ^+

    Note: Not available
    1. Report
  8. Question: What would be the value of ' ind ' after execution of the following code? var msg=" Welcome to ExpertRating " var ind= msg.substr(3, 3)

    A
    lco

    B
    com

    C
    ome

    D
    Welcome

    Note: Not available
    1. Report
  9. Question: You want to ascertain the page from which the user has navigated to the current page. How would you accomplish this?

    A
    It is not possible in JavaScript. This can be done only through server side scripting

    B
    Use document.referrer property

    C
    Use the window object

    D
    None of the above

    Note: Not available
    1. Report
  10. Question: You declared an array. What value would JavaScript assign to an uninitialized array element?

    A
    NaN

    B
    null

    C
    undefined

    D
    false

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