1. Question: Which of the following cannot be achieved using JavaScript?

    A
    Read or write from external files (except .js files)

    B
    Access or modify browser settings

    C
    Launch client processes (eg windows applications)

    D
    Launching the default email application of the client

    Note: Not available
    1. Report
  2. Question: You want to create a variable called newDate that contains the date February 1 of the current year. Which option will you use?

    A
    var newDate=new Date(today.getFullYear(), 2, 2)

    B
    var newDate=new Date(today.getFullYear(), 1, 1)

    C
    var newDate=new Date(today.getCurrYear(), 2, 1)

    D
    var newDate=new Date(today.getCurrYear(), 1, 1)

    Note: Not available
    1. Report
  3. Question: How would you invoke the browser's Add To Favorite Dialog?

    A
    Use the window.AddFavorite method

    B
    Use the document.AddFavorite method

    C
    Use the window.external.AddFavorite method

    D
    It is not possible using JavaScript

    Note: Not available
    1. Report
  4. Question: How would you use a timer with a function called rearrange()?

    A
    tmr=setTimeout("rearrange ()",1)

    B
    tmr=Timer(1,"rearrange ()")

    C
    tmr=Timer("rearrange ()",1)

    D
    tmr=setTimeout(1,"rearrange ()")

    Note: Not available
    1. Report
  5. Question: Consider the following image definition: <img id="logo" src="companylogo1.gif" height="12" width="12" > How can you change the image to "companylogo2.gif" when the page loads?

    A
    logo.source="companylogo2.gif"

    B
    logo.source="companylogo1.gif"

    C
    document.getElementById('logo').src="companylogo1.gif"

    D
    document.getElementById('logo').src="companylogo2.gif"

    Note: Not available
    1. Report
  6. Question: You are enabling cookies with JavaScript. What would be the default setting for the expires attribute of the document.cookie property?

    A
    The duration of the browser session

    B
    The duration the current document stays loaded

    C
    Twenty-four hours from the time the cookie is set

    D
    There is no default setting

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

    A
    link()

    B
    italics()

    C
    str()

    D
    sup()

    Note: Not available
    1. Report
  8. Question: Which of the following is true?

    A
    If onKeyDown returns false, the key-press event is cancelled

    B
    If onKeyPress returns false, the key-down event is cancelled

    C
    If onKeyDown returns false, the key-up event is cancelled

    D
    If onKeyPress returns false, the key-up event is canceled

    Note: Not available
    1. Report
  9. Question: Which of the following properties can you use to dynamically change the value of a <tr> tag?

    A
    HTML

    B
    innerHTML

    C
    outerHTML

    D
    text

    Note: Not available
    1. Report
  10. Question: What will the following code snippet do?cocument.alinkColor= " green "

    A
    It makes the background color of the document green

    B
    It makes the color of the active links green

    C
    It makes the color of the visited links green

    D
    It makes the color of all links green

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