1. Question: Which of the following built-in functions is used when you want to access the form elements using their ids?

    A
    getItem(id)

    B
    getFormElement(id)

    C
    getElementById(id)

    D
    All of the above

    Note: Not available
    1. Report
  2. Question: You are displaying image thumbnails on a page. Upon clicking a thumbnail, the image is being displayed in its actual size. You do not want the user to be able to click the thumbnails unless they are completely downloaded. What event would you use to prevent the user from clicking on the thumbnails until they are completely downloaded?

    A
    OnLoad

    B
    OnKeyPress

    C
    OnKeyUp

    D
    onClick

    Note: Not available
    1. Report
  3. Question: The statement navigator.platform indicates 'Win16', but you are running Windows NT. Which of the following is true?

    A
    navigator.platform is supposed to show 'Win16' on Windows NT

    B
    The userAgent property reflects the correct operating system

    C
    The property can be modified

    D
    navigator.platform shows the operating system for which the browser was compiled

    E
    The browser version is outdated

    Note: Not available
    1. Report
  4. Question: Which of the following can be used for disabling the right click event in Internet Explorer?

    A
    event.button == 2

    B
    event.button == 4

    C
    event.click == 2

    D
    event.click == 4

    Note: Not available
    1. Report
  5. Question: You want to create a popup window that closes after n seconds. How would you do it?

    A
    You cannot program a window to close automatically after n seconds. The user will have to manually close it

    B
    You would use the setTimeout function

    C
    You would use the exit function of the window object

    D
    You would use the terminate function

    Note: Not available
    1. Report
  6. Question: While coding a loop, you come across a condition where you have to ignore the rest of the statements and continue with the beginning of the loop. Which statement would you use?

    A
    exit

    B
    return

    C
    continue

    D
    while

    Note: Not available
    1. Report
  7. Question: You want to display an alert to the user which contains a ' character. Which character would you use to escape the ' character?

    A
    *

    B
    \

    C
    -

    D
    @

    Note: Not available
    1. Report
  8. Question: Which best describes void?

    A
    A method

    B
    A function

    C
    A statement

    D
    An operator

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

    A
    |

    B
    ===

    C
    <<<

    D
    ^

    Note: Not available
    1. Report
  10. Question: Which of the following is not a valid HTML event?

    A
    onunload

    B
    onchange

    C
    onupdate

    D
    onkeydown

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