1. Question: Which of the following is/are the string properties?

    A
    length

    B
    toLowerCase

    C
    indexOf

    D
    valueOf

    Note: Not available
    1. Report
  2. Question: Which of the following is the correct precedence for the operation? Consider from left to right.

    A
    *,/,%,+,-

    B
    /,*,%,+,-

    C
    %,*,/,+,-

    D
    None

    Note: Not available
    1. Report
  3. Question: Which of the following is/are not the Math function(s)?

    A
    max()

    B
    average()

    C
    ceil()

    D
    random()

    Note: Not available
    1. Report
  4. Question: Which of the following shortcuts can be used for writing multiple document.write statements?

    A
    None

    B
    for(document){}

    C
    with(document) {}

    D
    withThis(document){}

    Note: Not available
    1. Report
  5. Question: Which is the topmost object in the object hierarchy?

    A
    document

    B
    window

    C
    history

    D
    browser

    Note: Not available
    1. Report
  6. 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
  7. Question: While coding a loop, you come across a condition where you have to terminate the loop and continue with the statements following the loop. Which statement would you use?

    A
    exit

    B
    return

    C
    continue

    D
    while

    E
    break

    Note: Not available
    1. Report
  8. 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 ()")

    E
    None

    Note: Not available
    1. Report
  9. 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

    E
    None

    Note: Not available
    1. Report
  10. 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
    #

    E
    ~

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