1. Question: You created a cookie using JavaScript and want to delete it. How do you do it?

    A
    You can\'t. They are valid until they expire

    B
    Overwrite it with an expiry date in the past

    C
    escape() the value of the path attribute

    D
    unescape() the value of the path attribute

    E
    You will have to remove the cookie file from the client machine

    Note: Not available
    1. Report
  2. Question: Which of the following Regular Expression pattern flags is not valid?

    A
    gi

    B
    p

    C
    i

    D
    g

    Note: Not available
    1. Report
  3. Question: You declared a variable. What value would JavaScript assign to the uninitialized variable?

    A
    NaN

    B
    null

    C
    undefined

    D
    false

    E
    0

    Note: Not available
    1. Report
  4. Question: You have defined an image tag as follows:
    <img id="ERImage" width="100" height="100" onmouseover="ImageChange()"  src="Image1.jpg">
    The purpose of the ImageChange() function is to change the image source to "Image2.jpg". What will the ImageChange() function look like?

    A
    document.getElementById(' ERImage ').src=" Image1.jpg "

    B
    document.getElementById(' ERImage ').src=" Image2.jpg "

    C
    document.getElementById(' ERImage ').style.src=" Image1.jpg "

    D
    document.getElementById(' ERImage ').style.src=" Image2.jpg "

    Note: Not available
    1. Report
  5. Question: Which of the following is true about setTimeOut():

    A
    The statement(s) it executes run(s) only once

    B
    It pauses the script in which it is called

    C
    clearTimeOut() won't stop its execution

    D
    The delay is measured in hundredths of a second

    E
    It is required in every JavaScript function

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