1. Question: When does the load event of the browser occur?

    A
    aWhen the browser receives header information

    B
    When the browser starts displaying the content

    C
    When the browser receives all the page information, including framesets

    D
    When the browser receives all the page information, including framesets and displays it

    Note: Not available
    1. Report
  2. Question: You are writing a JavaScript function that will accept user input. Which of the following will you use?

    A
    The prompt method

    B
    The alert method

    C
    A form field

    D
    All of the above

    Note: Not available
    1. Report
  3. Question: You want to validate the value in a field as soon as the user moves out of the field by pressing the tab key. Which event would you use?

    A
    onblur

    B
    onfocus

    C
    lostfocus

    D
    gotfocus

    Note: Not available
    1. Report
  4. Question: A form contains two fields named id1 and id2. How can you copy the value of the id2 field to id1?

    A
    document.forms[0].id1.value=document.forms[0].id2.value

    B
    document.forms[0].id2.value=document.forms[0].id1.value

    C
    document.id1.value=document.id2.value

    D
    document.id2.value=document.id1.value

    Note: Not available
    1. Report
  5. Question: Consider an HTML form with a checkbox and a text field. When data is entered and the return key is pressed, the data seems to be lost before the user can click on the button that calls the processing function. How do you correct this?

    A
    Add a TYPE=HIDDEN INPUT to the form

    B
    Trap the return keypress and return (null)

    C
    Add 'return false' to onsubmit="..." in the FORM tag

    D
    Instruct the user not to press the Return key

    Note: Not available
    1. Report
  6. Question: Which of the following can you use to determine whether cookies are enabled in a browser or not?

    A
    (navigator.Cookie)? true : false

    B
    (application.cookieEnabled)? true : false

    C
    (navigator.cookieEnabled)? true : false

    D
    (application.cookie)? true : false

    Note: Not available
    1. Report
  7. Question: Which of the following could you do using JavaScript?

    A
    Form validation

    B
    Display a popup window

    C
    Change the color of the page

    D
    Display an alert

    E
    Prompt the user to enter a value

    F
    All of the Above

    Note: Not available
    1. Report
  8. Question: Consider the following JavaScript validation function:
    <script type="text/JavaScript">
    function ValidateField()
    {
            if(document.forms[0].txtId.value =="")
                    {return false;} 
            return true;
    }
    </script>
    Which of the options will you use for calling this function as soon as the user leaves the field?

    A
    <input name=txtId type="text" onreset="return ValidateField()">

    B
    <input name=txtId type="text" onfocus="return ValidateField()">

    C
    <input name=txtId type="text" onsubmit="return ValidateField()">

    D
    <input name=txtId type="text" onblur="return ValidateField()">

    Note: Not available
    1. Report
  9. Question: If a website’s search engine saturation with respect to a particular search engine is 20%, what does it mean?

    A
    20% of the webpages of the website have been indexed by the search engine

    B
    Only 20% of the pages of the website will be indexed by the search engine

    C
    20% of the websites pages will never be indexed

    D
    The website ranks in the first 20% of all websites indexed by the search engine for its most important search terms

    Note: Not available
    1. Report
  10. Question: 10 people do a web search. In response, they see links to a variety of web pages. Three of the 10 people choose one particular link. That link then has a __________ clickthrough rate.

    A
    less than 30%

    B
    30 percent

    C
    more than 30%

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